PHP Super Configuration Module hp4,php5,module,cgi_php Tutorial

Source: Internet
Author: User
Invoking PHP (as the mainstream development language) in Apache (the most popular Web server platform on UNIX platforms) is a perennial topic, and PHP (now the mainstream development language) exists in PHP (as the current mainstream development language) 4 and PHP ( As the current mainstream development language) version 5, and in the Apache (Unix platform of the most popular Web server platform) call PHP (as the current mainstream development language) there are modules (module) and CGI (now no more people in use) mode, while Apache ( The most popular Web server platform for UNIX platforms is also available in 22 versions of Apache (the most popular Web server platform for UNIX platforms) 1 and Apache (the most popular Web server platform for UNIX platforms).
The following eight modes of invoking PHP (as the current mainstream development language) exist in Apache (the most popular Web server platform on UNIX platforms):
1,php (as the current mainstream development language) 4 module mode in Apache (the most popular Web server platform for UNIX platforms) 1
2,php (as the current mainstream development language) 4 CGI (the most popular Web server platform on UNIX platform) 1 (now not many people in use) mode
3,php (as the current mainstream development language) 5 module mode in Apache (the most popular Web server platform for UNIX platforms) 1
4,php (as the current mainstream development language) 5 CGI (the most popular Web server platform on UNIX platform) 1 (now not many people in use) mode
5,php (as the current mainstream development language) 4 module mode in Apache (the most popular Web server platform for UNIX platforms) 2
6,php (as the current mainstream development language) 4 CGI (the most popular Web server platform on UNIX platform) 2 (now not many people in use) mode
7,php (as the current mainstream development language) 5 module mode in Apache (the most popular Web server platform for UNIX platforms) 2
8,php (as the current mainstream development language) 5 CGI (the most popular Web server platform on UNIX platform) 2 (now not many people in use) mode
Have you ever thought about the configuration of these eight invocation patterns in a configuration file?
Maybe you did, but not completely successful, because these eight modes are not compatible with each other oh.
However, the flexibility to use the Apache (Unix platform, the most popular Web server platform) of a directive, the eight models of the tame, to be accommodated together, it is easy.
Which instruction? It turns out to be:
Http://w.yi.org/ftp/FAPM/apache (the most popular Web server platform on UNIX platforms)/apache (the most popular Web server platform for UNIX platforms) 2/zh/mod/core.html# Ifdefine has a complete introduction to this instruction.
   instruction
Code:
  
Description: An encapsulation directive that only occurs when a successful test is performed at startup
Syntax: ...
Context: Server configuration, virtual host, directory,. htaccess (favorite of small websites)
Overwrite: All
Status: Core
Module: Core
  
   ... The configuration section is used to identify the directive for additional application conditions. The instructions in the configuration section are processed only when the test results are true. If the test fails. The instructions in this configuration segment will be ignored.
  
   The tests in the configuration section can be one of the following two forms:
  
Name of parameter
! Parameter name
In the first case, the instruction between the start and end tags is processed only if the parameter with the parameter name is already defined. The second case is diametrically opposed. The processing of instructions is performed only if the parameter name is not defined.
  
The parameter name variable is specified in the form of the-d parameter of the httpd command line when the service starts up.
  
   Configuration segments can be nested, allowing for simple multi-parameter testing. For example:
  
$ httpd-dreverseproxy ...
  
# httpd.conf
   
LoadModule Rewrite_module modules/mod_rewrite.so
LoadModule Proxy_module modules/libproxy.so
   
  
  
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) 4,php (as the current mainstream development language) 5,module,cgi (now not many people are using) let you play--Apply to Apache ( The most popular Web server platform on UNIX platforms) #
##################################################################
# Configuration version Universal version v1.01 #
# config write Chochu/honestqiao #
# Date of compilation May 29, 2004 #
# Contact Information qq:5601680 msn:honestqiao@hotmail.com #
##################################################################
# Home Address: http://w.yi.org/#
# Forum Address: http://bbs.chinaunix.net/forum/viewforum.php (as the current mainstream development language)? F=13 #
##################################################################

http://www.bkjia.com/PHPjc/508605.html www.bkjia.com true http://www.bkjia.com/PHPjc/508605.html techarticle calling PHP in Apache (the most popular Web server platform for UNIX platforms) is an enduring topic, and currently PHP (the mainstream development language for now ...).

  • Contact Us

    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.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.