Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Turning register_globals on a Mac?


Code Red

Recommended Posts

Posted

I've installed PHP 4.3.4 and MySQL 4.0.26 on my Mac (OSX 10.2.8) and finally got it running, but when I try to install OSCommerce it comes up with the old "FATAL ERROR: register_globals is disabled in php.ini, please enable it!" chestnut.

 

This was easy enough to solve with a remote installation using an .htaccess file but the Mac won't let you name any file starting with a period locally, so I had to locate the php.ini file and update it. I found this in the /etc folder, updated it and copied it back into the folder. But when I check the PHP status, register_globals is still set to OFF. I've tried restarting Apache, restarting the computer but it doesn't make any difference.

 

A couple of notes - I had to change the permissions on the /etc folder so it would let me update the file, although the permissions window still says "system" as the owner. The original file was also called "php.ini.default", but the instructions I found on the web said I should rename it "php.ini", which I've done.

 

Any suggestions?

Posted
I had to change the permissions on the /etc folder

 

Bleh, okay I was looking in the wrong place - I found the one in usr/local/lib/php and modified it, but it hasn't made any difference...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...