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

Bu mövzu kifayət qədər köməkçi oldu mu?

 Çap

Digər Başlıqlar

ereg allow space? Simple for those who understand it

Posted by lexington, 09-21-2008, 10:46 PMI do not think I will ever fully understand ereg, eregi,...

P2V migration

Posted by webservermatrix, 04-23-2009, 06:41 AMHi, We have 2 servers SQL, Web & SM 4.x each with...

Any security risks with setting up server on home network?

Posted by Papa G, 06-28-2008, 04:09 PMAny security risks with setting up server on home network?...

What to do about another domain pointing toward your IP?

Posted by Frontpage1, 06-27-2008, 06:55 PMWe recently moved one server to a colo provider and...

Question on array sorting in php

Posted by computerwiz3491, 01-17-2008, 05:10 PMI have the following array that I printed using...