THINKPHP5 item is put on the online LNMP environment open for blank issue resolution

Source: Internet
Author: User
The environment installed on the server is LNMP, and the Lnmp.org method is installed with one click.
1. Upload the code to the server
2. Build a site. Lnmp vhost Add
3. Strange is open after the blank, also did not report error. What the hell?

There's only one step to check,
In public/index.php, echo ' 1111 '; There's the front, not the back.
Find framework files that cannot access the project thinkphp/start.php

Collected online, and later modified fastcgi configuration file resolved.

/usr/local/nginx/conf/fastcgi.conf

Find the last sentence: in the:/tmp front plus '. /‘
Fastcgi_param php_admin_value "open_basedir= $document _root/. /:/tmp/:/proc/";

4, restart LNMP nginx restart

5, Done:

THINKPHP5 item is put on the online LNMP environment open for blank issue resolution

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.