student Posted April 2, 2005 Share Posted April 2, 2005 Help! Having problem fresh installing the package on Win 2000 running Apache 2.0.52 I followed the instruction, copy the unzip catalog folder to my server root C:\www\webroot\catalog. When doing the "http://localhost/catalog/", I got this fetal error: FATAL ERROR: register_globals is disabled in php.ini, please enable it! then I went to the C:/WINNT/php.ini and make change of this line into the file: register_globals = on reboot the PC, run the install again, STILL getting the same error! I am lost, could any one provide a hint what I was missing!!! let me know if you need more info about my problem. Thanks. John :( Link to comment Share on other sites More sharing options...
♥Vger Posted April 2, 2005 Share Posted April 2, 2005 Do a file search of your computer, because there may well be more than one copy of php.ini - in which case edit them all. Secondly the setting should be On and not on (capital S not small s). Vger Link to comment Share on other sites More sharing options...
Guest Posted April 2, 2005 Share Posted April 2, 2005 Or remove the register globals requirement while you can, it's safer anyway. http://www.oscommerce.com/community/contributions,2957 :) Link to comment Share on other sites More sharing options...
student Posted April 2, 2005 Author Share Posted April 2, 2005 Thanks for answering. Vger, I searched the whole C:\ and found C:\WINNT\php.ini C:\www\php\php.ini-dist C:\www\php.ini-recommended changed the line into: register_globals = On on all these three files (although don't think the last two are relevent, and letter up/low case being a matter on Window machines) calling from IE: http://localhost/catalog/ still getting the same error: FATAL ERROR: register_globals is disabled in php.ini, please enable it! :( :( Paul, could you provide more specific about how to remove the register globals requirement ? Following your link, I downloaded the zip file: Register Globals Patch Files.zip, but not sure how to process next with the file. John Link to comment Share on other sites More sharing options...
OceanRanch Posted April 2, 2005 Share Posted April 2, 2005 First of all, run the following script in a file in your web root. (i.e. myphp.php) <?php phpinfo(); ?> This will list out EXACTLY which file and path the apache server is looking for. It may be looking at c:\www\php\php.ini and you still have it named c:\www\php\php.ini-dist. It may be as simple as renaming c:\www\php\php.ini-dist to c:\www\php\php.ini Once you know the exact path it should be easy from there. Don't forget to restart apache. HTH Tom Link to comment Share on other sites More sharing options...
student Posted April 3, 2005 Author Share Posted April 3, 2005 Hi, Applying the patches contained in this suggested "Register Globals Patch Files.zip" fixed my problem. Now I can process my osCommerce installation, although not knowing what this "removing the register globals requirement" means in terms of system seurity. The patching requres that the "register_globals = Off" be kept in the php.ini. Thanks all that spending times to answer my questions. John Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.