How to install nginx on apache+php running hestia cp?

Hi,
Is possible to install nginx on a running hestia cp?

Currently there is not easy way to switch from Apache2 to Nginx or Nginx+Apache2 setup. There are a plans to change that in a future major relase depending on development.

You can check the installer script how it is currently done during install and follow it. How ever make some backups / snapshots before you start…

2 Likes

I’m used to doing all the configuration by hand, but I see an advantage in HestiaCP, especially with some staff who are uncomfortable without a GUI. My question is:

I see that Apache is installed and Nginx is set as a proxy (but turned off by default). Can I still manage with Hestia if I remove Apache and use Nginx as the webserver? For example, would I be able to add websites through the HestiaCP, or is that not possible?

By default Proxy is turned on…

How ever if want to use “Nginx” in standalone mode

Remove “Apache2”
Modify “/usr/local/hestia/conf/hestia.conf”

WEB_SYSTEM='apache2'
WEB_RGROUPS='www-data'
WEB_PORT='8080'
WEB_SSL_PORT='8443'
WEB_SSL='mod_ssl'
PROXY_SYSTEM='nginx'
PROXY_PORT='80'
PROXY_SSL_PORT='443'

With

WEB_SYSTEM='nginx'
WEB_PORT='80'
WEB_SSL_PORT='443'
WEB_SSL='openssl'

And then rebuild all users

1 Like