PHP kind about require parent directory hint no permissions then how to configure Apache

Source: Internet
Author: User
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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.