• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Question Install Latest version of nginx

Yunior

New Pleskian
Hello, well I find the case that I want to install Dokku and asks me for the latest version of nginx.

and since Plesk comes with a customized version of nginx I do not know how to install Dokku.

That's why I want to know some way to install Dokku with some specific version of nginx, or update nginx to the latest version not used by the custom of plesk.

PD: I speak Spanish and I had to use google translator.
 

Hi, thanks for your answer, I'm using Ubuntu.

As I understand, I have to first execute

apt install libgeoip-dev libpam0g-dev libgd-dev libpcre3-dev libxslt1-dev sudo

and then only

bash <(wget -O - https://raw.githubusercontent.com/VirtuBox/plesk-nginx/master/nginx/build-deb.sh)

Am I correct, and with that would update the nginx adapted for plesk?
 
Hi, thanks for your answer, I'm using Ubuntu.

As I understand, I have to first execute

apt install libgeoip-dev libpam0g-dev libgd-dev libpcre3-dev libxslt1-dev sudo

and then only

bash <(wget -O - https://raw.githubusercontent.com/VirtuBox/plesk-nginx/master/nginx/build-deb.sh)

Am I correct, and with that would update the nginx adapted for plesk?

Compiling is not Plesk specific, but its OS-specific. Actually compiling is, where also geeks sometimes fail a lot. Some hints/rule of thumb:
  1. Compiling in general forces you to install a development environment, which can be quite complex. Jut review and be sure you didnt open the server security-wise to attackers.
  2. Ideally you compile as a normal user and not as root. Simply since a lot can go wrong compiling.
  3. Generally you can make a "fresh install" or a drop-in-replacement. In a fresh install you dont have nginx installed, but you compile and setup from source. In a drop-in-install, you might even leave an existing version. Alternatively you have eg nginx installed but remove nginx only, but not its dependancies via your package manager. In either case, make sure nginx is not installed from packages AND nginx is not updated by your package manager.
  4. For the basic configure arguments (prior to compiling), "nginx -V" gives you a start (if you have nginx previously installed).
  5. There might be a lot of errors upon configure and make. For the most part (usually) its about missing libraries for compilation. Find the missing one and install the respective packages.
  6. Subscribe to nginx mailing list to learn about new versions. Since you compile yourself, you also need to update yourself and apply security patches yourself.
 
Hi, thanks for your answer, I'm using Ubuntu.

As I understand, I have to first execute

apt install libgeoip-dev libpam0g-dev libgd-dev libpcre3-dev libxslt1-dev sudo

and then only

bash <(wget -O - https://raw.githubusercontent.com/VirtuBox/plesk-nginx/master/nginx/build-deb.sh)

Am I correct, and with that would update the nginx adapted for plesk?

On Ubuntu 16.04 LTS, you just need to one of the following command, depending if you want mod_pagespeed or not :
Code:
 # without pagespeed
bash <(wget -O - https://raw.githubusercontent.com/VirtuBox/plesk-nginx/master/nginx/build-deb.sh)

# with pagespeed
bash <(wget -O - https://raw.githubusercontent.com/VirtuBox/plesk-nginx/master/nginx/build-deb-pagespeed.sh)

Additional commands are only for debian 8 Jessie. The script automatically install the required libraries, and block nginx package update by Plesk.
To upgrade Nginx, you will just need to run the script again.
 
On Ubuntu 16.04 LTS, you just need to one of the following command, depending if you want mod_pagespeed or not :
Code:
 # without pagespeed
bash <(wget -O - https://raw.githubusercontent.com/VirtuBox/plesk-nginx/master/nginx/build-deb.sh)

# with pagespeed
bash <(wget -O - https://raw.githubusercontent.com/VirtuBox/plesk-nginx/master/nginx/build-deb-pagespeed.sh)

Additional commands are only for debian 8 Jessie. The script automatically install the required libraries, and block nginx package update by Plesk.
To upgrade Nginx, you will just need to run the script again.

It seems this has been updated to an all-in-one which will ask what options you want :
Code:
bash <(wget -O - https://raw.githubusercontent.com/VirtuBox/plesk-nginx/master/plesk-nginx.sh)

from: Plesk Nginx
 
Back
Top