深圳全飞鸿

标题: httpd.conf的部署介绍 [打印本页]

作者: admin    时间: 2019-6-4 12:07
标题: httpd.conf的部署介绍
httpd.conf的部署介绍

修改DocumentRoot       

  1. DocumentRoot "C:/DAMP/bin/apache/apache2.2.25/htdocs"
复制代码



第一步:加入模块   

  1.     LoadModule php5_module "C:\php\php5apache2_4.dll"
复制代码


第二步: 设置type

  1.     AddType application/x-httpd-php .php
复制代码



第三步:添加首页   

  1.       DirectoryIndex index.html  index.php
复制代码


作者: syant    时间: 2019-9-20 16:06
还要改下servername

  1. #
  2. # ServerName gives the name and port that the server uses to identify itself.
  3. # This can often be determined automatically, but we recommend you specify
  4. # it explicitly to prevent problems during startup.
  5. #
  6. # If your host doesn't have a registered DNS name, enter its IP address here.
  7. #
  8. 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