CentOS 5.4 x86_64 LNMP image notes


CentOS 5.4 x86_64 LNMP image notes

LNMP - Linux with Nginx, MySQL and PHP installed

Nginx is a lightweight, high performance web server/reverse proxy and e-mail (IMAP/POP3) proxy.

MySQL is a relational database management system (RDBMS) that runs as a server providing multi-user access to a number of databases.

PHP: Hypertext Preprocessor is a widely used, general-purpose scripting language that was originally designed for web development to produce dynamic web pages.

Nginx and MySQL servers are configured to start at the VM boot time. To change the status, please use service: run a System V init script, and chkconfig: updates and queries runlevel information for system services.

The Nginx main configuration file is /etc/nginx/nginx.conf. To configure it to pass the PHP scripts to FastCGI server listening on uncomment (remove # at the beginning) the following lines:

        #location ~ .php$ {
# root html;
# fastcgi_pass;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
# include fastcgi_params;
Please note that you have to start now the fcgi process. The spawn-fcgi package provided by Fedora Epel project can be used. Also it will be very helpful for you to make init script of it (so the process will start after reboot)

The basic Nginx configuration is decried in the following documents:




SSL configuration document: