Skip to content

Instantly share code, notes, and snippets.

@viogus
Created March 18, 2013 09:47
Show Gist options
  • Save viogus/5186054 to your computer and use it in GitHub Desktop.
Save viogus/5186054 to your computer and use it in GitHub Desktop.
#apt-get install --yes apache2 php5 php5-json php5-gd php5-sqlite curl libcurl3 libcurl3-dev php5-curl php5-common php-xml-parser
apt-get install --yes apache2 php5 php5-json php5-gd php5-sqlite curl libcurl3 libcurl3-dev php5-curl php5-common
apt-get install --yes sqlite mp3info zip
wget http://download.owncloud.org/releases/owncloud-4.0.3.tar.bz2
mv owncloud-4.0.3.tar.bz2 owncloud.tar.bz2
tar -xjf owncloud.tar.bz2
#cp -r owncloud /var/www
cp -r owncloud/* /var/www
# allow the webserver to change files
chown -R www-data:www-data /var/www
# enable uploading of big files
cp /etc/php5/apache2/php.ini /etc/php5/apache2/php.ini_bak
mv /etc/php5/apache2/php.ini temp1.txt
sed 's/= 2M/= 500M/' temp1.txt >temp2.txt
sed 's/= 8M/= 600M/' temp2.txt >temp3.txt
mv temp3.txt /etc/php5/apache2/php.ini
# set the time
ntpdate pool.ntp.org
service apache2 restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment