LNMP configures NGINX to support THINKPHP PATHINFO mode

WBOY
Release: 2016-07-28 08:30:08
Original
1490 people have browsed it

In Alipay callback and WeChat callback methods. Parameters in the middle are not supported normally? s=, so the PATHINFO mode of THINKPHP must be turned on.

THINKPHP official forum and many NGINX configuration tutorials on the Internet are not very complete.

I always prefer to use lnmp.org to configure the server environment.

So this article will introduce LNMP to configure NGINX to support THINKPHP PATHINFO mode.

The method is very simple.

1, modify PHP.INI to support PHPINOF

PHP configuration file: /usr/local/php/etc/php.ini

Change php.ini
Found: cgi.fix_pathinfo=0
Change to: cgi.fix_pathinfo=1

 LNMP 配置NGINX 支持THINKPHP PATHINFO模式

2. Modify the nginx corresponding configuration file

/usr/local/nginx/conf/vhost/your domain name configuration file

Remove the # in include pathinfo and add it before try_files #;

 LNMP 配置NGINX 支持THINKPHP PATHINFO模式
3. Restart lnmp.

lnmp restart

Reprinted, original address: http://my.oschina.net/caomenglong/blog/660529

').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });

The above introduces how LNMP configures NGINX to support THINKPHP PATHINFO mode, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!