Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

open_basedir restriction in effect problem


thejungle

Recommended Posts

Posted

Hi!

 

I know a lot have people have had problems with the open_basedir restriction and I'v read all the posts I could find and answers but I am still stuck.

 

The message I am getting is:

Warning: open_basedir restriction in effect. File is in wrong directory in /home/.capotefridge/oongo/.....

 

I have emailed the tech support of my hosting provider and they said:

 

=====

We can't turn off open_basedir restrictions for security reasons,

unfortunately. As far as we can tell from the available php

documentation we have everything configured properly and this sort of

thing should work fine.

 

That path you are seeing is the full and complete path to your home

directory. That path occasionally changes as we move data around to

better handle things so it is always best to simply use /home/oongo

(which will always work).

 

===============

 

It seems basically the .capotefridge part of the line is what I need to remove - as the line without this should work as this would be the path to the files that I usually use for scripts etc. However, I don't know although I don't know where OSC is getting the line with the .capotefridge from!

 

Any help, suggestions on what I may be able to do, or my webhost (rather than turn it off!).

 

the admin files seem to work OK - from the little I've messed with them!

 

Any help would be great!

 

Thanks

Ernie

Posted

I'd imagine it would be in your

catalog/includes/configure.php if your using 2.2?

or catalog/includes/aplication_top.php for 2.1

Check for these..

 

DIR_FS_DOCUMENT_ROOT

DIR_FS_CATALOG

Posted

Hi Hamish:

 

I tried that - didn't work, am I supposed to do anything after I check thos two lines in configure.php - I just viewd the catalog page again and the error was still there.

 

The lines themselves were not referencing the .capotefridge and were the correct paths. :-(

 

Ernie

  • 9 months later...
Posted

I decided to go with 2.2 (MS2) and I get all these at the middle:

 

Warning: main() [function.main]: open_basedir restriction in effect. File(/usr/local/psa/apache/lib/php/includes/modules/FILENAME_DEFAULT_SPECIALS) is not within the allowed path(s): (/usr/local/psa/home/vhosts/myserver.com/httpdocs) in /usr/local/psa/home/vhosts/myserver.com/httpdocs/default.php on line 349

 

Warning: main(includes/modules/FILENAME_DEFAULT_SPECIALS) [function.main]: failed to create stream: Operation not permitted in /usr/local/psa/home/vhosts/myserver.com/httpdocs/default.php on line 349

 

Warning: main() [function.main]: Failed opening 'includes/modules/FILENAME_DEFAULT_SPECIALS' for inclusion (include_path='.:/usr/local/psa/apache/lib/php') in /usr/local/psa/home/vhosts/myserver.com/httpdocs/default.php on line 349

 

Warning: main() [function.main]: open_basedir restriction in effect. File(/usr/local/psa/apache/lib/php/includes/modules/FILENAME_FEATURED) is not within the allowed path(s): (/usr/local/psa/home/vhosts/myserver.com/httpdocs) in /usr/local/psa/home/vhosts/myserver.com/httpdocs/default.php on line 352

 

Warning: main(includes/modules/FILENAME_FEATURED) [function.main]: failed to create stream: Operation not permitted in /usr/local/psa/home/vhosts/myserver.com/httpdocs/default.php on line 352

 

Warning: main() [function.main]: Failed opening 'includes/modules/FILENAME_FEATURED' for inclusion (include_path='.:/usr/local/psa/apache/lib/php') in /usr/local/psa/home/vhosts/myserver.com/httpdocs/default.php on line 352

 

Since I only experience this with (MS2) is there an easy way to make it or configure it as (MS1)?

Archived

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

×
×
  • Create New...