// Detect the configuration file syntax
# httpd -t
# Apachectl configtest
/ / View Compilation Configuration Parameters
# Apachectl -v
/ / View modules that have been compiled
# Apachectl -l
/ / View parameters
# Apache -
/ / View profile information
# Grep -V "#" /etc/httpd/conf/httpd.conf
// Run CGI
// module configuration
LoadModule CGI_Module Modules / MOD_CGI.SO
Ifmodule>
// Directory configuration
ALLOWOVERRIDE NONE
Options execcgi -indexes
ORDER ALOW, DENY
ALLOW FROM ALL
Directory>
AddHandler CGI-script .cgi .pl
// Run Perl
// Configure /etc/httpd/conf.d/perl.conf
LoadModule Perl_Module Modules / MOD_PERL.SO
# This will allow execution of mod_pers to compile your scripts to
# Subroutines Which It Will Execute Directly, Avoiding The Costly
# Compile Process for MOSTS.
#
Alias / Perl / Var / WWW / Perl
SetHandler Perl-script
Perlhandler Modperl :: Registry :: Handler
Perloptions Parseheaders
Options Execcgi
Directory>
// Run PHP
CURL, GD, PHP, PHP-IMAP, PHP-MANUAL, PHP-MySQL
// Profile
LoadModule PHP4_Module Modules / Libphp4.so
#
# Cause The PHP Interpreter Handle Files with a .php Extension.
#
SetOutputFilter PHP
SetInputFilter PHP
LimitRequestBody 524288
Files>
#
# Add index.php to the list of files That Will Be Served As Directory
# indexes.
#
DirectoryIndex Index.php
// Log Analysis Research
Authtype Basic
Authname "admin"
Authorfile / var / www / passwd / jamond // authentication password file
Authgroupfile / var / www / passwd / admin
Require Valid-user // Authorization to all users in the authentication password folder
Directory>
# htpasswd -c Auth Lishujiang // Add user
#Chown apache.apache auth If there is any problem, please send an email: Webmaster@bcxy.com