The website uses the THINKPHP5 framework, the server uses the WDCP to build the
Then upload the public files to the/website/public_html directory.
Other inaccessible framework files are placed in the/website/directory
But when PHP require/website/some classes in the directory, he would prompt
Failed opening required
It is estimated that the WDCP setting causes no permissions
Attach the Apache settings in the WDCP
DocumentRoot /www/web/website/public_htmlServerName new.website.comServerAlias new.website.comErrorDocument 400 /errpage/400.htmlErrorDocument 403 /errpage/403.htmlErrorDocument 404 /errpage/404.htmlErrorDocument 503 /errpage/503.htmlphp_admin_value open_basedir /www/web/website:/tmp
DeflateCompressionLevel 7 AddOutputFilterByType DEFLATE text/html text/plain text/xml application/x-httpd-php AddOutputFilter DEFLATE css js html htm gif jpg png bmp php
Options FollowSymLinks AllowOverride All Require all granted
Ask the big God how to solve, Baidu also Baidu not to
Reply content:
The website uses the THINKPHP5 framework, the server uses the WDCP to build the
Then upload the public files to the/website/public_html directory.
Other inaccessible framework files are placed in the/website/directory
But when PHP require/website/some classes in the directory, he would prompt Failed opening required
It is estimated that the WDCP setting causes no permissions
Attach the Apache settings in the WDCP
DocumentRoot /www/web/website/public_htmlServerName new.website.comServerAlias new.website.comErrorDocument 400 /errpage/400.htmlErrorDocument 403 /errpage/403.htmlErrorDocument 404 /errpage/404.htmlErrorDocument 503 /errpage/503.htmlphp_admin_value open_basedir /www/web/website:/tmp
DeflateCompressionLevel 7 AddOutputFilterByType DEFLATE text/html text/plain text/xml application/x-httpd-php AddOutputFilter DEFLATE css js html htm gif jpg png bmp php
Options FollowSymLinks AllowOverride All Require all granted
Ask the big God how to solve, Baidu also Baidu not to
require /website/
Obviously wrong, the error message means that the directory does not exist at all, this is to use a relative path or/www/web/website. You see, your Apache configuration is written DocumentRoot /www/web/website/public_html
.
If you want to use absolute path, it is best to perform the echo __dir__ first, and see what the full path is.