Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

OSCommerce on PHP 4.4.0


jonashornblad

Recommended Posts

Hi!

It's my first post here, but I've gotto say that I'v found a lot of good info in these forums. However, now I have a problem:

 

About a month ago I installed a OSC-shop (2.2) on a shared server with safe_mode activated. It worked fine until about a week ago. I hadn't checked the site out for some time and now I had some PHP-Warnings in the top of the site.

 

Warning: session_save_path(): SAFE MODE Restriction in effect. The script whose uid is 18482 is not allowed to access /tmp owned by uid 0 in /home/****/shop/includes/functions/sessions.php on line 118

 

After some investigating I found that the host had upgraded their PHP to version 4.4.0 during the time when the shop worked and when I discovered it didn't work anymore.

 

Since the warning is a SAFE MODE Restriction-thing I assume this problem occures when safe_mode is on.

 

Anyone else having this problem? And can anyone help me out here?

 

Thanks

Jonas

Link to comment
Share on other sites

It's usually hosts who run php on Windows servers who impose restrictions such as running in Safe Mode. They advertise that they run PHP and then do everything they can do to reduce its functionality.

 

a. They shouldn't have jumped straight in to run php 4 - it's pretty much untested yet.

b. You're going to have problems running osCommerce with Safe Mode restrictions in effect. The probem you outline above looks simply to be a problem accessing a common (shared) tmp folder to store your sessions. This can be overcome by storing them in your own database. Just edit both configure.php files so that it reads 'mysql' where indicated on the last line.

 

Vger

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...