Internal Server Error with phpsuexec enabled

rainbows

Member
Dec 17, 2001
5
0
301
My apache was compiled with phpsuexec enabled.

Now, I have problem with my php script.
I always got Internal server Error on php script.
In error_log shows that

[Wed Jul 30 22:51:58 2003] [error] (8)Exec format error: exec of /usr/local/apache/htdocs/t1.php failed
[Wed Jul 30 22:51:58 2003] [error] [client 203.121.131.38] Premature end of script headers: /usr/local/apache/htdocs/t1.php

in my t1.php looks like this:

PHP:
<?  phpinfo(); ?>
but if I added !#/usr/bin/php on the top of file, It's work.
Anyone has any idea?

I do not have problem on any virtual host - (such as - /home/username/public_html/t1.php - it will run properly without any modification)

cPanel.net Support Ticket Number:

cPanel.net Support Ticket Number:
 

Radio_Head

Well-Known Member
Verifed Vendor
Feb 15, 2002
2,048
1
343
same problem here , any solution ?
 

Edi

Member
Sep 21, 2003
20
0
151
PHP suEXEC Support

disable_functions = phpinfo ,system, include, chown, chmod, exec, passthru, mail, readfile , dir , read, readdir
 

foxboy

Well-Known Member
Sep 20, 2003
66
0
156
Originally posted by Edi
PHP suEXEC Support

disable_functions = phpinfo ,system, include, chown, chmod, exec, passthru, mail, readfile , dir , read, readdir
and then disable php :eek: