PDA

View Full Version : Blank white pages loading after moving from Shared host to a VPS HELP


Sharingan_Okami
05-19-2015, 01:26 PM
Hey guys, I'm having a serious 'permission' problem i think. Just after changing hosts from Shared host to a VPS Server. I have tried to change permissions and some Apache setting but with no luck whatsoever, i have been stuck like this for almost a week now and searched high and low for a solution.

I'm currently running Vbulletin 4.2.1

Here are my error logs:
[Tue May 19 19:18:44 2015] [warn] [client xx.xx.xx.xx] mod_fcgid: stderr: PHP Warning: require(): open_basedir restriction in effect. File(/home/forum/public_html/forum.php) is not within the allowed path(s): (1) in /home/forum/public_html/index.php on line 43
[Tue May 19 19:18:44 2015] [warn] [client xx.xx.xx.xx] mod_fcgid: stderr: PHP Warning: require(/home/forum/public_html/forum.php): failed to open stream: Operation not permitted in /home/forum/public_html/index.php on line 43
[Tue May 19 19:18:44 2015] [warn] [client xx.xx.xx.xx] mod_fcgid: stderr: PHP Fatal error: require(): Failed opening required 'forum.php' (include_path='.:/usr/share/pear:/usr/share/php') in /home/forum/public_html/index.php on line 43
[Tue May 19 19:18:54 2015] [warn] [client xx.xx.xx.xx] mod_fcgid: stderr: PHP Warning: require(): open_basedir restriction in effect. File(/home/forum/public_html/forum.php) is not within the allowed path(s): (1) in /home/forum/public_html/index.php on line 43
[Tue May 19 19:18:54 2015] [warn] [client xx.xx.xx.xx] mod_fcgid: stderr: PHP Warning: require(/home/forum/public_html/forum.php): failed to open stream: Operation not permitted in /home/forum/public_html/index.php on line 43
[Tue May 19 19:18:54 2015] [warn] [client xx.xx.xx.xx] mod_fcgid: stderr: PHP Fatal error: require(): Failed opening required 'forum.php' (include_path='.:/usr/share/pear:/usr/share/php') in /home/forum/public_html/index.php on line 43
[Tue May 19 19:19:02 2015] [warn] [client xx.xx.xx.xx] mod_fcgid: stderr: PHP Warning: require_once(): open_basedir restriction in effect. File(/home/forum/public_html/global.php) is not within the allowed path(s): (1) in /home/forum/public_html/forumdisplay.php on line 99
[Tue May 19 19:19:02 2015] [warn] [client xx.xx.xx.xx] mod_fcgid: stderr: PHP Warning: require_once(/home/forum/public_html/global.php): failed to open stream: Operation not permitted in /home/forum/public_html/forumdisplay.php on line 99
[Tue May 19 19:19:02 2015] [warn] [client xx.xx.xx.xx] mod_fcgid: stderr: PHP Fatal error: require_once(): Failed opening required './global.php' (include_path='.:/usr/share/pear:/usr/share/php') in /home/forum/public_html/forumdisplay.php on line 99
[Tue May 19 19:20:41 2015] [warn] [client xx.xx.xx.xx] mod_fcgid: stderr: PHP Warning: require(): open_basedir restriction in effect. File(/home/forum/public_html/forum.php) is not within the allowed path(s): (1) in /home/forum/public_html/index.php on line 43
[Tue May 19 19:20:41 2015] [warn] [client xx.xx.xx.xx] mod_fcgid: stderr: PHP Warning: require(/home/forum/public_html/forum.php): failed to open stream: Operation not permitted in /home/forum/public_html/index.php on line 43
[Tue May 19 19:20:41 2015] [warn] [client xx.xx.xx.xx] mod_fcgid: stderr: PHP Fatal error: require(): Failed opening required 'forum.php' (include_path='.:/usr/share/pear:/usr/share/php') in /home/forum/public_html/index.php on line 43
[Tue May 19 19:20:41 2015] [warn] [client xx.xx.xx.xx] mod_fcgid: stderr: PHP Warning: require(): open_basedir restriction in effect. File(/home/forum/public_html/forum.php) is not within the allowed path(s): (1) in /home/forum/public_html/index.php on line 43
[Tue May 19 19:20:41 2015] [warn] [client xx.xx.xx.xx] mod_fcgid: stderr: PHP Warning: require(/home/forum/public_html/forum.php): failed to open stream: Operation not permitted in /home/forum/public_html/index.php on line 43
[Tue May 19 19:20:41 2015] [warn] [client xx.xx.xx.xx] mod_fcgid: stderr: PHP Fatal error: require(): Failed opening required 'forum.php' (include_path='.:/usr/share/pear:/usr/share/php') in /home/forum/public_html/index.php on line 43
[Tue May 19 19:20:42 2015] [warn] [client xx.xx.xx.xx] mod_fcgid: stderr: PHP Warning: require(): open_basedir restriction in effect. File(/home/forum/public_html/forum.php) is not within the allowed path(s): (1) in /home/forum/public_html/index.php on line 43
[Tue May 19 19:20:42 2015] [warn] [client xx.xx.xx.xx] mod_fcgid: stderr: PHP Warning: require(/home/forum/public_html/forum.php): failed to open stream: Operation not permitted in /home/forum/public_html/index.php on line 43
[Tue May 19 19:20:42 2015] [warn] [client xx.xx.xx.xx] mod_fcgid: stderr: PHP Fatal error: require(): Failed opening required 'forum.php' (include_path='.:/usr/share/pear:/usr/share/php') in /home/forum/public_html/index.php on line 43


Any help on this problem is much appreciated.

final kaoss
05-19-2015, 03:39 PM
To resolve this error, you must edit the file httpd.conf. Way before it can be seen in phpinfo in apache2handler section directive Server Root. For example, in my case this way - / etc / httpd / httpd.conf. Open the file httpd.conf, find the mention of the parameter open_basedir. And set it to none. (php_admin_value open_basedir none)

Source (http://stackoverflow.com/questions/1846882/open-basedir-restriction-in-effect-file-is-not-within-the-allowed-paths)

Sharingan_Okami
05-19-2015, 05:31 PM
Thanks for the reply, but that didn't work :(

There was no "parameter open_basedir." in httpd.conf

It's also disabled in php.ini

Some more logs:

[Tue May 19 23:30:20 2015] [error] [client xx.xx.xx.xx] Directory index forbidden by Options directive: /home/forum/public_html/images/
[Tue May 19 23:30:51 2015] [warn] [client xx.xx.xx.xx] mod_fcgid: stderr: PHP Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/forum/public_html/includes/class_core.php(1256) : eval()'d code on line 334

kh99
05-19-2015, 05:40 PM
Did you check for a .htaccess with open_basedir in it?

Sharingan_Okami
05-19-2015, 05:42 PM
Hi, yes there is no .htaccess on the doc root

kh99
05-19-2015, 06:10 PM
Do you have a phpinfo.php you can look at? If you don't, you can make one, it's just this:
<?php
phpinfo();
?>


in a file named phpnfo.php (or I guess whatever you want to call it), then put that in public_html and point your browser at it. I'm not an expert on all the info in there, but it might tell you something if you search it for open_basedir, and maybe look at what php.ini it's loading.

Sharingan_Okami
05-19-2015, 10:50 PM
I solved this problem, it was a .htaccess error. Thanks for all the help though guys!