NGINX is an HTTP and reverse proxy server that is very similar to Apache. It directs traffic to the correct location on the server based on its configuration files. NGINX can assist in load balancing and caching, improving the performance of the server.
This article covers the steps to install or uninstall NGINX from a VPS or Dedicated server.
Related Articles
Purge Website's Nginx Cache
Using Cache Manager in cPanel
Install NGINX
NOTE: If you would like NGINX for your shared server, NGINX is available on our newest shared hosting plans. Please reach out to our Customer Service department for assistance in upgrading to our newer Ultrastack plans which include NGINX.
CAUTION: This guide covers how to install InMotion Hosting's implementation of NGINX. If a different version of NGINX is installed, these instructions may fail.
NOTE: The installation of the IMH NGINX package will enable PHP-FPM on the server for all domains, even if it was turned off in WHM under MultiPHP Manager.
CAUTION: The installation of the IMH NGINX package will remove all versions of PHP prior to 7.4.
IMPORTANT: This solution will require root access. If this needs to be obtained, follow the guide on requesting root access.
- To install NGINX via the command line, SSH into the server as root
- Run the following
yum -y install imh-ultrastack-ded
NOTE: InMotion created the package in the command above to install and set up the server for NGINX. - Once the above command has been manually typed or copied and pasted, pressing <Enter> will start the installation process
- Completion of the process can take a few minutes, but once done, NGINX will be installed, and the server will be set up to use it
NOTE: The Cache Manager will now be available in cPanel
EXAMPLE:
Installed:
imh-ultrastack-ded.x86_64 0:1.4-1.el7
Dependency Installed:
imh-cpanel-cache-manager.noarch 0:2.1-3.el7 imh-nginx.x86_64 0:1.21.6-4.el7 imh-ngxconf.noarch 0:2.4.8-2.el7
Complete!
Uninstall NGINX
- To remove NGINX via the command line, SSH into the server as root
- Run the following
yum -y remove imh-ultrastack-ded
imh-nginx imh-ngxconf imh-ngxutil imh-cpanel-cache-manager imh-fpmstatus
- Once the above command has been manually typed or copied and pasted, hitting <Enter> will start the removal process
- When finished, there will be a complete message to indicate NGINX has been removed and the server is defaulting back to Apache
NOTE: The removal process can take a few minutes to complete.
EXAMPLE:
Removed:
imh-ultrastack-ded.x86_64 0:1.4-1.el7
Complete!
Comments
0 comments
Article is closed for comments.