Comments on Installing Nginx With PHP5 And MySQL Support On Ubuntu 8.10

Installing Nginx With PHP5 And MySQL Support On Ubuntu 8.10 Nginx (pronounced "engine x") is a free, open-source, high-performance HTTP server. Nginx is known for its stability, rich feature set, simple configuration, and low resource consumption. This tutorial shows how you can install Nginx on an Ubuntu 8.10 server with PHP5 support (through FastCGI) and MySQL support.

3 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Raffael

Thank You for the guide, but instead of spawn-cgi from lighttpd I would use php-fpm which uses resources much better than spawn-cgi. You can get php-fpm at THIS website and a simple guide how to install it, is HERE

The only problem is that there is no repo package with php-fpm so You have to compile php from source (well, it's not that hard).

Using a php-caching module can also help a lot. I prefer XCache but APC and eAccelerator would also cope quite well.

There is also one more thing, You shouldn't use nginx as root process (same with spawn-cgi). You can define the name of the user and group for the process (and it's children) in nginx.conf. Parent nginx process will be root but children will be working with the given user/group. Typical name for the user and group is www-data or nobody/nogroup.

By: William Chambers

spawn-fcgi is now a package on ubuntu 9.10 at least. So there's no need to install lighttpd.

By: Initcron

I have automated  nginx + php5 + php5-fpm setup  on ubuntu 10.4 lucid  with my scripted install. It is available freely under GNU GPL 3.0  at   http://www.initcron.org/how-tos/autoinstall-nginx-web-server-with-php-on-ubuntu-10-4-lucid  
This takes care of most of the steps above.