Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Warning: open_basedir restriction in effect.


only1god

Recommended Posts

Posted

Just Setup osCommerce and the install went great. Loaded the defult storefront and had two warnings: one to delete the install directory and the other to change permissions on the configuration.php file. I did as requested: deleted the install dir and changed the permissions to 755. Now, eveything seems to work fine, except I get the following warning at the top of every screen:

 

Warning: open_basedir restriction in effect. File is in wrong directory in /home/.naida/admn/web/catalog/includes/header.php on line 15

 

The Base directory in osCommerce is set correctly at /home/admn/web/ However, my home (base) directory is actually pointing to the path listed in the error message: /home/.naida/admn/web/ It seems to be something the host company (Dreamhost.com) does with every user name (as all users in my home directory are actually pointed to other directories).

 

Any suggestions as to how to loose the warning message?

 

Thanks,

 

DaveE

Posted

Try this.... in application_top.php set:

 

  define('WARN_INSTALL_EXISTENCE', 'false');

Posted

Worked Great!

 

Thanks for the fix.

 

One last question, the warning that is triggered...why does it think that the files are in the wrong directory if everything is pointed and functioning correctly?

 

Just curious to know,

 

DaveE

Posted

By wrong directory it means a restricted directory... there is an open_basedir setting in php.ini.... something your host has done...

Posted
Try this.... in application_top.php set:

 

  define('WARN_INSTALL_EXISTENCE', 'false');

 

I've got the same error after my hoster changed PHP up to PHP v4.3.2.

My living site (Ms1) does not give this error. But his dump after fresh install gives!!! (MS1 and snapshot 20030518).

 

I pointed session into DB, not in flat files (in configure). And after that This error disappearad.

 

But now I'll tried to go back and made this changes!

 

Am I right?

 

Thank's.

:!:

Archived

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

×
×
  • Create New...