Skip to content

Instantly share code, notes, and snippets.

@mikerr
Last active August 29, 2015 14:00
Show Gist options
  • Save mikerr/3ee53cc33e7eb7d9a486 to your computer and use it in GitHub Desktop.
Save mikerr/3ee53cc33e7eb7d9a486 to your computer and use it in GitHub Desktop.
Install lighthttpd,php,mysql and phpmyadmin
sudo apt-get install lighttpd -y
sudo apt-get install php5-cgi -y
sudo sh -c "echo '<?php phpinfo(); ?>' > /var/www/phpinfo.php"
sudo sh -c "echo 'cgi.fix_pathinfo = 1' >> /etc/php5/cgi/php.ini"
sudo lighty-enable-mod fastcgi
sudo lighty-enable-mod fastcgi-php
sudo /etc/init.d/lighttpd restart
sudo apt-get install mysql-server mysql-client phpmyadmin -y
sudo ln -s /usr/share/phpmyadmin/ /var/www/phpmyadmin
sudo /etc/init.d/lighttpd restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment