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

Hjälpte svaret dig?

 Skriv ut denna artikeln

Läs även

Brand new spam attacks - Seems like an emergency

Posted by ub3r, 03-18-2007, 04:12 PMThis afternoon I noticed a pattern of spam on several...

File Server Setup With Nginx...how do I choose the config for the server?

Posted by azn_romeo_4u, 04-22-2009, 02:03 PMSo I just want to use a server for file sharing, it...

Removal of wget generated files

Posted by ladless, 09-19-2008, 03:19 PMHi there. I have several cronjobs set up like the...

MRTG with Plesk

Posted by hosteur, 05-07-2007, 07:26 AMWell, I have a box with centos and plesk from...

PHP - check if file exists on a remote server

Posted by Gigaron, 01-16-2008, 03:08 AMI have my static files duplicated and spread over multiple...