Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 14 of 14
  1. #1
    NoAgendas
    Guest

    Default fastcgi / internal 500's after php upgrade

    I get internal 500 errors on one particular server after going from php 4.4.2 to 4.4.4 (all modules the same except newer php version)

    apache log:

    Premature end of script headers

    (all php based sites)

    What is the fix for this?

    Another problem with fastcgi:

    /etc/rc.d/init.d/httpd restart: httpd not running, trying to start
    Syntax error on line 193 of /usr/local/apache/conf/httpd.conf:
    FastCgiIpcDir /tmp/fcgi_ipc: access for server (uid -1, gid -1) failed: write not allowed

    phpsuexec enabled / centos 4.3 / cpanel 10x stable

    I ran the below as well, didn't fix it.

    /scripts/chownpublichtmls
    find /home -perm 755 -type d
    find /home -perm 755 -type f
    find /home -perm 755 -exec chmod 755 {} \;

    The odd part is I have two other servers 100% identcial literally (o/s, cpanel, modules, etc) and it upgraded fine.

    Modules:

    Expires Module
    Raise FD_SETSIZE to 16384 (System Wide)
    Prevent Users from reading other webroots Frontpage Module

    Raise HARD_SERVER_LIMIT

    Php Module Version 4.4.4

    Bc Math
    Calendar Support
    Curl (Version 7.15.3)
    Curl SSL Support (Version 2.8.28)
    Dom XSLT
    Exif
    Flash
    FTP
    GD (Version 2.0.15)
    GetText
    Iconv (experimental)
    Imap Module (Version 2004g)
    Mb String
    Mcrypt (Version 2.5.7)
    Mhash (Version 0.8.18)
    Magic Quotes
    MM Session Module (Version 1.3.1)
    Mysql Module
    SNMP
    Openssl Support
    Discard Path
    PDFlib
    Pear
    Postgresql (will break 7.2.x or earlier, please make sure you have 7.3.x or later installed) Pspell Module Sockets Use System Mysql Track Vars Freetype Support Zip Zlib PHP suEXEC Support Rewrite Module SSL Module (Version 2.8.28) suEXEC Module

  2. #2
    Member Solokron's Avatar
    Join Date
    Aug 2003
    Posts
    783

    Default

    I am having this same issue. It appears to be related to php suexec. As soon as it is disabled everything works great. We have been using php suexec for quite some time with no problems. I have checked .htaccess files, ownership, php permissions etc and they are all fine. These sites works great until the update to PHP 4.4.4 from 4.4.2. Nothing else in the easyapache config was changed.

  3. #3
    Member
    Join Date
    Aug 2006
    Posts
    8

    Default

    try a

    httpd configtest

    see if that will output your real problem. i know w/ mine i get alot of errors bout * w/ ports but ive had those for years w/ out a issue.

    good luck

  4. #4
    NoAgendas
    Guest

    Default

    httpd configtest shows no errors

    Anyone else know about this?

  5. #5
    Member Solokron's Avatar
    Join Date
    Aug 2003
    Posts
    783

    Default

    I have the same issue to no resolve.

    http://forums.cpanel.net/showthread.php?t=56783


    Quote Originally Posted by NoAgendas
    httpd configtest shows no errors

    Anyone else know about this?

  6. #6
    Member
    Join Date
    Jul 2003
    Posts
    275

    Default

    Same problem here. I had Michael from cPanel on the server last night trying to figure out what was wrong, and he came up empty. We knew there was something wrong, and I figured out what was causing it, but we could not figure out why.
    I ended up rolling back to 4.4.3.

  7. #7
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    I don't think it has anything to do with PHP ....

    I have machines all over the place that are going down with the same problem
    with Cpanel tonight and none of them have had any updates or changes
    to PHP lately and none of them are running phpsuexec or suphp.

    It looks more like a file / directory permission problem in the latest cpanel update

  8. #8
    Member
    Join Date
    Aug 2001
    Posts
    421
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    The latest cpanel update added the following to my httpd.conf file:

    <IfModule mod_suphp.c>
    suPHP_Engine on
    suPHP_ConfigPath /opt/suphp_php_bin
    suPHP_AddHandler x-httpd-php
    <Directory /home*/*/public_html>
    suPHP_AddHandler x-httpd-php
    </Directory>
    AddHandler x-httpd-php .php .php3 .php4 .phtml
    AddType application/x-httpd-php .php .phtml .php3 .php4
    </IfModule>
    <IfModule !mod_suphp.c>
    AddHandler x-httpd-php .php .php3 .php4 .phtml
    AddType application/x-httpd-php .php .phtml .php3 .php4
    </IfModule>
    <VirtualHost *>

    This was a /scripts/upcp Release update, not easyapache. It killed php on the server. After hunting this down and removing it php was re-enabled. I don't quite understand why it would cause so much trouble. I don't have mod_suphp or phpsuexec installed.

  9. #9
    NoAgendas
    Guest

    Default

    That's not true in my case. I get premature script header errors only when upgrading to php 4.4.3 or 4.4.4

  10. #10
    Member
    Join Date
    Jun 2004
    Location
    amsterdam
    Posts
    267

    Default

    Quote Originally Posted by NoAgendas
    That's not true in my case. I get premature script header errors only when upgrading to php 4.4.3 or 4.4.4

    If you are using the new easyapache (edge), then you must checked the follow options under php:

    enable cgi
    enable-cgi-force-redirect

  11. #11
    NoAgendas
    Guest

    Default

    I do not understand. Is this in httpd.conf? Where? I'm using whm apache update, release version of cpanel
    Last edited by NoAgendas; 09-02-2006 at 11:17 AM.

  12. #12
    Member
    Join Date
    Jun 2004
    Location
    amsterdam
    Posts
    267

    Default

    Quote Originally Posted by NoAgendas
    I do not understand. Is this in httpd.conf? Where? I'm using whm apache update, release version of cpanel

    When you run easyapache (edge)
    Last edited by rachweb; 09-02-2006 at 11:26 AM.

  13. #13
    NoAgendas
    Guest

    Default

    That means I have to upgrade cpanel to edge?

    Isn't there a better way than that?

  14. #14
    Member
    Join Date
    Jun 2004
    Location
    amsterdam
    Posts
    267

    Default

    Quote Originally Posted by NoAgendas
    That means I have to upgrade cpanel to edge?

    Isn't there a better way than that?
    The easyapache on release/stable/current is installing php as cli version. There are howtos on the internet how you can change this to cgi version.

    The easyapache on edge has the options for cgi version and suphp option. But the httpd.conf is not finished yet for the new easyapache. See bugzilla http://bugzilla.cpanel.net/show_bug.cgi?id=4526 and http://bugzilla.cpanel.net/show_bug.cgi?id=2299 for more information.

    Suphp/fastcgi requires cgi version to work correctly

Similar Threads & Tags
Similar threads

  1. Replies: 2
    Last Post: 06-07-2011, 08:32 PM
  2. PHP gives me 500 Internal Error
    By Emil_RDW in forum cPanel and WHM Discussions
    Replies: 20
    Last Post: 05-05-2011, 05:45 AM
  3. Runnng PHP as FastCGI instead of DSO - Internal Server Error
    By DReade83 in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 03-10-2009, 12:19 PM
  4. New installation php 500 internal error
    By johnyred in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 08-19-2006, 09:29 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube