To run ownCloud, your webserver must have the following installed:
php5 (>= 5.3), php5-json php-xml php-mbstring php5-zip php5-gd
And as optional dependencies: php5-sqlite (>= 3), curl, libcurl3, libcurl3-dev, php5-curl, php-pdo
apt-get install apache2 php5 php5-json php-xml php-mbstring php5-zip php5-gd apt-get install php5-sqlite curl libcurl3 libcurl3-dev php5-curl php-pdo
You don’t need any WebDAV support of your webserver (i.e. apache’s mod_webdav) to access your ownCloud data via WebDAV, ownCloud has a WebDAV server built in.
1. Download
2. Install
2.1. Extract ownCloud and copy to your webserver
tar -xjf path/to/downloaded/owncloud-x.x.x.tar.bz2
cp -r owncloud /path/to/your/webserver
2.2. Set the permissions for config/ and data/
The owner of your webserver must own the data/ and config/ directories in your ownCloud install. You can do this by running the following command for both the data directory and the config directory:
chown -R www-data:www-data /path/to/your/owncloud/install/data
2.3. Enable .htaccess and mod_rewrite if running apache
If you are running the apache webserver, it is recommended that you enable .htaccess files as ownCloud uses them to enhance security and allows you to use webfinger. To enable .htaccess files you need to ensure that ‘AllowOverride’ is set to ‘All’ in the ‘Directory /var/www/’ section of your virtual host file. This is usually in /etc/apache2/sites-enabled/000-default. You should also run ‘a2enmod rewrite’ and ‘a2enmod headers’. Then restart apache: service apache2 restart (for Ubuntu systems).
2.4. Follow the install wizard
Open your web browser and navigate to your ownCloud instance. If you are installing ownCloud on the same machine as you will access the install wizard from, the url will be:
http://localhost/
If you will only have a few users on your ownCloud instance, then SQLite will be OK for the database, in which case just enter an admin username and password. For larger instances, use mySQL or PostgreSQL. Either setup the database first, and pass ownCloud the details, or give ownCloud details of an SQL account that can create a database and ownCloud will do the rest.
If you are not using apache as the webserver, please set the data directory to a location outside of the document root.
3. Finished!
Login and start using your ownCloud instance! For more details on configuring your ownCloud, please visit the Support Centre.
Upgrading
To upgrade your ownCloud instance, just replace the files with the new set from the download. Leave the config/ folder and data/ folder intact to preserve your data. The upgrade will happen automatically when you first login.
