Skip to main content

Nginx reverse Proxy cPanel

Comments

5 comments

  • cPRex Jurassic Moderator
    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: 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.
    0
  • sahostking
    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.
    0
  • cPRex Jurassic Moderator
    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.
    0
  • sahostking
    Ok thanks. Asked Cloudlinux aswell as they state they dont advise using it because it does not work with LVE Entry Process limits and PHP Selector.
    0
  • gnusys
    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!
    0

Please sign in to leave a comment.