Skip to content

Instantly share code, notes, and snippets.

@kblomqvist
Created December 18, 2011 13:18
Show Gist options
  • Save kblomqvist/1493392 to your computer and use it in GitHub Desktop.
Save kblomqvist/1493392 to your computer and use it in GitHub Desktop.
Install PHP5 + Apache2 (with suPHP) + MySQL
su root
aptitude install php5 php5-mysql apache2-mpm-prefork libapache2-mod-suphp mysql-server
a2dismod php5 #disable mod_php
a2enmod rewrite #enable mod_rewrite
nano /etc/suphp/suphp.conf # docroot=${HOME}/sites
nano /etc/php5/cgi/php.ini # expose_php Off
echo -e "[mysqld]\nlocal-infile=0" > /etc/mysql/conf.d/my.cnf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment