Last active
August 29, 2015 14:00
-
-
Save mikerr/3ee53cc33e7eb7d9a486 to your computer and use it in GitHub Desktop.
Install lighthttpd,php,mysql and phpmyadmin
This file contains 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
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