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

Byla tato odpověď nápomocná?

 Tisknout tento článek

Také čtěte

Call Script that Deletes Logs after Stats Run Manually?

Posted by thewird, 01-15-2008, 02:04 AMI'm trying to create a script to archive logs for 7 days...

WordPress sitemap plugin problem or no ?

Posted by SimonDevise, 11-06-2012, 05:25 AMI have use WordPress sitemap plugin 2-3 month, but I...

SVN web interface

Posted by fqaisrani, 02-21-2011, 10:17 AMI want to install SVN server on my VPS along with a web...

max_allowed_packet error

Posted by vnsg, 09-15-2007, 12:39 AMOne of my client use VBB 3.6.7 and have error when try to...

Newbie setting up LAMP (Fedora 7)

Posted by r557, 09-16-2007, 02:54 PMLooking for some good information that would help me get my...