Configure Apache and run Perl, PHP

xiaoxiao2021-03-06  95

// 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

// Directory configuration

ALLOWOVERRIDE NONE

Options execcgi -indexes

ORDER ALOW, DENY

ALLOW FROM ALL

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

// 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

#

# 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

# htpasswd -c Auth Lishujiang // Add user

#Chown apache.apache auth If there is any problem, please send an email: Webmaster@bcxy.com

转载请注明原文地址:https://www.9cbs.com/read-107552.html

New Post(0)