How to install Nginx Webserver


##For Purchasing Advertisement Contact US ##
Jabber : [email protected] | Telegram :- @dnc4evr

Text ADS PLACE HERE.
TEXT ADS PLACE HERE.
FeClub.cc Biggest automated CC shop | Rare bins | High-quality CCs
SMACKDOWN.CC Top CVV Store | Free Checker | Daily Updates | Verified Sellers
Wizard's Fresh CVV/Dumps TR2+PIN | Banks | PayPal
MaskeCC Global CC Wholesale/Rare BIN
BVCC Best CVV shop | High-quality


NINZA

New member
Registered
Apr 30, 2020
28
0
1
Hello DNC,

I want to share how to install Nginx Webserver & PHP-FPM, this is for server CentOS 5.9 Final x86_64 (64 bit).
what u need. of course VPS.

#1 login as root, check your Os version
[root@server /]# cat /etc/*release*

#2 Set your repository server (Epel dan Remi + Nginx)
[root@server /]# rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x...noarch.rpm
[root@server /]# rpm -Uvh http://rpms.famillecollet.com/enterprise...ease-5.rpm
[root@server /]# nano /etc/yum.repos.d/nginx.repo

Set your nginx.repo
[nginx]name=nginx repo
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
gpgcheck=0
enabled=1

#3 Install Nginx
[root@server /]# yum --enablerepo=remi install nginx php-fpm php-common

#4 Then, test run
[root@server /]# /ect/init.d/nginx start
[root@server /]# /etc/init.d/php-fpm start

#5 Config auto startup every booting
[root@server /]# chkconfig --add nginx
[root@server /]# chkconfig --levels 235 nginx on
[root@server /]# chkconfig --add php-fpm
[root@server /]# chkconfig --levels 235 php-fpm on

#6 Install php module required for setting
[root@server /]# yum --enablerepo=remi install php-pecl-apc php-cli php-pear php-mysql php-pecl-memcache php-pecl-memcached php-xml php-mbstring php-mcrypt

#7 Configure Nginx dan FastCGI for root directory main
[root@server /]# adduser admin ( user admin )
[root@server /]# passwd password ( admin password )
[root@server /]# su admin ( change root to user admin )
[admin@server /]$ cd /home/admin
[admin@server ~]$ mkdir www ( make directory www )
[admin@server ~]$ cd www ( go to directory )
[admin@server www]$ mkdir yourwebsites.com
[admin@server www]$ cd yourwebsites.com
[admin@server yourwebsites.com]$ mkdir public_html logs backups

Configure this to set vhost
[admin@server yourwebsites.com]$ exit ( exit user to root access)
[root@server /]# cd /etc/nginx
[root@server nginx]# mkdir sites-enabled sites-available
[root@server nginx]# nano nginx.conf
*
include /etc/nginx/sites-enabled/*;

Last important things, make vhost for every websites
[root@server nginx]# cd sites-available
[root@server sites-available]# nano yourwebsites1.com
*server {
server_name project.slackerc0de.us;
access_log /home/admin/wwwyourwebsites.com/logs/access.log;
error_log /home/admin/www/yourwebsites.com/logs/error.log;
root /home/admin/www/yourwebsites.com/public_html;

location / {
index index.html index.htm index.php;
}

location ~ \.php$ {
include /etc/nginx/fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /home/admin/www/yourwebsites.com/public_html$fastcgi_script_name;
}
}
*

After all set up, last thing, set for configure Nginx sites enabled after restart
[root@server sites-available]# cd ..; cd sites-enabled
[root@server sites-enabled]# ln -s /etc/nginx/sites-available/yourwebsite.com
[root@server sites-enabled]# /etc/init.d/nginx restart
Good luck for who want to make websites with Nginx server install.
 

Users Who Are Viewing This Thread (Total: 1, Members: 0, Guests: 1)