Configure PATH_INFO for nginx and path_info for nginx
We can use PATH_INFO instead of Rewrite to implement pseudo-static pages. In addition, many PHP frameworks also use PATH_INFO as the routing carrier.
In Apache, Accept pathinfo is accepted by
I. Preparations
Download rmpforge from pkgs.org. Rpmforge is a third-party yum source.
Select a version to download and install.
// After the installation is successful, clear the yum list and obtain it again
[Root @ pangou Desktop] # yum clean
PHP operating mode has 4 minutes:1) CGI Universal Gateway Interface (Common Gateway Interface))2) fast-cgi resident (long-live) type CGI3) CLI command line run (Interface)4) Web module mode (module mode for Web server running like Apache)1.CGI
This chapter only looks at a newly downloaded nginx is how to support PHP-- Location ~ \.php$ { root html; Fastcgi_pass 127.0.0.1:9000; Fastcgi_index index.php; Fastcgi_param script_filename
Applicable environment:CentOS 6.5 32bitLinux + Nginx + Mysql + PHPVersion and Time: (as of this post date 2014-10-14, all versions are the latest version)Nginx-1.7.6Mysql-5.6.21PHP-5.6.1First,
PHP operating mode:1) CGI Universal Gateway Interface (Common Gateway Interface))2) fast-cgi resident (long-live) type CGI3) CLI command line run (Interface)4) Web module mode (module mode for Web server running like Apache)Httpserver There are
--prefix=/usr/local/php//Specify the PHP installation directoryThe--WITH-APXS2=/USR/LOCAL/APACHE/BIN/APXS//consolidation Apache,apxs function is to use the loadmodule instruction in Mod_so to load the specified module to Apache, requiring Apache to
Interpretation of common parameters for compiling PHP
Copy Code code as follows:
--prefix=/usr/local/php #指定 PHP installation directory
--with-apxs2=/usr/local/apache/bin/apxs #整合apache, the APXS function is to use the loadmodule
Minimize the installation of the system first.
First, the system agreement
Software source code Package storage location
/usr/local/src
Source Package compilation Installation Location (prefix)
Learning embedded Linux In the process, has always wanted to build a network server, running on the board of S3c2410, as a simple human-computer interface, but also in the industrial scene is one of the more commonly used embedded
Phplib can also do a lot of other things, such as database classes. This article is just a brief introduction to Phplib. There are many classes and functions that are not mentioned. You can go to http://phplib.netuse.de to get more help documents.
Because the production environment is FreeBSD platform, before also wrote a FreeBSD installation mysql5.1.70+php5.2.17 (FastCGI) + nginx1.0.1 high-performance Web server, there are children's shoes want to help write an article on the installation
1, first into the/usr/local/nginx/conf/directory (their own nginx installation path), just compiled a good nginx in this directory is the wood has vhost directory, the creation of this directory, open the nginx.conf file, in the HTTP range to add
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.