If you want to use your slug as a webserver with php support you should follow the steps through and you will have a webserve with php support.
first write
try the server if it is working or not. Create info.php at /var/www/info.php
first write
#touch /.ext3flashto prevent your flash disk drive wear out.Then update the package list using
#apt-get updateAfter these install the required packages using
#apt-get install lighttpdAfter the install, open lighttpd.conf:
#apt-get install php5-cgi
#apt-get install php5-gd
#nano /etc/lighttpd/lighttpd.confAdd the code below under server.modules, like this:
"mod_fastcgi",at the end of the file add
fastcgi.server = ( ".php" => ((After adding the code, save and exit.
"bin-path" => "/usr/bin/php5-cgi",
"socket" => "/tmp/php.socket",
)))
try the server if it is working or not. Create info.php at /var/www/info.php
touch /var/www/info.phpedit this file
nano /var/www/info.phpwrite
?phpsave and exit.Restart the server
phpinfo();
?>
/etc/init.d/lighttpd restartType your address and try
http://192.168.1.77/info.phpI hope you can see something and the guide worked for you.See you in the next guide
Thanks for the guide, it works great. Just wanted to let you know you're missing a "<" at the beginning of the content of info.php. It can make a difference for those juste copy-pasting without paying much attention (like me!).
ReplyDeleteI am happy that it worked for you. I am aware of it but blogger does not let me to add that character. When I put it it recognizes it as a script I guess. Any advice would be appreciated.
ReplyDelete