Quantcast
Channel: Php on Dave Hall Consulting
Viewing all articles
Browse latest Browse all 35

Making it Easier to Spawn php-cgi on Debian and Ubuntu

$
0
0
Apache is a great web server, but sometimes I need something a bit more lightweight. I already have a bunch of sites using lighttpd, but I’m planning on switching them to nginx. Both nginx and lighttpd use FastCGI for running PHP. Getting FastCGI up and running on Ubuntu (or Debian) involves a bit of manual work which can slow down deployment. The normal process to get nginx and php-cgi up and running is to install the spawn-fcgi package, create a shell script such as /usr/local/bin/php-fastcgi to launch it, then a custom init script, after making both of these executable you need to run update-rc.

Viewing all articles
Browse latest Browse all 35

Trending Articles