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 will prompt failed opening required
It is estimated that the WDCP setting causes no permissions
Attach the Apache settings in the WDCP
<virtualhost *:88>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<ifmodule mod_deflate.c > 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</ifmodule></virtualhost>< directory/www/web/website> Options followsymlinks allowoverride all Require all granted</ Directory>
Ask the big God how to solve, Baidu also Baidu not to
Require/website/is obviously wrong, the error message means that the directory does not exist at all, use relative path or/www/web/website. You see, your Apache configuration is written in documentroot/www/web/website/public_html.
If you want to use absolute path, it is best to perform echo DIR first to see exactly what the full path is.