Nginx itself can not handle PHP, it is just a Web server, when the request is received, if it is a PHP request, then sent to the PHP interpreter processing, and the results returned to the client.
Nginx is generally the request to send fastcgi
So let's get started:
1, for our site to create a configuration file
I do this, in the Nginx configuration file conf directory to create a special storage VirtualHost directory, named Vhosts_conf, you can put the virtual directory configuration all
First of all, this article is based on the WAMP environment, so, if you see here has not built a good wamp environment, mind you first set up the environment, because here are some practical content.
1. Prepare
In the WAMP environment, I use the
Nginx itself can not handle PHP, it is just a Web server, when the request is received, if it is a PHP request, then sent to the PHP interpreter processing, and the results returned to the client.
Nginx is generally the request to send fastcgi
First we're going to prepare the files for the configuration environment
Nginx Download Address: http://nginx.org/download/nginx-1.3.14.zip
PHP Download Address: http://windows.php.net/downloads/releases/php-5.2.17-nts-Win32-VC6-x86.zip
MySQL
PHP and Nginx Integration
PHP-FPM is also a third-party fastcgi process manager, which is developed as a patch in PHP, also need to compile with the PHP source code when installing, that is to say, PHP-FPM is compiled into the PHP kernel, so it is
LNMP Environment installation 1. Install dependent dependencies Use the Yum program to install the required development Kit (the following is the standard RPM package name) yum Install gcc gcc-c++ gcc-g77 Flex Bison autoconf Automake bzip2-devel
Enter Nginx directory and open nginx.confFor example, the URL of my visit to thinkphp is (TP5 is the directory I created under nginx/html/, called the level Two directory below): Https://192.168.139.128/tp5/index.php?s=index/index/indexPathInfo mode
Server IP Address 192.168.1.25
Lampàlinux +apache +mysql +php
1. Install Apache Service
[Root@localhost ~]# Yum Install Httpd–y
2. Install MySQL Service
[Root@localhost ~]# yum list all |grep MySQL
[root@localhost ~]# yum install MySQL
First, install MySQLFor MySQL installation please refer toLamp Environment Construction (centos6.9+apache2.4+mysql5.7+php7.1),Same as the installation method inside.Second, PHP installationCd/usr/local/srcwget
Transferred from: http://blog.csdn.net/yanzi1225627/article/details/49123659Server environment: CentOS6.5 64-bitGoal: Build LNMP (Linux + Nginx + MySQL + PHP +svn), where SVN is used instead of FTP to facilitate debugging of synchronization code in
The default Web site root directory is/usr/local/nginx/html, and you want to change it to/homw/wwwVi/usr/local/nginx/conf/nginx.conf the location/{ root html; index index.php index.html index.htm; } change
Nginx itself cannot handle PHP, it is just a Web server, when the request is received, if it is a PHP request, then sent to the PHP interpreter processing, and return the results to the client.Nginx is generally the request to send fastcgi
First, understand Openresty a Full function WEB Application Server, it hits the the standard Nginx core is covered , many of the commonly used third-party modules, and most of their dependencies. Openresty through the aggregation of a variety of
This article describes how to install apache + mysql + php + phpMyAdmin in the source code. If other software packages are missing during installation, we will use yum for installation. If your RHEL is not charged and cannot use yum, configure the
1. Add the vm to the usrlocalnginxconfvhost directory and create the virtual host configuration file demo.neoease.com. conf ({domain name}. conf). 2. Open the configuration file and add the following services: Export index. php; rootvar.
1. Add the
The configuration of the Web-based general solution is as follows: server { ... Location/{ Index index.htm index.html index.php; #访问路径的文件不存在则重写URL转交给ThinkPHP处理 if (!-e $request _filename) { Rewrite ^/(. *) $/index.php/$1 last; Break } } Location ~ \
Thankphp Project general deployment in lamp under General no problem, deployment in LNMP is a bit acclimatized,,, 404, ajax err,,, God horse You need to modify the configuration of the Nginx: #方法一:[email protected]:/etc/nginx/sites-enabled$ sudo cat
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.