May 042015

#Update for ownCloud 8.2.2

Screen 04-mei 0003

Used versions in this guide:

  • ownCloud 8.0.2 or 8.2.2
  • Ubuntu 14.04.2 LTS
  • ISPConfig

This guide assumes that you have a fully functional Ubuntu server with ISPConfig. Also when working with ownCloud, you use a SSL-certificate.

1. ISPConfig

    1. Go to the Web Domain page of your website where you want to run ownCloud. Go to the tab “Options
    2. Add the directory where you want to store data to the “PHP open_basedir” option, for example
    3. To the “Custom php.ini setting” option add
      default_charset = "UTF-8"
    4. Add the following “Apache Directives“:
      Header always add Strict-Transport-Security "max-age=15768000; 
      includeSubDomains; preload"

Screen 31-jan 0001

  1. Note the Linux User and Linux Group on the same page, you`ll need them later. For Example:
    Screen 04-mei 0002
  2. Go to the “Domain” tab and set the option “PHP” to “PHP-FPMScreen 04-mei 0006
  3. On the “SSL” tab paste you certificate or create a self signed certificate. Fill in the form and choose “Create certificate”:2015-05-04_14-51-30
  4. Create a database user for the ownCloud database on the “Sites” -> “Database users” page, for example “svc_owncloud”  (ISPConfig name: “c1svc_owncloud“).
  5. Create a database on the “Databases” page, for example “clouddb” (ISPConfig name: “c1clouddb“) and delect the “c1svc_owncloud” user.


2. ownCloud install

  1. Login to your Ubuntu Console with “sudo -s” for full access.
  2. Download ownCloud, copy files to web-root and change the owner. Use the user and group you noted from ISPConfig.
    cd /tmp 
    tar -jxvf owncloud-8.0.3.tar.bz2
    mv owncloud /var/www/clients/client1/
    chown -R web1:client1 /var/www/clients/client1/
  3. Make the configuration and apps folder writable for the webserver.
    chmod 770 -R /var/www/clients/client1/
    chmod 770 -R /var/www/clients/client1/
  4. Create storage space where ever you like and change the owner. Use the user and group you noted from ISPConfig.
    mkdir /mnt/storage/clouddata
    chown -R web1:client1 /mnt/storage/clouddata
  5. Open the OwnCloud installation page en go to “”
  6. Fill this form in with the known settings and choose a administrator. Never use “Admin” as the username.2015-05-04_15-53-44 
  7. If your installation is succesfull that you wil be logged on as the administrator user.
  8. Check you installation by going to the admin options page and check the header “Configuration Checks”
    Screen 04-mei 0009
  9. Enforce a SSL connection by setting “Enforce HTTPS”:
    Screen 05-mei 0000

This Guide prevents getting the following error on your Windows desktop clients

  • Cannot connect
  • Connection closed



  4 Responses to “ownCloud on Ubuntu with ISPConfig”

  1. Keeping getting an error when trying to install:

    Error while trying to create admin user: An exception occured in driver: SQLSTATE[28000] [1045] Access denied for user ‘1svc_owncloud’@’localhost’ (using password: YES)

    Even did this
    GRANT ALL ON 1clouddb.* to ‘1svc_owncloud’@’localhost’ IDENTIFIED BY ‘password’;

  2. i couldnt install owncloud, tried manual, package.
    seems i should have found your description a long time ago 🙂

  3. This works except:
    For Apache directive…
    Header always add Strict-Transport-Security “max-age=15768000;
    includeSubDomains; preload”
    is wrong.
    Should be:
    Header always set Strict-Transport-Security “max-age=15768000;
    includeSubDomains; preload”

  4. I’ve tried this with the latest version of Owncloud (9.1.1) and it doesn’t work. I can’t figure out why but it’s just not working.

    I managed to get it working by just creating a new site in ISPConfig, ticking everything and unzipping the owncloud files into the web folder. There was a few notices and errors upon installing by I just worked through them one by one following Owncloud documentation and had everything up and running in no time.

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>