Calling php (as the current mainstream development language) in apache (the most popular WEB server platform on the Unix platform) is an enduring topic. The current php (as the current mainstream development language)There are php(as the current mainstream development language)4 and php(as the current mainstream development language) 5 version, and in apache (the most popular WEB server platform on the Unix platform) , calling php (as the current mainstream development language) also has module (module) mode and cgi (not many people are using it now) method, and apache (the most popular WEB server platform on the Unix platform) also exists apache (the most popular WEB server platform on the Unix platform) Server platform) 1 and apache (the most popular WEB server platform on the Unix platform) 2.
In apache (the most popular WEB server platform on the Unix platform) There are the following eight modes for calling php(as the current mainstream development language):
1, php(as the current mainstream development language)4 in apache (The most popular WEB server platform on Unix platform)1. Module mode
2.php(as the current mainstream development language)4. Apache(Unix platform The most popular WEB server platform) 1 cgi (not many people are using it now) mode
3. php (as the current mainstream development language) 5 in apache(the most popular WEB server platform on Unix platform)1 module mode
4, php(as the current mainstream development language)5 in apache(The most popular WEB server platform on Unix platform)1 cgi(not many people are using it now)mode
5,php(as the current mainstream development Language)4 in apache(the most popular WEB server platform on Unix platform)2 module mode
6, php(as the current mainstream development language)4 In apache (the most popular WEB server platform on Unix platform) 2 cgi (not many people are using it now) mode
7, php (as The current mainstream development language) 5 in apache (the most popular WEB server platform on the Unix platform) 2 module mode
8, php (as the current mainstream development language) 5 in apache(the most popular WEB server platform on Unix platform)2 in cgi(not many people are using it now)Mode
Have you ever thought about it , how about configuring these eight calling modes in a configuration file?
Maybe you have done it, but it was not completely successful, because these eight modes are not compatible with each other.
However, it is easy to tame these eight modes and contain them together by using one command of apache (the most popular WEB server platform on Unix platform) .
Which command? It turns out to be:
At http://w.yi.org/ftp/FAPM/apache(The most popular WEB server platform on the Unix platform)/apache(The most popular WEB server platform on the Unix platform Server platform) 2/zh/mod/core.html#ifdefine has a complete introduction to this command.
Code:
Description: Only at startup A packaging instruction that is carried out after a successful test
Syntax:
Context: server configuration, virtual host, directory, .htaccess (favorite for small websites)
Coverage: All
Status: Core
Module: core
Parameter name
!Parameter name
In the first case, only if The instructions between the start and end tags are processed only if the parameter matching the parameter name has been defined. The second situation is quite the opposite. The instruction is processed only if the parameter name is not defined.
The parameter name variable is specified in the form of -D parameter on the httpd command line when the service is started.
$ httpd -DReverseProxy ...
# httpd.conf
php
(as the current mainstream development language)
The super configuration module is as follows↓ ____________________↓↓ _______________↓↓↓
______________↓↓↓↓
_______________↓↓↓↓↓
______________↓↓↓↓↓↓
_______________↓↓↓↓↓
______________↓↓↓ ↓
_______________↓↓↓
____________________↓↓
php
(as the current mainstream development language)
The super configuration module is as follows↓ Code:
############################################### #################
# php
(as the current mainstream development language)
Super configuration module--php(as the current mainstream development language) Mainstream development language) 4, php (as the current mainstream development language) 5, module, cgi (not many people are using it now) You can play with it Transfer -- applied to apache (the most popular WEB server platform on Unix platform) # ######################## ######################################## # Configuration version General version v1.01 # @hotmail.com #
## ################################################ #############
# Home page address: http://w.yi.org/ /viewforum.php
(as the current mainstream development language)
?f=13 #
####################### #########################################
http://www.bkjia.com/PHPjc/508605.html
www.bkjia.com
true