Last active
August 29, 2015 14:20
-
-
Save freretuc/b632f706f6d4e3e8af0d to your computer and use it in GitHub Desktop.
upgrade php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sed -i 's/memory_limit = .*$/memory_limit = 256M/g' /etc/php5/apache2/php.ini | |
sed -i 's/post_max_size = .*$/post_max_size = 128M/g' /etc/php5/apache2/php.ini | |
sed -i 's/upload_max_filesize = .*$/upload_max_filesize = 128M/g' /etc/php5/apache2/php.ini | |
service apache2 restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment