LNMP configures NGINX to support THINKPHP PATHINFO mode
Jul 28, 2016 am 08:30 AMIn 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
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 #;
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.

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

How to allow external network access to tomcat server

There are several versions of thinkphp

What are the nginx start and stop commands?
