Control Web Panel

WebPanel => CentOS 6 Problems => Topic started by: gaurav on August 04, 2017, 05:23:52 AM

Title: Nginx & Varnish are using the same port
Post by: gaurav on August 04, 2017, 05:23:52 AM
Hi,

I a first time user of CWP. I will be mostly running WordPress/WooCommerce sites on this server, and accordingly have selected the following web servers: Apache & Varnish Cache & Nginx Reverse Proxy (Varnish on port 80, Nginx on port 82 and apache on port 8181)

However, I cannot start nginx and varnishd together, as whichever is started later throws the error that port is already in use. Looks like Nginx is also using Port 80 instead of 82 mentioned in the configuration. Is there any manual configuration required after selecting the above combination from the control panel?
Title: Re: Nginx & Varnish are using the same port
Post by: studio4host on August 04, 2017, 07:09:36 AM
try checking all ports used by nginx/varnish/apache it should be visible module where you select webservers

don't forget to rebuild vhosts after you make this changes.
If something goes wrong try this, switch to apache only and rebuild vhosts then select option which you need and again rebuild vhosts.

In case that any of this doesn't work you can stop all webservers from cwp and check in the process list if some webserver stucked and left running.