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 the editor ‘vi’

:: git error with vi error: There was a problem with the editor 'vi'   :: how to fix the problem 0. check path...
sysadmin.id
10 sec read

Apache :: MP4 Streaming

:: How to Enable mp4 Streaming in Apache + Installing mod h624 streaming wget //h264.code-shop.com/download/apache_mod_h264_streaming-2.2.7.tar.gz tar -xzf apache_mod_h264_streaming-2.2.7.tar.gz cd mod_h264_streaming-2.2.7/ ./configure --with-apxs=`which apxs2` make...
sysadmin.id
18 sec read

Apache :: Flash / FLV Streaming

:: How to Configure Apache for FLV Streaming + Installing mod_flvx wget //people.apache.org/~pquerna/modules/mod_flvx.c which apxs /usr/bin/apxs /usr/bin/apxs -cia mod_flvx.c + setup mod_flvx in http.conf...
sysadmin.id
15 sec read