php中perl配置,配置Apache及运行perl,php

//检测配置文件语法

# httpd –t

# apachectl configtest

//查看编译配置参数

# apachectl –V

//查看已经编译的模块

# apachectl –l

//查看参数

# apache -

//查看配置文件信息

# grep –v “#” /etc/httpd/conf/httpd.conf

//运行CGI

//模块配置

LoadModule cgi_module modules/mod_cgi.so

//目录配置

AllowOverride None

Options ExecCGI -Indexes

Order allow,deny

Allow from all

AddHandler cgi-script .cgi .pl

//运行perl

//配置/etc/httpd/conf.d/perl.conf

LoadModule perl_module modules/mod_perl.so

# This will allow execution of mod_perl to compile your scripts to

# subroutines which it will execute directly, avoiding the costly

# compile process for most requests.

#

Alias /perl /var/www/perl

SetHandler perl-script

PerlHandler ModPerl::Registry::handler

PerlOptions +ParseHeaders

Options +ExecCGI

//运行PHP

curl,gd,php,php-imap,php-manual,php-mysql

//配置文件

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

//日志分析研究

AuthType Basic

AuthName "Admin"

AuthUserFile /var/www/passwd/jamond //认证口令文件

AuthGroupFile /var/www/passwd/admingrp //认证组文

require valid-user //授权给认证口令文件夹中所有用户

# htpasswd –c auth lishujiang//添加用户

#chown apache.apache auth如果有什么问题,请发邮件: webmaster@bcxy.com

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值