How to install nginx on linux centos

22 sec read

|| what is nginx

please take alook this

|| how to install nginx on linux centos

# yum install nginx php-xcache php-fpm

|| setup nginx

# vi /etc/nginx/nginx.conf

add / uncomment this line:

location ~ . php $ {
        fastcgi_pass 127.0.0.1:9000;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME  /var/www$fastcgi_script_name;
        include fastcgi_params;
}

|| starting nginx httpd and php-fpm

# /etc/init.d/php-fpm start
# /etc/init.d/nginx start

|| checking nginx httpd (80) and php-fpm (9000) ports

# netstat -tlupn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name
tcp        0      0 127.0.0.1:9000              0.0.0.0:*                   LISTEN      9537/php-cgi
tcp        0      0 0.0.0.0:80                  0.0.0.0:*                   LISTEN      23285/nginx: master 

|| links
| taujago

How to fix problem with…

Facing a Git error with the 'vi' editor? Discover how to easily fix it by checking your Vim path and configuring Git to use...
Sysadmin.ID
10 sec read

Apache :: MP4 Streaming

Learn how to enable MP4 streaming in Apache with the installation of the mod_h264 streaming module, making your video content accessible and efficient. Follow...
Sysadmin.ID
18 sec read

Apache :: Flash / FLV…

Learn how to effortlessly configure Apache for FLV streaming by installing the mod_flvx module and updating your httpd.conf file. Discover the simple steps to...
Sysadmin.ID
15 sec read

2 Replies to “How to install nginx on…”

Leave a Reply

Your email address will not be published. Required fields are marked *