MyBB Community Forums

Full Version: error after merge from smf 2
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi just merged from smf 2 to mybb but after the merge completed i get this error when i goto view the site but i can access the admin panel

Warning: require_once(): open_basedir restriction in effect. File(/var/www/vhosts/vauxhallmodified.com/inc/config.php) is not within the allowed path(s): (/var/www/vhosts/vauxhallmodified.com/httpdocs/:/tmp/) in /var/www/vhosts/vauxhallmodified.com/httpdocs/index.php on line 54 Warning: require_once(/var/www/vhosts/vauxhallmodified.com/inc/config.php): failed to open stream: Operation not permitted in /var/www/vhosts/vauxhallmodified.com/httpdocs/index.php on line 54 Fatal error: require_once(): Failed opening required '/var/www/vhosts/vauxhallmodified.com/inc/config.php' (include_path='.:') in /var/www/vhosts/vauxhallmodified.com/httpdocs/index.php on line 54

ps i take everything bad i said about mybb after using phbb and smf lol

also if i visit the portal it works and so does this http://www.vauxhallmodified.com/forumdisplay.php?fid=4 but www.vauxhallmodified.com dont work
Your open_basedir directive is set to allow /var/www/vhosts/vauxhallmodified.com/httpdocs/, but the webroot is /var/www/vhosts/vauxhallmodified.com/. You need to modify the directive to reflect the correct path.
(2013-07-29, 11:47 PM)Nathan Malcolm Wrote: [ -> ]Your open_basedir directive is set to allow /var/www/vhosts/vauxhallmodified.com/httpdocs/, but the webroot is /var/www/vhosts/vauxhallmodified.com/. You need to modify the directive to reflect the correct path.

where do i need to edit mate
(2013-07-30, 01:00 AM)Nathan Malcolm Wrote: [ -> ]Your PHP configuration file.

http://www.php.net/manual/en/ini.core.ph...en-basedir

where is the php configuration file

the config.php file aint got anything like that in it so cant see where it is
It's not related directly to MyBB. open_basedir is a PHP configuration setting. Usually this would be in /etc/php.ini. Check your PHP Info page to see which ini file is being loaded.
(2013-07-30, 01:53 AM)Nathan Malcolm Wrote: [ -> ]It's not related directly to MyBB. open_basedir is a PHP configuration setting. Usually this would be in /etc/php.ini. Check your PHP Info page to see which ini file is being loaded.

In case someone with a VPS ever sees this, the following shell command can be run as a privileged user to find the file:
find / -name "php.ini"
how do i do this im not to sure when the server side

still the same but my site is installed at /var/www/vhosts/vauxhallmodified.com/httpdocs/

the open_basedir error is gone as my host fixed it but still getting the error below

Warning: require_once(/var/www/vhosts/vauxhallmodified.com/inc/config.php): failed to open stream: No such file or directory in /var/www/vhosts/vauxhallmodified.com/httpdocs/index.php on line 54 Fatal error: require_once(): Failed opening required '/var/www/vhosts/vauxhallmodified.com/inc/config.php' (include_path='.:') in /var/www/vhosts/vauxhallmodified.com/httpdocs/index.php on line 54