Jump to content

Open basedir restriction


Guest Zpoon

Recommended Posts

Hi

I just installed CubeCart and ended up with these errors:

Site:

Warning: main() [function.main]: open_basedir restriction in effect. File(/config.inc.php) is not within the allowed path(s): (/home/web/wno79829:/var/tmp:/usr/local/lib/php) in /usr/home/web/wno79829/language/en/lang.inc.php on line 2442



Warning: main(config.inc.php) [function.main]: failed to open stream: Operation not permitted in /usr/home/web/wno79829/language/en/lang.inc.php on line 2442



Warning: main() [function.include]: Failed opening 'config.inc.php' for inclusion (include_path='.:') in /usr/home/web/wno79829/language/en/lang.inc.php on line 2442






Admin:




Warning: main() [function.main]: open_basedir restriction in effect. File(/config.inc.php) is not within the allowed path(s): (/home/web/wno79829:/var/tmp:/usr/local/lib/php) in /usr/home/web/wno79829/language/en/lang.inc.php on line 2442



Warning: main(config.inc.php) [function.main]: failed to open stream: Operation not permitted in /usr/home/web/wno79829/language/en/lang.inc.php on line 2442



Warning: main() [function.include]: Failed opening 'config.inc.php' for inclusion (include_path='.:') in /usr/home/web/wno79829/language/en/lang.inc.php on line 2442



Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /usr/home/web/wno79829/language/en/lang.inc.php:2442) in /usr/home/web/wno79829/admin/includes/auth.inc.php on line 36



Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /usr/home/web/wno79829/language/en/lang.inc.php:2442) in /usr/home/web/wno79829/admin/includes/auth.inc.php on line 36



Warning: Cannot modify header information - headers already sent by (output started at /usr/home/web/wno79829/language/en/lang.inc.php:2442) in /usr/home/web/wno79829/admin/includes/auth.inc.php on line 38

Is this a server issue, or something I have done wrong in the installation?

Link to comment
Share on other sites

Guest hennaboy

Look at your php server info .... Look at the configuration for the PHP Core. Is there anything set there for open base directory? The list is quite long but its in alphabetical order...

if you dont know where to look simply create a php file with the following

<?php



// Show all information, defaults to INFO_ALL

phpinfo();



?>

call it something like info.php and then view that in your browser.

Link to comment
Share on other sites

Guest hennaboy

your host must be running php in safe mode this will stop php scripts that can upload to the server. contact them as they can place a conf file for your site so that it overides the setting.

Link to comment
Share on other sites

  • 2 weeks later...
Guest hennaboy

watermelon

they dont need to change the setting for the entire server. they can place in your account a conf file that will lift the restriction only for your domain.

ask them to create a vhost.conf file

Directory /home/.... your path to your http docs

php_admin_value open_basedir /

php_admin_value safe_mode 0

/Directory

See if that helps.

Link to comment
Share on other sites

I have never sugested to change ANY setting for entire server :(.

TVBanks98 solution cant be used generally, but in situations like this may be helps.

Php ini_set() sets the value of the given configuration option. The configuration option will keep this new value during the script's execution, and will be restored at the script's ending.

Keep in mind ;)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...