ristretto6 Posted May 23, 2008 Share Posted May 23, 2008 Hi, there. I'm pretty new to PHP and MySQL, but the first thing I'm met with when trying to install PrestaShop is it's telling me that my Register Globals are on when they should be off. I've tried researching this but don't understand how or where to change this in my PHP settings. Can someone please let me know where I can turn this off? Thanks!! Link to comment Share on other sites More sharing options...
KaanK Posted May 25, 2008 Share Posted May 25, 2008 You must be talking about this i guess ? [li]PHP register global option is off (recommended)[/li] [li][/li] I am the one with you. trying to fix this up. But cant find how to. its me again on the stage help me guyss Link to comment Share on other sites More sharing options...
ristretto6 Posted May 27, 2008 Author Share Posted May 27, 2008 I asked my web host and got a really great answer: *** In order to turn off register_globals, you should create and use files named php.ini. A php.ini file should contain the following lines: register_globals = off post_max_size = 20M memory_limit = 80M upload_max_filesize = 20M max_execution_time = 120 expose_php = off session.save_path = /tmp mysqli.default_socket = /tmp/mysql5.sock The first line turns off the "register_globals" setting, and the rest of the lines are needed for compatibility reasons. Note that php.ini files do not work recursively, and you need to add the file in each directory where you want the PHP behavior changed. *** I tried this and now my register globals are turned off and it lets me proceed to the next step. Hope this helps anyone else having this problem! Link to comment Share on other sites More sharing options...
smoker Posted May 31, 2008 Share Posted May 31, 2008 if using share hosting, just edit .htaccess file and add list line php_flag register_globals off Link to comment Share on other sites More sharing options...
sworld Posted October 16, 2013 Share Posted October 16, 2013 I am having php5.ini file with register_globals as off, but config info shows Optional parameters: Please fix the following error(s) register_globals Link to comment Share on other sites More sharing options...
NemoPS Posted October 17, 2013 Share Posted October 17, 2013 It must be php.ini, are you sure that php5.ini is being grabbed by the server as configuration file? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now