The nginx + php + fastcgi configuration process on Ubuntu needs to be set up on Ubuntu14.04 for the nginx and php environments over the past two days. during the configuration process, fastcgi issues took a lot of time, most of the online materials
Configure nginx + php + fastcgi on Ubuntu, nginxfastcgiIn the past two days, we need to build the nginx and php environments on Ubuntu14.04. During the configuration process, we spent a lot of time on fastcgi issues. Most of the online materials
FastCGI introduction and working principles first of all, FastCGI: FastCGI is a language-independent, scalable CGI open extension, the main behavior is to maintain the CGI interpreter in the memory and thus achieve high performance. As we all know,
PHP fastcgi mode uploads large files (more than 300 K) and reports an error,
When uploading images in a project recently, there were more than 300 K results. A server error was reported, which was never encountered before. The error details are as
Recently, I was working on PHP, so I had to take a note of the configuration process to avoid forgetting. PHP installation, configuration I install through source code compilation, the basic steps are as follows: unzip tarxfphp-5.5.12.tar.bz2 $
Transferred from: http://www.laruence.com/2009/11/13/1138.htmlPath_info is a standard for CGI 1.1 and is often used as a reference vector.For example, we can use path_info instead of rewrite to implement pseudo-static pages, and many PHP frameworks
Nginx does not support calls to external programs, so calls to external programs must be implemented via the FASTCGI interface to handle client dynamic page requests. The English language of CGI is all called Common Gateway Interface (Public Gateway
Many friends in the first contact with Nginx, configuration php-fpm will encounter can not parse index.php page situation, make restless, thought clearly is according to the official documents why this situation occurs?
Usually we will
Php+fastcgi+nginx Configuring the PHP Runtime EnvironmentNginx does not support calls to external programs, so calls to external programs must be implemented through the FASTCGI interface to enable processing of client dynamic page requests.The CGI
This article describes a workaround for PHP (FastCGI) with a 404 error in the Nginx alias. Share to everyone for your reference, specific as follows:
As described in the official wiki of Nginx
The alias directive cannot be used inside a
One, what is FastCGI
FastCGI is a scalable, high-speed interface for communicating between HTTP server and dynamic scripting languages. Most popular HTTP servers support FASTCGI, including Apache, Nginx, and lighttpd, and fastcgi are supported by a
Use the yum command provided by CentOS Linux to install and upgrade the library.
1. change yum source to NetEase source to increase speed
Vi/etc/yum. repos. d/CentOS-Base.repoThe changes are as follows:
# CentOS-Base.repo
#
# This file uses a
Environment:redhat5.8 (2.6.18-194.el5.i386,_)APACHE-HTTPD 2.4.16MysQl mysql-5.6.25 Binary Universal PackagePHP php-5.6.11pcre-8.35XCache 3.2Installation Order:Apr-->apr-util-->httpd-->mysql-->php-->xcacheInstalling the HTTPD service and MySQL in
Connection Reset by peerThis error is found in the Nginx error log, in order to better master the abnormal operation of Nginx, it is strongly recommended to add in Nginx global configurationError_log Logs/error.log Notice;In this way, you can record
The CGI name is a "public Gateway Interface" (Common Gateway Interface), a tool that the HTTP server "chats" with programs on your or other machines, and its programs must be run on a network server. CGI can be written in any language, as long as
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.