PHP Super Config module hp4,php5,module,cgi

Source: Internet
Author: User
Keywords PHP Super Config module hp4 php5 module cgi

Invoking PHP in Apache (the most popular Web server platform on UNIX platforms) is a perennial topic, with PHP currently in PHP4 and PHP5 versions, and PHP being invoked in Apache (the most popular Web server platform on UNIX platforms). (module) mode and CGI, while Apache (the most popular Web server platform for UNIX platforms) also has 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).
There are eight modes of calling PHP in Apache (the most popular Web server platform on UNIX platforms):
1,PHP4 module mode in Apache (the most popular Web server platform for UNIX platforms) 1
2,PHP4 CGI mode in Apache (the most popular Web server platform for UNIX platforms) 1
3,PHP5 module mode in Apache (the most popular Web server platform for UNIX platforms) 1
4,PHP5 CGI mode in Apache (the most popular Web server platform for UNIX platforms) 1
5,PHP4 module mode in Apache (the most popular Web server platform for UNIX platforms) 2
6,PHP4 CGI mode in Apache (the most popular Web server platform for UNIX platforms) 2
7,PHP5 module mode in Apache (the most popular Web server platform for UNIX platforms) 2
8,PHP5 CGI mode in Apache (the most popular Web server platform for UNIX platforms) 2
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
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
   
  
  
The PHP Super configuration module is shown below ↓
__________________↓↓
_________________↓↓↓
________________↓↓↓↓
_______________↓↓↓↓↓
______________↓↓↓↓↓↓
_______________↓↓↓↓↓
________________↓↓↓↓
_________________↓↓↓
__________________↓↓
The PHP Super configuration module is shown below ↓
  
Code:
##################################################################
# PHP Super Config module--php4,php5,module,cgi let you play--Apply to Apache (the most popular Web server platform on UNIX platform) #
##################################################################
# 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?f=13 #
##################################################################
  • 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.