PHP环境搭配

apche:httpd.conf

1. PHP安装路径ServerRoot "C:/www/apache2"   

2.#Listen 12.34.56.78:80监听端口,只允许这个IP地址访问

3.LoadModule php5_module "c:/www/php5.4/php5apache2_2.dll"载入PHP组件

4.DocumentRoot "C:/www/apache2/htdocs"默认文件夹

5.<Directory "C:/www/apache2/htdocs">权限文件夹

6.DirectoryIndex index.html默认访问文件

7.ErrorLog "logs/error.log"错误日志

8.CustomLog "logs/access.log" common访问日志

PHP解析:

    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
    AddType application/x-httpd-php .php解析PHP文件
    PHPIniDir "C:/www/PHP5.4"

错误配置:

# Some examples:
#ErrorDocument 500 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 http://www.my.com/subscription_info.html
#




评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值