dan.rosen Posted April 27, 2005 Share Posted April 27, 2005 Hi all :D I'm having a problem installing OS Commerce using a Mac (OSX)... The message : FATAL ERROR: register_globals is disabled in php.ini, please enable it! comes up when I try to view os commerce through the browser or try to install. Does anyone know how to access or know the location of "php.ini" for the mac. Thanks in advance Dan Link to comment Share on other sites More sharing options...
♥Vger Posted April 27, 2005 Share Posted April 27, 2005 Use 'Finder' on the Mac to locate the file (may be more than one of them), edit in Text Edit. You may have to change permission of the file before you can edit. If I remember correctly it's Read Only by default. Vger Link to comment Share on other sites More sharing options...
dan.rosen Posted April 27, 2005 Author Share Posted April 27, 2005 Use 'Finder' on the Mac to locate the file (may be more than one of them), edit in Text Edit. You may have to change permission of the file before you can edit. If I remember correctly it's Read Only by default. Vger <{POST_SNAPBACK}> Thanks for that. I have made the alterations and saved the file but I'm still getting the error message come up. Do you know any other reasons why this is? Link to comment Share on other sites More sharing options...
♥Vger Posted April 27, 2005 Share Posted April 27, 2005 When I installed osCommerce on my Mac Mini I found three php.ini files and had to edit all of them before I could get osCommerce to run. And before I could edit any of those files I first had to change the access permissions on them. Check that you have permission to edit the php.ini files, and make sure that you've found and edited all of them. You may have to bring up the terminal window, enter sudo su (for access) then enter your Apache Administrator password, then use the cd command followed by the file pathway to navigate to the php.ini files and then edit them in the terminal window. Vger Link to comment Share on other sites More sharing options...
JeremyToaster Posted May 3, 2005 Share Posted May 3, 2005 Hmmm, My Mac only contains one php.ini file and its actually called php.ini.default Turning on globals there didn't solve the issue for me... Link to comment Share on other sites More sharing options...
dan.rosen Posted May 3, 2005 Author Share Posted May 3, 2005 Hmmm,My Mac only contains one php.ini file and its actually called php.ini.default Turning on globals there didn't solve the issue for me... <{POST_SNAPBACK}> Hi'ya Just so you know there are 3 files that need to be changed in order to make it work. If you go to the terminal and type 'locate php.ini' it'll list where the files are on you computer. All you have to do then is change register_globals to 'yes' in each file. That should work :) Link to comment Share on other sites More sharing options...
Iggy Posted May 3, 2005 Share Posted May 3, 2005 And, of course, you have to restart apache ;) Iggy Everything's funny but nothing's a joke... Link to comment Share on other sites More sharing options...
Iggy Posted May 3, 2005 Share Posted May 3, 2005 Hmmm,My Mac only contains one php.ini file and its actually called php.ini.default Turning on globals there didn't solve the issue for me... <{POST_SNAPBACK}> Try copying php.ini.default to php.ini and restarting apache. Mine lives at /Library/PHP4/lib/php.ini BTW. Iggy Everything's funny but nothing's a joke... Link to comment Share on other sites More sharing options...
tduncklee Posted May 3, 2005 Share Posted May 3, 2005 I have gotten the same error: "FATAL ERROR: register_globals is disabled in php.ini, please enable it!." However, my setup has been up and running for 1 1/2 years. I have seen it myself only once and have had one customer (out of thousands) complain about it. I can not reproduce it. My setup is on FreeBSD 4.8. Anyone experienced this? Link to comment Share on other sites More sharing options...
Iggy Posted May 4, 2005 Share Posted May 4, 2005 Have you only had a couple customers notice reg_globals is off or are you saying it's an intermittant problem? Cause the later shouldn't be possible. There are more things in heaven and earth than dreamt of in my philosophy though so... Iggy Edit: Maybe they have an overide in an htaccess file somewhere? Everything's funny but nothing's a joke... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.