Guest Zpoon Posted October 13, 2005 Share Posted October 13, 2005 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? Quote Link to comment Share on other sites More sharing options...
Guest hennaboy Posted October 13, 2005 Share Posted October 13, 2005 Its a server issue. What are you hosted on? Operating system, Control panel? Quote Link to comment Share on other sites More sharing options...
Guest Zpoon Posted October 13, 2005 Share Posted October 13, 2005 linux server, control-panel is something the host has made themselves, not one of the major panels Quote Link to comment Share on other sites More sharing options...
Guest hennaboy Posted October 13, 2005 Share Posted October 13, 2005 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. Quote Link to comment Share on other sites More sharing options...
Guest Zpoon Posted October 13, 2005 Share Posted October 13, 2005 "No Value" Quote Link to comment Share on other sites More sharing options...
Guest hennaboy Posted October 13, 2005 Share Posted October 13, 2005 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. Quote Link to comment Share on other sites More sharing options...
Guest watermelon Posted October 27, 2005 Share Posted October 27, 2005 I am having the same problem and my host won't change the setting. Any other suggestions? Quote Link to comment Share on other sites More sharing options...
convict Posted October 27, 2005 Share Posted October 27, 2005 I think that whole safe mode is not responsible for this issue. May be solution Quote Link to comment Share on other sites More sharing options...
Guest hennaboy Posted October 27, 2005 Share Posted October 27, 2005 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. Quote Link to comment Share on other sites More sharing options...
convict Posted October 27, 2005 Share Posted October 27, 2005 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 ;) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.