sahostking

Well-Known Member
May 15, 2012
389
16
68
Cape Town, South Africa
cPanel Access Level
Root Administrator
Twitter
Hi guys

Anyone using Nginx as a reverse proxy yet with cPanel? I know its still in experimental but was wondering to hear if anyone is using it successfully in shared hosting for that purpose? We have many customers that do not want to purchase Litespeed or use Engintron hence would like to give them confidence that Nginx is built into cPanel hence it can work for them in such a way.

Thanks
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
7,418
1,000
313
cPanel Access Level
Root Administrator
Hey there! As of the most recent release, Nginx will default to the reverse proxy mode with caching, and all requests forwarded to Apache for processing. If you have the ea-nginx rpm installed, you'll see that behavior change as part of the next update.

The ea-nginx-standalone package has been provided to keep the old behavior, as outlined here: EasyApache 4 January 27 Release

I don't have any additional details on the workings just yet, but if you have a test server now might be a good time to try playing around with this, although it's still experimental.
 

sahostking

Well-Known Member
May 15, 2012
389
16
68
Cape Town, South Africa
cPanel Access Level
Root Administrator
Twitter
Question. We are testing it on a server however most of our environment uses lsphp. It works fine thus far.

Hence was wondering if php-fpm is critical? or could we leave it to lsapi

lastly I see that
  • The MultiPHP system and Wordpress will only work if you use PHP-FPM.
Hence is it stating wordpress permalinks will just not work even though its proxying to apache? makes no sense as it works with wordpress sites I am testing with.

Only if apache replaces nginx it should be a problem surely.
 
Last edited:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
7,418
1,000
313
cPanel Access Level
Root Administrator
In many cases, the PHP handler choice is a personal preference.

I don't believe that is in reference the permalink structure, but more the ownership of files being created and the ability to use the site under the MultiPHP system.
 

gnusys

Well-Known Member
Jan 18, 2013
53
13
58
cPanel Access Level
DataCenter Provider
if you are using Nginx as a reverse proxy, the PHP handler is in apache and any handler you set in Apache should work ( lsphp/php-fpm/Suphp etc) and there is no restriction of the handler. But if you are trying to use Nginx directly ( which cPanel ea-nginx supports with the Wordpress) you are using php-fpm as the PHP handler . This is because Nginx can work only with PHP-FPM (fastCGI protocol) and CGI/lsphp handlers don't work with Nginx . In short as long as you using Nginx as a PROXY , you can use any handler for PHP , but once you are using Nginx directly ..you are using PHP-FPM only!