Skip to content

Instantly share code, notes, and snippets.

@lichang333
Forked from viogus/owncloud.sh
Created February 8, 2017 22:00
Show Gist options
  • Save lichang333/60d565fb234d21d3f60015ea3ba5863e to your computer and use it in GitHub Desktop.
Save lichang333/60d565fb234d21d3f60015ea3ba5863e 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