Skip to content

Instantly share code, notes, and snippets.

@dirkk0
Created June 15, 2012 06:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dirkk0/2934936 to your computer and use it in GitHub Desktop.
Save dirkk0/2934936 to your computer and use it in GitHub Desktop.
owncloud installation on Amazon EC2
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 sqlite mp3info zip
wget http://download.owncloud.org/releases/owncloud-4.0.4.tar.bz2
mv owncloud-4.0.4.tar.bz2 owncloud.tar.bz2
tar -xjf owncloud.tar.bz2
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
@dirkk0
Copy link
Author

dirkk0 commented Jun 15, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment