Note: Modify the values of several variables in the Start header.
Program code
Copy codeThe Code is as follows: SET NGINX_PATH = D:
SET NGINX_DIR = D: \ nginx-0.7.63 \
SET PHP_DIR = D: \ PHP \
++ Code
Cls
@ ECHO OFF
SET NGINX_PATH = D:
SET NGINX_DIR
I. Install MySQL currently, web servers rarely run static pages. If you want to run dynamic websites, you can't do without the database. Although I have mentioned how to install MySQL in my previous articles, but I feel that I haven't installed
Nginx + php + mysql configuration in ubuntu 1. Update www.2cto.com 1 sudo apt-get update2 and install nginx 1 sudo apt-get intsall nginx after Ubuntu is installed. The file structure is roughly as follows: * All configuration files are
Let's talk about the problems encountered when we first set up nginx + php + mysql:
Nginx + php (5.5.10) + mysql
The source code has been written locally and debugged successfully (the default configuration of XAMPP is used in the local
First, the user on the dynamic PHP Web Access processUser browser initiates access to a webpage: http://192.168.1.103/index.phpUser and Nginx server three handshake for TCP connection (ignoring including Nginx access control policy, Nginx Firewall
nginx+php configuration is relatively simple, the core is a word----Forward the requested information to the 9000-port PHP process,Let the PHP process handle the PHP file under the specified directory.Here's an example:Location ~ \. php$ {
Apache is through mod_php to parse PHP Nginx is through PHP-FPM (fast-cgi) to parse PHP1. PHP interpreter embedded in the WEB server process internal execution mod_php by embedding the PHP interpreter into the Apache process, only with Apache, and
#docker build Image (Dockerfile)
CentOS 7.4.1078 Image Maker
Nginx image creation (based on front centos7 image)
nginx+php Image Production
For more walkthrough, see the Readme file in GitMy git site
For many people, configuring nginx+php is no different than searching for a tutorial and then copying and pasting. It seems that there is no problem, unfortunately in fact, a lot of information on the network itself in disrepair, flawed, if everyone
Small VPS is limited by the system resources, the traffic is too large, more than the system can withstand the limit, a part of the request will be 502. In the case of adequate system resources, optimizing NGINX,PHP-FPM, as well as the system itself,
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, install MySQL
At present, the Web server has very few run static page, if you want to run dynamic Web site that of course can not be separated from the database, although in the previous article has written how MySQL is
1, first in the/etc/make.conf to join the sync site, later to use emerge to synchronize.
Copy Code code as follows:
Sync= "Rsync://rsync.gentoo.org/gentoo-portage"
In the Execute emerge--sync Sync portage tree.
2, upgrade
Nginx ("Engine X") is a high-performance HTTP and reverse proxy server and a IMAP/POP3/SMTP proxy server. Nginx was developed by Igor Sysoev, the second rambler.ru site for Russian traffic, which has run over 2.5 at the site. Igor releases the
http://hily.me/blog/2010/02/nginx-php-fpm-resouce-temporarily-unavailable/
Today on the test server on the Nginx + PHP-FPM environment, the results found that the PHP page frequently 502 bad Gateway error.Nginx version: nginx/0.7.61php-fpm:php-5.3.0
Original post: http://hily.me/blog/2010/02/nginx-php-fpm-resouce-temporarily-unavailable/
Today on the test server on the Nginx + PHP-FPM environment, the results found that the PHP page frequently 502 bad Gateway error.Nginx version:
Nginx was developed by Igor Sysoev, the second rambler.ru site for Russian traffic, which has run over 2.5 at the site. Igor releases the source code in the form of a BSD-like license. Nginx has been known for its stability, rich feature sets,
The first part, the basic environmentOne.Modify IP AddressVi/etc/sysconfig/network-scripts/ifcfg-eth0Device=eth0 #接口名称#HWADDR =00:0c:29:3b:28:82 #物理地址Type=ethernet#UUID =7b1faf53-73b4-4a50-844c-fac2b9997a74 #UUIDOnboot=yes
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.