Error message
Warning: require(): open_basedir restriction in effect. File(/work/tp6/vendor/autoload.php) is not within the allowed path(s): (/work/tp6/public/:/tmp/) in /work/tp6/public/index.php on line 15 Warning: require(/work/tp6/vendor/autoload.php): failed to open stream: Operation not permitted in /work/tp6/public/index.php on line 15 Fatal error: require(): Failed opening required '/work/tp6/public/../vendor/autoload.php' (include_path='.:') in /work/tp6/public/index.php on line 15
Check the problem description and data, and find that it is the problem of PHP open_basedir configuration is that PHP cannot import the files above the authorized directory;
In general, this problem will not occur. The reason for this problem is mostly due to the server. This restriction is made for security!
If the entry file of is switched to public, the following file should be modified to remove public
Solution:
Read More:
- PHP encryption 3DES error Call to undefined function: mcrypt_module_open() solution
- Tp6 Cannot enable error [How to Solve]
- laravel The Process class relies on proc_open, which is not available on your PHP installation.
- TP5 fuzzy Chinese characters error [How to Solve]
- [Solved] PHP -v Error: error while loading shared libraries: libonig.so.5:cannot open share directory
- PHP file download, download failed, nginx open() nginx / fastcgi_ temp/2/10/0000000102“ failed (13: Permission denied)
- /www/server/php/56/sbin/php-fpm:error while loading shared libraries:libssl.so.1.0. 0:cannot open shared object file:No such file or directory
- [Solved] TP5 Post receive array error: variable type error: array
- Mac installs the php Swoole extension and appears Enable openssl support, require openssl library or fatal error:’openssl/ssl.h’ file not found
- [Solved] PHP Error: Warning: file_get_contents(): Failed to enable crypto
- [Solved] Warning: Unknown: Failed to write session data using user defined save handler. (session.save_path:
- [PHP] php8 jit does not support 32-bit systems WARNING: JIT not supported by host architecture
- Using $this when not in object context in (How to Fix)
- Undefined index: name error in composer [How to Solve]
- [Solved] PHP Fatal error: Uncaught Error: Class ‘Redis‘ not found in
- PHP error in Windows: class’ mysqli ‘not found
- Lack of files in composer installation [How to Solve]
- Syntax error: typeerror: about installing sass in vue3 this.getOptions is not a function
- Fatal error: Function name must be a string in
- [PHP] __autoload function will be called when class_exists does not exist