Sunday, March 17, 2013

installing owncloud on debian wheezy

1. Install Apache and owncloud depencies. apt-get install apache2 php5 php5-json php-xml-serializer zip php5-gd apt-get install php5-sqlite curl libcurl3 libcurl3-dev php5-curl 2. Enter tmp folder download and extract owncloud. cd /tmp mkdir /var/www/cloud wget http://owncloud.org/releases/owncloud-4.0.0.tar.bz2 apt-get install bzip2 bunzip owncloud-4.0.0.tar.bz2 tar xvf owncloud-4.0.0.tar 3. copy own cloud to apache html folder. cp -r owncloud/* /var/www/cloud/ 4. Change folder owner. chown -R www-data:www-data /var/www/cloud 5.Enable .htaccess and mod_rewrite if running apache vi /etc/apache2/sites-enabled/000-default 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 a2enmod rewrite a2enmod headers 6. Increase file upload limit. vi etc/php5/apache2/php.ini In this file, search for: upload_max_filesize post_max_size And change their value to whatever you want. Then save the file and restart Apache: 7. Restart Apache and visit your installation. /etc/init.d/apache2 restart