Jump to content

open_basedir errors


snmp_rape

Recommended Posts

apache 2.0
php 5.0.4
mysql 4.1.20
godaddy virtual dedicated

okay, i am by no means a php master, but i understand how it works and currently i am taking php/mysql.  i recently have upgraded to a virtual dedicated server,(my first attempt at webmaster).  I have two public folders httpdocs and the secured httpsdocs.  i have my phpbb2 forum successfully running with its previous database installed and working correctly, but my previous site store is getting all kinds of open_basedir errors.  i know this has something to do with php disallowing open or including files outside of this parameter.  my problem is i cant seem to change this value in httpd.include using vhost.conf.  or by using httpd.conf.  im at a loss and ive been working on this for a week before i finally have given up and need to ask for help.  any light anyone can shed is greatly appreciated.  forgive me if this is in the wrong section.
Link to comment
https://forums.phpfreaks.com/topic/31319-open_basedir-errors/
Share on other sites

next time dont post so rushly were here to help we all got a lifes ok the forum guidelines you need to read that the first thing.

it sounds like you have not set the folders to be allowed to be used make sure all folders are set to 777.

if that dosent work then your have to bypass the folder permissions ok.

this is a link you need to read to get you going.
http://uk2.php.net/features.safe-mode
Link to comment
https://forums.phpfreaks.com/topic/31319-open_basedir-errors/#findComment-146812
Share on other sites

[code]Warning: main() [function.main]: open_basedir restriction in effect. File(/config.inc.php) is not within the allowed path(s): (/var/www/vhosts/surfboardhacker.net/httpdocs:/tmp:/var/www/vhosts/surfboardhacker.net/store/language/en:.) in /var/www/vhosts/surfboardhacker.net/httpdocs/store/language/en/lang.inc.php on line 2977

Warning: main(config.inc.php) [function.main]: failed to open stream: Operation not permitted in /var/www/vhosts/surfboardhacker.net/httpdocs/store/language/en/lang.inc.php on line 2977

Warning: main() [function.include]: Failed opening 'config.inc.php' for inclusion (include_path='.:') in /var/www/vhosts/surfboardhacker.net/httpdocs/store/language/en/lang.inc.php on line 2977
[/code]

those are the errors im getting, after trying what you mentioned and the php manual.
Link to comment
https://forums.phpfreaks.com/topic/31319-open_basedir-errors/#findComment-147080
Share on other sites

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.