Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Page 1 of 3 1 2 3 LastLast
Results 1 to 15 of 34
  1. #1
    Member Solokron's Avatar
    Join Date
    Aug 2003
    Posts
    779

    Exclamation EasyApache install with php suexec caused all php to result in internal server errors

    Just updated server from PHP 4.4.2 with php suxec to 4.4.4 with php suexec. Any call to PHP results in an internal error. Again, these clients have been in a suexec environment for quite a while and the php upgrade was performed. Permissions and ownership are still what are necessary for php suexec. Even a simple php file with the contents "hello world" chowned and chmod 755 results in Internal Server Error. I tried thunking back to 4.4.2 and php suexec and this still occurs.

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge AndyReed's Avatar
    Join Date
    May 2004
    Location
    Minneapolis, MN
    Posts
    2,223

    Default

    Quote Originally Posted by Solokron
    Just updated server from PHP 4.4.2 with php suxec to 4.4.4 with php suexec. Any call to PHP results in an internal error. Again, these clients have been in a suexec environment for quite a while and the php upgrade was performed. Permissions and ownership are still what are necessary for php suexec. Even a simple php file with the contents "hello world" chowned and chmod 755 results in Internal Server Error. I tried thunking back to 4.4.2 and php suexec and this still occurs.
    Upgrade ZendOptimizer to the latest release v3.0.1, if using ZendOptimizer. If not, re-compile Php with Verbose on and look for errors.
    Andy Reed
    RHCE and CCNA
    ServerTune.com

  3. #3
    Member Solokron's Avatar
    Join Date
    Aug 2003
    Posts
    779

    Default

    3.01 was already installed. I did in fact reinstall it afterwards to no resolve.

    When I run easyapache I run from an ssh session.

    Quote Originally Posted by AndyReed
    Upgrade ZendOptimizer to the latest release v3.0.1, if using ZendOptimizer. If not, re-compile Php with Verbose on and look for errors.

  4. #4
    Member WebScHoLaR's Avatar
    Join Date
    Dec 2005
    Location
    Planet Earth
    Posts
    504

    Default

    Have you checked /usr/local/apache/logs/error_log and /usr/local/apache/logs/suexec_log for the errors?

    Regards,
    WebScHoLaR

    WebHosting Blog: http://WebScHoLaR.net

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

    Default

    Nice FF avatar. Yes I checked suexec immediately when it started occuring but could not locate any errors:

    [2006-06-28 15:29:35]: info: (target/actual) uid: (persocom/persocom) gid: (persocom/persocom) cmd: home.php
    [2006-06-28 15:29:35]: info: (target/actual) uid: (persocom/persocom) gid: (persocom/persocom) cmd: adlog.php
    [2006-06-28 15:29:35]: info: (target/actual) uid: (persocom/persocom) gid: (persocom/persocom) cmd: adlog.php
    [2006-06-28 15:29:35]: info: (target/actual) uid: (persocom/persocom) gid: (persocom/persocom) cmd: adlog.php
    [2006-06-28 15:29:36]: info: (target/actual) uid: (persocom/persocom) gid: (persocom/persocom) cmd: adlog.php
    [2006-06-28 15:29:36]: info: (target/actual) uid: (persocom/persocom) gid: (persocom/persocom) cmd: adlog.php
    [2006-06-28 15:29:36]: info: (target/actual) uid: (persocom/persocom) gid: (persocom/persocom) cmd: adlog.php

    Which is to be expected. Even simple hello files with .php for an extension were hosed.

    error_log:

    [Fri Aug 25 15:08:58 2006] [error] [client 67.160.188.165] Premature end of script headers: /home/persocom/public_html/online_dating.php
    failed to open log file
    fopen: Permission denied

    [Fri Aug 25 16:48:33 2006] [error] [client 72.30.111.152] Premature end of script headers: /home/persocom/public_html/ad_server/

    These files were indeed set to 755 and chowned correctly which threw me off.


    I tried recompliling back to apache with suexec and php 4.4.2 but still ocurs so I have recompiled apache without suexec on the server to get it back up and running which has not made me too happy.

    I will try again tonight with a release build and httpd configtest




    Quote Originally Posted by WebScHoLaR
    Have you checked /usr/local/apache/logs/error_log and /usr/local/apache/logs/suexec_log for the errors?

  6. #6
    Member Solokron's Avatar
    Join Date
    Aug 2003
    Posts
    779

    Default

    Well here we go. It appears easy apache, even with a stable build and upcp --force selected does what the beta apparently does which I ran into in a thread researching this issue. It rems out

    LoadModule php4_module libexec/libphp4.so
    AddModule mod_php4.c

    By removing the rems and restarting Apache it loads back up with php suexec once again. Or am I making the mistake of simply enabling the standard php4 module and phpsuexec is being bypassed?
    Last edited by Solokron; 08-29-2006 at 05:35 AM.

  7. #7
    Member Solokron's Avatar
    Join Date
    Aug 2003
    Posts
    779

    Exclamation

    If I remark back, 500 internal errors again.

    error_log:

    [Tue Aug 29 04:41:49 2006] [error] [client 71.231.237.36] Premature end of script headers: /home/userxxx/public_html/index.php
    [Tue Aug 29 04:41:49 2006] [error] [client 71.231.237.36] File does not exist: /home/userxxx/public_html/500.shtml

    suexec_log
    [2006-08-29 04:41:49]: info: (target/actual) uid: (userxxx/userxxx) gid: (userxxx/userxxx) cmd: index.php

  8. #8
    NoAgendas
    Guest

    Default

    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

  9. #9
    Member dave9000's Avatar
    Join Date
    Apr 2003
    Location
    arkansas
    Posts
    891
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by Solokron
    Well here we go. It appears easy apache, even with a stable build and upcp --force selected does what the beta apparently does which I ran into in a thread researching this issue. It rems out

    LoadModule php4_module libexec/libphp4.so
    AddModule mod_php4.c

    By removing the rems and restarting Apache it loads back up with php suexec once again. Or am I making the mistake of simply enabling the standard php4 module and phpsuexec is being bypassed?
    Your bypassing the phpsuexec when you re-enable the loadmodule and addmodule lines

    what has worked for me with the fopen log error is delete the log files , restart the apache and let it remake them

    also check and make sure /tmp is not full and has these permissions

    /tmp 1777 root:root
    Dave Browning
    Intersite Technologies
    Greenbrier Ar
    dave@isitetech.com

  10. #10
    NoAgendas
    Guest

    Default

    Quote Originally Posted by NoAgendas
    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
    How about my problem here?

  11. #11
    Member dave9000's Avatar
    Join Date
    Apr 2003
    Location
    arkansas
    Posts
    891
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by NoAgendas
    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
    check the permissions on the /tmp/fcgi_ipc make sure the web server can write to that directory and that the directory exists
    Dave Browning
    Intersite Technologies
    Greenbrier Ar
    dave@isitetech.com

  12. #12
    NoAgendas
    Guest

    Default

    I had done that already, what else would cause this?

  13. #13
    Member dave9000's Avatar
    Join Date
    Apr 2003
    Location
    arkansas
    Posts
    891
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    I have no experience with fastcgi so I am not going to be much additional help here
    Dave Browning
    Intersite Technologies
    Greenbrier Ar
    dave@isitetech.com

  14. #14
    NoAgendas
    Guest

    Default

    drwxrwxrwx 3 nobody nobody 4.0K Jul 29 11:51 fcgi_ipc/

  15. #15
    Member Solokron's Avatar
    Join Date
    Aug 2003
    Posts
    779

    Default

    I have performed these to no resolve.

    Quote Originally Posted by dave9000
    Your bypassing the phpsuexec when you re-enable the loadmodule and addmodule lines

    what has worked for me with the fopen log error is delete the log files , restart the apache and let it remake them

    also check and make sure /tmp is not full and has these permissions

    /tmp 1777 root:root

Similar Threads & Tags
Similar threads

  1. Replies: 2
    Last Post: 06-07-2011, 09:32 PM
  2. easyapache and php suexec
    By ilearn_webtech in forum cPanel Developers
    Replies: 10
    Last Post: 12-26-2007, 03:16 PM
  3. EasyApache errors. broken php/unrecognized php.ini
    By skuhn718 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-01-2006, 10:23 AM
  4. PHP SuExec in /scripts/easyapache
    By nitromax in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 03-25-2003, 02:15 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube