You may want to install a Lighttpd server on a Raspberry Pi for many reasons. Some of the possible reasons are that you want to run a website from your home, you want to try out the Lighttpd Server, or, you want to test php scripts on your localhost.
Open your shell terminal and run the following commands to install the Lighttpd server with the ability to use php / mySQL.
Install Lighttpd root# apt-get install lighttpd Install PHP and MYSQL root# apt-get install php5-common php5-cgi php5 root# apt-get install mysql-server mysql-client Note: Hit enter on the keyboard when necessary Enable Fast CGI Module root# lighty-enable-mod fastcgi-php Reload Lighttpd root# /etc/init.d/lighttpd force-reload Test server and php file root# cd /var root# mkdir www root# chmod 755 www root# cd /var/www root# vi test.php Write a php echo statement save the file.
Test Server and File
Open http://192.168.0.109/test.php
Open in browser http://192.168.0.109
© 2018 ALL Rights Reserved | Sitemap
Vancouver | North Vancouver | Burnaby | Richmond | Coquitlam | Port Coquitlam | Surrey | Langley | Maple Ridge | Mission | Abbotsford | Kamloops | Kelowna | Victoria | Squamish | Whistler | Pemberton