changing register_globals from .htaccess will cause 500 Error when php run as CGI

Posted by mshannaq, 05-07-2007, 01:44 PM
Hello, Today I have a customer want to swich the register_globals on on his account ,,, i'm running PHPSuExec and running php as cgi not as Apache module , and as you know using php as cgi will cause internal error 500 if some one add php_flag register_globals on to .htaccess file. what is the soluation to switch register_globals on for his account only without using the .htaccess file. put in mind the php files that need the register_globals to be on is encrypted with zend , so we does not have access to it for modification. have any one have the soluation? Thanks,

Posted by Patrick, 05-07-2007, 01:47 PM
Have you tried creating a php.ini file under the directory and inserting the following: register_globals=On

Posted by mshannaq, 05-07-2007, 02:43 PM
yes i try to do it in php.ini register_globals=On but it seems that php.ini file in home directory ignored because nothing changed Thanks,

Posted by mshannaq, 05-07-2007, 03:00 PM
i sloved the problem by putting the php.ini in the folder that contaning php files not the the root folder for the customer account thanks

Ha estat útil la resposta?

 Imprimeix aquest Article

Llegir també

EARHOST down!

Posted by davkiz, 08-29-2002, 03:54 AMWow now there's a surprise. It was bound to happen. Their...

Linux: backup hard drive mounted to /backup

Posted by UberTricep, 11-10-2012, 07:49 AMI have a new dedicated server and I ordered a backup...

Plain Text To PNG

Posted by CAB 08, 09-22-2008, 06:33 AMHey, does anyone know a piece of code that can transform...

Do I really need SpamAssassin?

Posted by dr00t, 09-18-2008, 03:26 AMI have a relatively low-end server that is running cPanel...

how protection upload from members {jpg-gif-png} only ?

Posted by 3okl, 09-18-2008, 07:06 PMif member have none photo the uploader start upload anyfile...