Page 1 of 1

phpsuexec causing problems for me

Posted: Tue Sep 28, 2004 12:09 am
by petermk
My web host has implemented phpsuexec, and broken my website (Apache 1.3.31, Linux 2.4.20-28.7smp, php 4.3.8).

After phpsuexec was implemented, my website produced internal server errors which continued until I removed these lines from .haccess:

Code: Select all

AddType application/x-httpd-php .html .htm
php_value auto_prepend_file їpath]/refer/refer.php
All my html files include this instruction to compress files before serving them...

Code: Select all

<?php
<?php ob_start("ob_gzhandler"); ?>
?>
...which explains why I want those files parsed for php.

The auto_prepend_file is Dean Allen's excellent refer script: http://www.textism.com/tools/refer/

My web host says "WE have had to change back to phpsuexec on that server earlier in order to stop a hack attempt. Unfortunately this breaks those two directives and it has been studied and no solution found besides moving it to a less secure server."

Can anyone suggest how I can fix this?

Posted: Tue Sep 28, 2004 9:15 am
by feyd
you could just stick it at the top of every script you run.

Posted: Tue Sep 28, 2004 5:18 pm
by petermk
Feyd: Thanks for the suggestion.

Yes, I could add that piece of code to each of several hundred web pages (though I would prefer to find a way to get auto_prepend_file to work).

But the other (more serious) problem remains: PHP won't operate on any of the files without some sort of AddType instruction.

Could this be done via php.ini?

Can anyone else help?

Posted: Tue Sep 28, 2004 5:20 pm
by feyd
potentially you could use an htaccess file.. but I'm not 100% sure of that bit.

Posted: Tue Sep 28, 2004 5:39 pm
by petermk
I used to have these directives in a .htaccess file, and everything worked. But when the host implimented phpsuexec the problem began. See my first posting in this thread.

Cheers
petermk

Posted: Tue Sep 28, 2004 6:32 pm
by feyd
heh yeah.. totally forgot about that :oops: