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

Răspunsul a fost util?

 Tipărire

V-ar mai putea interesa și

Script PHP to check links automatically - backlink checker

Posted by JaneP, 10-22-2012, 12:08 PMHello forum Sometimes it is necessary to check every time...

Attacking multicore CPUs (new vulnerability discussion from Slashdot/The Register)

Posted by Lightwave, 09-16-2007, 10:02 AMAttacking multicore CPUs...

Load Balancing 2 Web servers and 2 MySQL Servers

Posted by YYamagishi, 03-28-2008, 04:02 AMHi, I was wondering if it is possible to cluster 2 web...

SPAM died me

Posted by Tiva, 03-19-2007, 05:43 AMhi, my support and sales mailbox almost get full of spam and...

.htaccess & cpanel

Posted by compjab, 03-24-2007, 11:22 PMI've protected a directory with cPanel and the user/pwd...