Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Installation problem on a Mac


Recommended Posts

Posted

I am trying out OScommerce on my Mac (OS 10.3.9).

I have had PHP and Mysql running successfully for a while.

 

The problem is i get the following error when launching install:

 

FATAL ERROR: register_globals is disabled in php.ini, please enable it!

 

Do i need to change the ini file or is this a known problem on Macs?

Posted

Use 'Finder' on the Mac to locate all php.ini files (there are 3 or 4 on my Mac Mini). Edit all of them to turn Register Globals on.

 

Vger

Posted
Thanks for that info, i'll give it a go.

 

What OS do you use?

 

At my mac it was in /etc/php.ini.default you must rename in to php.ini. than it wil work.

 

Gr Roman

Posted
What OS do you use?

 

At my mac it was in /etc/php.ini.default you must rename in to php.ini. than it wil work.

 

Gr Roman

 

I'm using 10.3.9

Currently can't find any php files, it has been a while since i installed it!

I know it's there somewhere <_<

Posted

I goofed with my Mac Mini, because I didn't realise that it already came pre-installed with an Apache web server. However, I don't know if PHP came installed with it - that's something you'd need to check.

 

So, in my ignorance, I overwrote the initial install with XAMPP for Mac OSX Beta - which I must admit works very well indeed - except that I do have to Login from a terminal window before it boots up.

 

Vger

Posted
I goofed with my Mac Mini, because I didn't realise that it already came pre-installed with an Apache web server.

:P

 

However, I don't know if PHP came installed with it - that's something you'd need to check.
OSX does not come with a compete implementation of php in the basic install. So you need to install a complete one.

 

MAMP ( http://www.mamp.info/en/home/ ) gets excellent reviews but I haven't tried it. It's nice that it completely co-exists with anything else.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Posted
I goofed with my Mac Mini, because I didn't realise that it already came pre-installed with an Apache web server. However, I don't know if PHP came installed with it - that's something you'd need to check.

 

So, in my ignorance, I overwrote the initial install with XAMPP for Mac OSX Beta - which I must admit works very well indeed - except that I do have to Login from a terminal window before it boots up.

 

Vger

 

Oh, i think i have misunderstood?!??

 

I have Apache, PHP and Mysql all installed fine and working.

Do you mean that the ini files to be changed are for Apache?

Or for PHP?

Posted
Oh, i think i have misunderstood?!??

 

I have Apache, PHP and Mysql all installed fine and working.

Do you mean that the ini files to be changed are for Apache?

Or for PHP?

You want to turn globals on for php.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Posted
You want to turn globals on for php.

 

I'm using PHP 5.

I edited php.ini located in /usr/local/php5/lib/ so that register_globals = On

I then restarted the Mac.

 

But it still comes up with the error.

The normal Mac "Find" doesn't reveal any php.ini files, so i'm not sure where any other php.ini files might be.

 

I know globals work normally when not registered, eg. $_SESSION(variable) etc. works, so i know globals are working.

Posted

if you use the find in the finder you need to tell it to look for invisible files.

Posted

This is a busy forum!

 

Finally got it working, i had edited the correct file, but i had changed the comment at the top of the file so that the command worked near the top, but of course the there is another command further down in the file.

The result must have been that it was turned on near the top, then turned off again near the bottom!

 

Anyway it's resolved and i have the start up screen in the browser.

 

Does turning on register_globals mean that OS Commerce isn't as secure as it could be?

 

Will the next version work without the need to turn on register_globals?

Or is there already a version that doesn't need it turned on?

Archived

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

×
×
  • Create New...