Diminutive Posted August 26, 2006 Share Posted August 26, 2006 Hi! I installed OsCommerce using Fantastico. When visiting the install, it first said Server Requirement Error: register_globals is disabled in your PHP configuration. This can be enabled in your php.ini configuration file or in the .htaccess file in your catalog directory. After looking around on here, I added the line php_flag register_globals On to first of all the .htaccess file in the public html root directory. This file was blank before adding this. I just added it on its own. On doing this the error changed to... Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. On removing that line and putting back a blank file, it went back to the register_globals error. I then tried putting the php_flag register_globals On in the .htaccess file in the /catalog subdirectory. This then again returned the internal server error. Can anyone give any advice on how to get this working? I couldn't find any information on it on here. THank you for your time! Link to comment Share on other sites More sharing options...
Diminutive Posted August 26, 2006 Author Share Posted August 26, 2006 Never mind, I have installed Vger's patch, so thanks Vger. Though I read this limits the possibilities of using other contributions? So any help would still be appreciated ;) The install I have at the moment is just a test, I plan to clean re-install before going live =) I have emailed my host as I'm guessing its an issue with them. Link to comment Share on other sites More sharing options...
Diminutive Posted August 27, 2006 Author Share Posted August 27, 2006 sorry to bug and bump (and triple post) like a newb but does anyone have any solutions. I managed to break it again by installing another contribution ! =) So I will re-install and properly follow the install instructions for the second contribution! I think I just over-wrote a few of the files that the patch needed! Link to comment Share on other sites More sharing options...
satish Posted August 27, 2006 Share Posted August 27, 2006 At your site server register globals are off. The best way would be tro approach your hosting company on this.As they know what all constrained they have placed n the server plus htaccess issues are linux issues which they are very good at. If they are not able to assist then you create a.htaccess or php.ini file and place it to switch register globals on. But the best suggestion is not to switch on register globals but to use vger patch and all contrib that you instal, you fix the code. Satish sorry to bug and bump (and triple post) like a newb but does anyone have any solutions. I managed to break it again by installing another contribution ! =) So I will re-install and properly follow the install instructions for the second contribution! I think I just over-wrote a few of the files that the patch needed! Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does. Link to comment Share on other sites More sharing options...
Lucky;) Posted August 28, 2006 Share Posted August 28, 2006 I've got a similar problem. I copy my web to localhost. and the ERROR register_globals is disabled in php.ini please enable it! came up. I changed my C:\WINDOWS\php.ini (ON) I modified the .htaccess file but I have the same error. Link to comment Share on other sites More sharing options...
satish Posted August 28, 2006 Share Posted August 28, 2006 I've got a similar problem.I copy my web to localhost. and the ERROR register_globals is disabled in php.ini please enable it! came up. I changed my C:\WINDOWS\php.ini (ON) I modified the .htaccess file but I have the same error. paste your htaccess file. Satish Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does. Link to comment Share on other sites More sharing options...
Lucky;) Posted August 29, 2006 Share Posted August 29, 2006 paste your htaccess file.Satish # php_value register_globals 0 php_value register_globals 1 Link to comment Share on other sites More sharing options...
everyth5 Posted August 30, 2006 Share Posted August 30, 2006 # php_value register_globals 0php_value register_globals 1 I am having a similar problem and have the same code in my .htaccess file. I am trying to configure a local site and this is my only drawback right now. This is my .htaccess file code. # $Id: .htaccess,v 1.3 2003/06/12 10:53:20 hpdl Exp $ # # This is used with Apache WebServers # # For this to work, you must include the parameter 'Options' to # the AllowOverride configuration # # Example: # # <Directory "/usr/local/apache/htdocs"> # AllowOverride Options # </Directory> # # 'All' with also work. (This configuration is in the # apache/conf/httpd.conf file) # The following makes adjustments to the SSL protocol for Internet # Explorer browsers <IfModule mod_setenvif.c> <IfDefine SSL> SetEnvIf User-Agent ".*MSIE.*" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 </IfDefine> </IfModule> # If Search Engine Friendly URLs do not work, try enabling the # following Apache configuration parameter # # AcceptPathInfo On # Fix certain PHP values # (commented out by default to prevent errors occuring on certain # servers) # #<IfModule mod_php4.c> # php_value session.use_trans_sid 0 # php_value register_globals 0 #</IfModule> Thanks Kelvin Link to comment Share on other sites More sharing options...
Diminutive Posted August 30, 2006 Author Share Posted August 30, 2006 While I'm no expert, #<IfModule mod_php4.c># php_value session.use_trans_sid 0 # php_value register_globals 0 #</IfModule> Thats all commented out (though you probably knew that. ) and 0 is off. So if you uncomment those lines and change the 0 of register_globals to 1 it should work? Though I'm guessing it needs to be on in both .htaccess and php.ini so you may need to configure that too? Link to comment Share on other sites More sharing options...
satish Posted August 30, 2006 Share Posted August 30, 2006 #<IfModule mod_php4.c> # php_value session.use_trans_sid 0 php_value register_globals 1 #</IfModule> then too if this does not work you need to ask your hosting company as some environment(Server) may not allow this to over write there settings. You can give a try with a new php.ini or .htacess Satish While I'm no expert, Thats all commented out (though you probably knew that. ) and 0 is off. So if you uncomment those lines and change the 0 of register_globals to 1 it should work? Though I'm guessing it needs to be on in both .htaccess and php.ini so you may need to configure that too? Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does. Link to comment Share on other sites More sharing options...
Diminutive Posted September 4, 2006 Author Share Posted September 4, 2006 Where would you put a new php.ini file? My host finally replied to me just telling me to make a new php.ini file. in my phpinfo file it says Configuration File (php.ini) Path /usr/local/Zend/etc/php.ini ... wouldn't that be the file that needs to be changed to enable it? I dont have access to that file. Link to comment Share on other sites More sharing options...
Diminutive Posted September 4, 2006 Author Share Posted September 4, 2006 GRRRR. Now i'm annoyed -_-; The phpinfo config location changed to /home2/forbidd/public_html/php.ini which I do have access to. It still said off for register_global so I googled php.ini and downloaded a basic template one and changed register_globals too on. Register_globals in phpinfo changed to on .... register_globals On On So it should all work right? I reinstalled OS commerece (it was broken due to installing STS after the register_globals patch) and ... Server Requirement Error: register_globals is disabled in your PHP configuration. This can be enabled in your php.ini configuration file or in the .htaccess file in your catalog directory. Why wont the stupid thing just work >.>; EDIT: Okay it worked :-D I made a copy of the php.ini file from the /public_html file into the OSC folder and it worked :-D Ty everyone for your help! I hope this topic might help some people =p Link to comment Share on other sites More sharing options...
Diminutive Posted September 4, 2006 Author Share Posted September 4, 2006 It says I dont have permission to edit my post? But okay, I was too quick in saying it worked >.>; The admin part didn't work... but then I made another copy of php.ini into the admin folder, and the admin part is working... am i going to need a php.ini file in every single folder >.> Link to comment Share on other sites More sharing options...
satish Posted September 7, 2006 Share Posted September 7, 2006 All subfolder will take that php.ini unless over ride by another php.ini down the line. Satish Mantri It says I dont have permission to edit my post? But okay, I was too quick in saying it worked >.>; The admin part didn't work... but then I made another copy of php.ini into the admin folder, and the admin part is working... am i going to need a php.ini file in every single folder >.> Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.