Comments on Installing Lighttpd with PHP5 (PHP-FPM) and MySQL on Debian 8 (Jessie)
Lighttpd is a secure, fast, standards-compliant web server designed for speed-critical environments. This tutorial shows how you can install Lighttpd on a Debian 8 (Jessie) server with PHP5 support (through PHP-FPM) and MySQL as a database server. PHP-FPM (FastCGI Process Manager) is a new PHP FastCGI implementation with some additional features useful for sites of any size, especially busier sites. I use PHP-FPM in this tutorial instead of Lighttpd's spawn-fcgi.
4 Comment(s)
Comments
Installed all the packages as this tutotial described. But when I try to connect the remote mariadb from PHP by
$db = new mysqli(...);
I got 500 internal server error.
i looked up the lighttpd error log, got
(mod_fastcgi.c.2562) unexpected end-of-file (perhaps the fastc
gi process died): pid: 0 socket: unix:/var/run/php5-fpm.sock
Can anybody tell me how to fix this?
i did "apt-get upgrade ipkg" , after apt-get install phpmyadmin has failed to install at the end and phpmyadmin didn`t load.
after upgrading ipkg (it said: already newest version, but asked me to approve with yes), phpmyadmin loaded.
this tutorial is awesome however thank you guys very much \o/
Awesome tutorial!
Couple things I'd like to add from my experience.
1: If you get a 404 when trying to get to http://server/phpmyadmin , you need to run:
ln -s /usr/share/phpmyadmin /var/www/html/phpmyadmin
2: If you get a 403 while trying to access http://server/phpmyadmin, check your permissions from source to root:
In my case, my /usr/share directory did NOT have executable permissions which gave me a 403 every time I tried to access /serverIp/phpmyadmin Needed to run:
chmod +x /usr/bin
If anyone else experiences these issues, I'd love to help out so you don't want to smash your pc (or in my case, Raspberry Pi 3) with a hammer! Shoot me an email SethGandy at yahoo dot com
On Debian 8 Jessie, which services should be or need to be disabled? There is apparently no online documentation that answers this.