Announcement

Collapse
No announcement yet.

Error 500 when switch from suPHP to FCGI

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error 500 when switch from suPHP to FCGI

    Hello! Im trying to setup one server to use FCGI instead of suPHP. Its a shared server with 150 accounts. Every time i try i get error 500 on some sites. I check the file permissions and are ok, how can i debug this problem?

    Here is a sample error from apache error_log

    [Wed Sep 23 12:00:24 2015] [warn] [client 207.46.13.176] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
    [Wed Sep 23 12:00:24 2015] [error] [client 207.46.13.176] Premature end of script headers: index.php

    Thanks!

  • #2
    Hi,

    There should be more information in some other apache logs, most probably in suexec_log . The usual thing of such error after switching to FCGI are permissions and ownership isssues, for files and for directories.

    Comment


    • #3
      Im pretty sure the problem is one of the Fcgi limits is being reached. You can add my fcgi configuration in WHM "Apache Configuration" -> Include Editor - Pre Virtual Host Include

      Code:
      FcgidMaxRequestsPerProcess 500
      
      FcgidMinProcessesPerClass 0
      
      FcgidMaxProcessesPerClass 8
      
      FcgidMaxProcesses 150
      
      FcgidIdleTimeout 60
      
      FcgidProcessLifeTime 540
      
      FcgidIdleScanInterval 30
      
      BusyTimeout 1500
      
      IPCConnectTimeout 300
      
      IPCCommTimeout 7200
      Tweak it according to your needs or server.

      Regards

      Comment


      • #4
        Also, did you execute cagefsctl --force-update after a switch? Maybe needed binaries are not there?

        Comment


        • #5
          Thanks, i looked in suexec_log and found those lines

          [2015-09-23 13:41:56]: uid: (742/delsatgr) gid: (742/delsatgr) cmd: php5
          [2015-09-23 13:41:56]: cannot stat program: (php5)
          [2015-09-23 13:41:56]: uid: (742/delsatgr) gid: (742/delsatgr) cmd: php5
          [2015-09-23 13:41:56]: cannot stat program: (php5)

          Comment


          • #6
            Bogdan, it was that!!!!

            Thanks!

            Comment

            Working...
            X