EasyApache 4 best config?
Hi,
I have a dedi server and trying to move my sites from a vps that used FCGI
what is the fastest handler like fcgi and how easy is it to set up
Ive had a few goes using the default profiles and tried enabling PHP-FPM but this just seems to break my sites
any help welcome
Keith
-
Hello, The best performance options often depend on the type of websites you are hosting and the amount of incoming traffic. Here's a thread you may find helpful: My experience, suExec + FastCGI + opcache VS mod_ruid2 + DSO + opcache Regarding FCGId, you can documentation on this handler at: Apache Module: FCGId - EasyApache 4 - cPanel Documentation Thank you. 0 -
Hi I currently have SuPHP running which isn't great Everytime I try to enable PHP-FPM for my websites these fail to load any thing other than the front page of the site If I then disable PHP-FPM on the domains in multphp manager all sites still dont work I have to rebuild the full lot via EA4 wizard to get things working again How do I utilise PHP-FPM, is it just click and go and everything should work out the box or do I have to set things up ie configs I so baffled ! am I missing something here Keith 0 -
Hello, Could you let us know of any error output in /usr/local/apache/logs/error_log when the website doesn't work? Thank you. 0 -
[Wed Jun 14 19:31:33.430099 2017] [mpm_prefork:notice] [pid 5403] AH00171: Graceful restart requested, doing restart [Wed Jun 14 19:31:33.501353 2017] [mpm_prefork:notice] [pid 5403] AH00163: Apache/2.4.25 (cPanel) OpenSSL/1.0.1e-fips mod_bwlimited/1.4 configured -- resuming normal operations [Wed Jun 14 19:31:33.501371 2017] [core:notice] [pid 5403] AH00094: Command line: '/usr/sbin/httpd' I have enabled it again and restarted apache and fpm 0 -
Hello, Is that the only output you see in the log when attempting to browsing to a down website? If so, what do you see on the website itself? Is a 404 error page encountered, or does another error code appear? Thank you. 0 -
Hi I get HTTP 404 Not Found The site uses wordpress with permilinks - RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] 0 -
Looks like Mod_rewrite doesn't work with FPM If I disable the permalinks and use the "plain" all works Should this work? and how can I get this working 0 -
Hello, Feel free to open a support ticket using the link in my signature if you'd like us to take a closer look. Thank you. 0 -
Should mod rewrite work with fpm enabled? 0 -
Have you tried off and on the mod_userdir setting? I've had a similar problem with mod_userdir, I corrected it like that. 0 -
Should mod rewrite work with fpm enabled?
Yes, there should be no conflict between PHP-FPM and Mod_Rewrite. Thank you.0 -
Everytime I try to enable PHP-FPM for my websites these fail to load any thing other than the front page of the site Keith
I have the exact same problem. In all the Joomla websites only the frontpage works if I enable PHP-FPM. Seems like PHP-FPM ignores the htaccess file and the redirects that are required in Joomla to show the other pages. Its not because Mod_Rewrite doesn't work with PHP-FPM, it ignores the htaccess file completely. If I write something nonsensical in the file to force an error, with FPM disabled apache throws error 500 (as it should) and it doesnt with FPM enabled.If I then disable PHP-FPM on the domains in multphp manager all sites still dont work I have to rebuild the full lot via EA4 wizard to get things working again Keith
Same here, when I disable PHP-FPM I have to rebuild apache configuration with "/scripts/rebuildhttpdconf" and restart apache so the pages other than the frontpage show again.0 -
There is a internal case labeled CPANEL-13303 to address this I have disabled the optimize .htaccess (allowOverride) I still have issues when installing plugins in wordpress on php-fpm and currently reverted back to fcgi with the experiential mods till all these bugs are fixed. We have held off upgrading to EA4 on all of our servers now Keith 0 -
There is a internal case labeled CPANEL-13303 to address this
Hello, This case is fixed as of cPanel 64.0.27: Fixed case CPANEL-13303: Ensure AllowOveride blocks are added when htaccess opt enabled. The workaround before updating to this version or newer is to manually run the following command:/scripts/rebuildhttpdconf
Thank you.0 -
Hi I still seem to be having problems Wordpress freshly installed on the server Cpanel 64.0.29 installed PHP-FPM enabled for given domain Permalinks OFF - Site works fine, able to install plugins and browse WordPress as visitor But Permalinks ON - Unable to install plugins and get errors Error from Plugin page :- Installation failed: (function () { document.documentElement.className = 'js'})(); Page not found – Villa Giant var ms_grabbing_curosr = 'https://www.xxxxx.co.uk/wp-content/plugins/master-slider/public/assets/css/common/grabbing.cur', ms_grab_curosr = 'https://www.xxxxxxx.co.uk/wp-content/plugins/master-slider/public/assets/css/common/grab.cur'; #wpadminbar { display:none; } html { margin-top: 32px !important; } * html body { margin- .............
Regards Keith0 -
Hello Keith, Could you open a support ticket using the link in my signature so we can take a closer look? Thank you. 0 -
Hi Here is my ticket number "8686569". Regards Keith 0 -
Issue is now fixed Cause was I had the Apache timeout set to 5 secs as when using fcgi, simply setting it to 300 secs (default) fixed my issue Moral of it - don't tinker with stuff ;-) Cheers to cpanel support Keith 0 -
Hi Keith, does "setting Apache timeout from 5 to the default 300s" completely resolve this issue? So after setting back to 300s, are you able to use MultiPHP Manager in customizing domains/accounts using PHP-FPM (turning it on/off), and setting different PHP versions, without the "404 not found" issue happening? I am experiencing the exact same issue and have been trying out all the suggestions in this thread. In my case, I did also try to optimize Apache by customizing the StartServers, KeepAlive, etc. and like in Keith's case, I've set the Timeout from the default 300s to something way below like 5s. But after setting this back to the default 300s, I am still encountering the same issue. I also tried experimenting with 'Optimize .htaccess (AllowOverride)' settings, no go. Same issue. When trying to fix the issue by doing the '/scripts/rebuildhttpdconf' command via SSH, this would only work sometimes, most of the time, it does nothing to fix the issue in my case. So far the only work-around that is working for me is by doing the ff: - go to Apache Configuration - change/click some settings so it will allow me to 'save' - so it then does: a.) Rebuilding httpd.conf " (Built /etc/apache2/conf/httpd.conf OK) b.) Restarting Apache (hard) " (1) So far, every time I do these steps, it seems to always fix the issue and the "404 not found" errors would go away. 0 -
Hello @intuitivsol, Do you notice any specific entries in /usr/local/apache/logs/error_log when you encounter the 404 error code in your browser? Also, what version of cPanel is installed on your system? Thank you. 0 -
Just minutes ago, I already update to the latest 'cPanel & WHM 64.0 (build 31)'. Not too sure what to look for at /usr/local/apache/logs/error_log as I can see hundreds of lines and I don't know which pertain during the times I encountered the "404 not found" issue. Hoping the update resolved the issue! I'll do some testing again, and will report back if ever I still encounter the same issue. (If I don't reply back, the probably the issue has been fixed, thanks cPanel folks!) 0
Please sign in to leave a comment.
Comments
21 comments