Skip to main content

Magento php cgi cpu usage up to 96%

Comments

7 comments

  • Anoop P Alias
    you should use a better PHP server API like PHP-FPM. CGI is slow and does need to load a slow interpreter in every request. Additionally, if you use PHP-FPM you would be able to use opcode caches like opcache to speed up PHP execution. This is not possible in CGI . Magento is well supported by nginx ,so you can use a cPanel nginx plugin to additionally boost static file serving speeds.
    0
  • cPanelMichael
    Hello, As far as reviewing the existing MySQL resource usage, you may also find a command such as "mysqladmin processlist" helpful to see which MySQL processes are running. Thank you.
    0
  • jaheem
    Please can you help me i hav big problem when i active php-frp
    You don't have permission to access /customer/account/login/referer for login and other page giv Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator at - Removed - to inform them of the time this error occurred, and the actions you performed just before this error. More information about this error may be available in the server error log. Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
    could any one help Please Thank you
    0
  • cPanelMichael
    Could you let us know what is output to /usr/local/apache/logs/error_log when this happens? Thank you.
    0
  • jaheem
    I FIX the problem but still have one problem when i activate php-fpm rewrite not work all page say File not found.
    [Fri Jun 02 05:10:12.626519 2017] [auth_digest:notice] [pid 3403] AH01757: generating secret for digest authentication ... [Fri Jun 02 05:10:12.630954 2017] [mpm_prefork:notice] [pid 3403] AH00163: Apache/2.4.25 (cPanel) OpenSSL/1.0.1e-fips mod_bwlimited/1.4 configured -- resuming normal operations [Fri Jun 02 05:10:12.630963 2017] [core:notice] [pid 3403] AH00094: Command line: '/usr/sbin/httpd' [Fri Jun 02 05:10:18.352417 2017] [proxy_fcgi:error] [pid 5975] [client 196.217.xx.xxx:56036] AH01071: Got error 'Primary script unknown\n', referer: - removed - [Fri Jun 02 05:10:20.856327 2017] [proxy_fcgi:error] [pid 5975] [client 196.217.xx.xxx:56036] AH01071: Got error 'Primary script unknown\n', referer: - Removed -
    but is working with php-cgi but cpu usage is 96% and site slow
    0
  • cPanelMichael
    Primary script unknown

    Hello, Discussion of this error message is found on the following thread: SOLVED - Getting file not found vs 404 with PHPFPM Thank you.
    0
  • jaheem
    Thank you for your help
    0

Please sign in to leave a comment.