Skip to content

Instantly share code, notes, and snippets.

@tjstein
Created July 16, 2010 02:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tjstein/477835 to your computer and use it in GitHub Desktop.
Save tjstein/477835 to your computer and use it in GitHub Desktop.
add-apt-repository ppa:brianmercer/php
aptitude -y update
aptitude -y install php5-cli php5-common php5-mysql php5-suhosin php5-gd php5-curl
aptitude -y install php5-fpm php5-cgi php-pear php5-memcache php-apc php5-dev
echo "apc.mmap_file_mask=/tmp/apc.XXXXXX" >> /etc/php5/conf.d/apc.ini
echo "apc.shm_size = 64" >> /etc/php5/conf.d/apc.ini
cp /etc/php5/fpm/php5-fpm.conf /etc/php5/fpm/php5-fpm.conf.original
sed -i 's/.*listen.allowed_clients = 127.0.0.1.*/listen.allowed_clients = 127.0.0.1/g' /etc/php5/fpm/php5-fpm.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment