thinkphp 5.0 LNMP Environment can not access, error (Public directory)

Source: Internet
Author: User

Two methods:

1. Modify the fastcgi configuration file/usr/local/nginx/conf/fastcgi.conf

Fastcgi_param php_admin_value "open_basedir= $document _root/. /:/tmp/:/proc/";

2. This time you need to add the following below PHP.ini

Note: xxx.abczn.com is replaced with your corresponding domain name and directory

[HOST=xxx.abczn.com ]
open_basedir=/home/wwwroot/
xxx.abczn.com :/tmp/:/proc/
[PATH=/home/wwwroot/
xxx.abczn.com ]
open_basedir=/home/wwwroot/
xxx.abczn.com:/tmp/:/proc/

thinkphp 5.0 LNMP Environment Warning:require (): Open_basedir restriction in effect. File Error Handling

THINKPHP5 configuration Nginx Environment cannot be opened (require (): Open_basedir restriction in effect. File (/mnt/hgfs/root/tp5/thinkphp/start.php) is not within the allowed path (s)

PHP7 There may be a need to modify the php.ini Scandir

thinkphp 5.0 LNMP Environment can not access, error (Public directory)

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.