Breaking News

How to Install NGINX on cPanel


You can easily install NGINX on your cPanel server via command line interface (CLI). This allows you to utilize NGINX as a web server. In this tutorial, we will walk you through installing NGINX on your cPanel server. First, we will show you how to change the listening ports in WHM. Then, we will show you how to perform the NGINX installation and configuration via SSH. You must be on a VPS or Dedicated server to complete this guide.

Change Listening Ports


Step 1.
Log into WHM as the 'root' user.

Step 2. Click the Tweak Settings link in the Server Configuration section.

Step 3. On the Tweak Settings page click the right arrow to scroll, then click the System tab when you see it.

Step 4. Scroll down to the Apache non-SSL IP/port options and select the box to change ports. Since we want to set the listening ports to 8080for InMotion servers, enter the following:
0.0.0.0:8080

Step 5. Navigate to the Apache SSL port setting and select the box to change the ports. Since InMotion uses port 8443 enter the following:
0.0.0.0:8443


Step 6. Scroll down to the bottom of the page and click the Save button to open the listening ports.

Installing NGINX

Step 1. Connect to your server as the 'root' user via SSH.

Step 2. Run the following command to install NGINX.

                             yum install imh-nginx                                                                        
                                                                                                                                       

Step 3.You will see the following message, type 'y' for yes then click the enter key.
                                          Install 1 Package                                                                             
                                  Total download size: 484 k                                                              
                                   Installed size: 1.3 M                                                                       
                                   Is this ok [y/d/N]: y                                                                                          

NGINX has been installed successfully when you see a Complete! message such as this:

                                          Installed :                                                                              
                                          imh-nginx.x86_64 0:1.13.3-2.el                                            
                                          Complete !                                                                            

Step 4. Run the following command to configure NGINX for your server.
                                            yum install imh-ngxconf                                                     
                                                                                                                                       

Step 5. You will see the following message, type 'y' for yes then click the enter key.

                                         Install 1 Package                                                                 
                                         Total download size: 43 k                                                    
                                         Installed size: 103 k                                                            
                                         Is this ok [y/d/N]: y                                                              

NGINX has been configured when you see a Complete! message such as this:

                                         Installed:                                                                            
                                         imh-ngxconf.noarch 0:0.9.10-9.el7                                    
                                         Complete!                                                                          
-----------------------------------------------------------------------------

1 comment:

  1. Pragmatic Play goes live in Europe with live casino
    Pragmatic Play's live casino 인천광역 출장안마 product 충청북도 출장안마 has gone live in Europe with the launch of 경상북도 출장샵 a brand new live 영주 출장마사지 casino product at the 충청남도 출장안마 Pragmatic Play Malta

    ReplyDelete