When you connect require_once 'HTTP/Request2.php'; generates error 500 (The page does not work). What could be the problem?
1 answer
Warning: open_basedir restriction in effect. File ... is not within the allowed path(s): (/path/to/dir1:/path/to/dir2) in /path/to/dir/filename.php on line 14 This message indicates that the path to the WebAsyst installation directory is not included in the list of valid paths specified in the open_basedir parameter in the PHP configuration. The open_basedir parameter contains a list of directories whose contents are allowed to be read using PHP scripts.
One way to solve this problem is to add the path to the WebAsyst installation directory to the value of the open_basedir parameter. On a server running UNIX / Linux / FreeBSD, the paths to the permitted directories must be separated by a colon, for example:
open_basedir =/home/vhosts:/usr/share/php/pear/:/tmp On the Windows server, paths should be separated by a semicolon, for example:
open_basedir = C:\Inetpub;C:\Windows\TEMP Another way is to cancel open_basedir restrictions and open access to all directories by setting the value to none:
open_basedir = none - Warning: require_once (): open_basedir restriction in effect. File (/usr/share/pear/Net/URL2.php) is not within the allowed path (s): - antonin14d
- So google) old.webasyst.ru/support/help/open-basedir.html - Vasily Koshelev
- It is not the answer to the question. To leave your comments or ask the author to clarify, leave a comment to the appropriate post. - From the queue of checks - Vadizar
- @Vadizar in general, the person wrote "what could be the problem?". I showed how to see what could be the problem. Is not it? - Vasily Koshelev
- @VasilyKoshelev you now corrected the answer, before that it was unclear what. “Google error” is not the answer. - Vadizar
ini_set('error_reporting', E_ALL); ini_set('display_errors', 1); ini_set('display_startup_errors', 1);ini_set('error_reporting', E_ALL); ini_set('display_errors', 1); ini_set('display_startup_errors', 1);And then google a mistake :) Shl: Add these lines immediately after<?phpand refresh the page. - Vasily Koshelev