深圳全飞鸿
标题:
httpd.conf的部署介绍
[打印本页]
作者:
admin
时间:
2019-6-4 12:07
标题:
httpd.conf的部署介绍
httpd.conf的部署介绍
修改DocumentRoot
DocumentRoot "C:/DAMP/bin/apache/apache2.2.25/htdocs"
复制代码
第一步:加入模块
LoadModule php5_module "C:\php\php5apache2_4.dll"
复制代码
第二步: 设置type
AddType application/x-httpd-php .php
复制代码
第三步:添加首页
DirectoryIndex index.html index.php
复制代码
作者:
syant
时间:
2019-9-20 16:06
还要改下servername
#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
ServerName 127.0.0.1:80
复制代码
作者:
syant
时间:
2019-9-20 16:09
httpd -k install
httpd -k restart
欢迎光临 深圳全飞鸿 (http://www.nagomes.com/disc/)
Powered by Discuz! X3.2