Control Web Panel

WebPanel => Updates => Topic started by: anditasb on November 28, 2020, 08:43:16 AM

Title: Upgrade Nginx
Post by: anditasb on November 28, 2020, 08:43:16 AM
Hello,

I'm a new member here and a new CWP user. So far I am quite satisfied using CWP to decide to become a Pro version user.

A little question, does CWP allow users to upgrade the webserver independently? I see that the version of Nginx I am using is still version 1.14. While the latest version is now at version 1.19.

Thanks.
Title: Re: Upgrade Nginx
Post by: Igor S. on December 10, 2020, 08:50:55 PM
Hi, you can update nginx manually.
Apache must be update via CWP only.
Title: Re: Upgrade Nginx
Post by: Biswashost on April 01, 2023, 08:40:30 PM
Hi, you can update nginx manually.
Apache must be update via CWP only.

How to do it? I mean how can update NGINX manually for CWP Pro?
Title: Re: Upgrade Nginx
Post by: overseer on April 01, 2023, 09:51:57 PM
Sandeep has a tutorial here:
https://www.uxlinux.com/update-nginx-to-latest-official-version-in-centos-8-el8-cwp/ (https://www.uxlinux.com/update-nginx-to-latest-official-version-in-centos-8-el8-cwp/)

Also consider hardening Nginx with the instructions here:
https://www.awsmonster.com/2019/09/how-to-secureharden-cwp-nginx-server.html (https://www.awsmonster.com/2019/09/how-to-secureharden-cwp-nginx-server.html)
Title: Re: Upgrade Nginx
Post by: Biswashost on April 01, 2023, 10:40:04 PM
Sandeep has a tutorial here:
https://www.uxlinux.com/update-nginx-to-latest-official-version-in-centos-8-el8-cwp/ (https://www.uxlinux.com/update-nginx-to-latest-official-version-in-centos-8-el8-cwp/)

Also consider hardening Nginx with the instructions here:
https://www.awsmonster.com/2019/09/how-to-secureharden-cwp-nginx-server.html (https://www.awsmonster.com/2019/09/how-to-secureharden-cwp-nginx-server.html)

Thanks for quick reply, but I did it in a different way for my all server & found all of them working fine. I followed few tutorials from google & combine them:

Update CWP Nginx to latest stable version:

1. Go to CWP admin ---> Server Settings--->Yum Manager--->nginx.repo & replace with below code & save:

[nginx-stable]
name=nginx stable repo
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
gpgcheck=1
enabled=1
gpgkey=https://nginx.org/keys/nginx_signing.key
module_hotfixes=true

[nginx-mainline]
name=nginx mainline repo
baseurl=http://nginx.org/packages/mainline/centos/$releasever/$basearch/
gpgcheck=1
enabled=0
gpgkey=https://nginx.org/keys/nginx_signing.key
module_hotfixes=true

2. Login as root via SSH & run below code:

yum update -y

3. Now you can give Nginx a restart, if don't found any error then you are & you can check your Nginx
version by below command:
nginx -v

4. If you found error while restarting Nginx then rebuild CWP Web Servers with Nginx & it's done, no error anymore, this
time CWP will build webserver with latest Nginx version.
Title: Re: Upgrade Nginx
Post by: Vinayak on April 19, 2024, 03:57:23 PM
This will update nginx that runs CWP or the webserver?
Title: Re: Upgrade Nginx
Post by: overseer on April 19, 2024, 04:45:25 PM
Webserver. CWP runs under Apache.
Title: Re: Upgrade Nginx
Post by: Vinayak on April 19, 2024, 05:47:00 PM
Webserver. CWP runs under Apache.

Thanks for clarifying.