配置Apache及运行perl,php
来源:互联网 发布:jquery 1.9.1.min.js 编辑:程序博客网 时间:2024/04/30 12:27
//检测配置文件语法
# httpd –t
# apachectl configtest
//查看编译配置参数
# apachectl –V
//查看已经编译的模块
# apachectl –l
//查看参数
# apache -
//查看配置文件信息
# grep –v “#” /etc/httpd/conf/httpd.conf
//运行CGI
//模块配置
<IfModule prefork.c>
LoadModule cgi_module modules/mod_cgi.so
</IfModule>
//目录配置
<Directory "/var/www/cgi-bin">
AllowOverride None
Options ExecCGI -Indexes
Order allow,deny
Allow from all
</Directory>
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
<Directory /var/www/perl>
SetHandler perl-script
PerlHandler ModPerl::Registry::handler
PerlOptions +ParseHeaders
Options +ExecCGI
</Directory>
//运行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.
#
<Files *.php>
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
//日志分析研究
<Directory "/var/www/html/usage">
AuthType Basic
AuthName "Admin"
AuthUserFile /var/www/passwd/jamond //认证口令文件
AuthGroupFile /var/www/passwd/admingrp //认证组文
require valid-user //授权给认证口令文件夹中所有用户
</Directory>
# htpasswd –c auth lishujiang //添加用户
#chown apache.apache auth
如果有什么问题,请发邮件: webmaster@bcxy.com
- 配置Apache及运行perl,php
- apache+php 运行环境配置
- 安装php及配置apache
- 【个人架站系列之CentOS 7】安装及配置LAMP(CentOs+Apache +MariaDB+PHP or Perl)
- Windows Server 2016 上配置 APACHE+SSL+PHP+perl
- 摘录:php+Apache+mysql运行环境配置
- Apache,php简易配置,可以运行
- Apache+Php+Mysql下配置运行qWikiOffice
- centos7配置php运行环境(Apache、mysql)
- apache perl 配置
- Apache+PHP+Mysql安装及环境配置
- Apache,php关于站点配置及访问
- linux 下apache 及php配置
- Notepad++运行Python PHP Perl
- Notepad++运行 PHP Python Perl
- apache perl 配置(windows)
- 配置Apache+Perl+Mysql+bugzilla
- PHP-mac下的配置及运行
- V$system_event中Wait事件的一段话和resources_wait.sql
- Linux启动及控制服务进程
- Redhat Linux下常用服务介绍
- 个人简历1
- 利用Samba配置文件共享服务
- 配置Apache及运行perl,php
- MBA课程《应用博弈论》案例
- JavaBeans
- Linux下安装Tomcat及融合Apache
- Java事件
- JavaBean的属性
- 初学java对String和StringBuffer的疑惑
- JSP时间操作
- 可以自动跳转到出错页面的servlet/jsp框架