window10 64位系统安装Apache httpd和PHP开发环境

参考:

最新版本 PHP (windows)开发环境配置

Windows下搭建PHP开发环境

Windows 64位系统安装Apache2.4


下载:Apache httpd和php

1. Apache官网http://www.apache.org/没有httpd的windows系统的二进制包,因此去这里下载:https://www.apachelounge.com/download/

2. PHP去官网下载即可:http://www.php.net/downloads.php


安装:

安装Apache httpd

步骤一: 把下载到的httpd-2.4.26-Win64-VC15.zip压缩包解压,修改httpd的配置文件,打开解压后目录的Apache24\conf\httpd.conf文件,进行以下修改:

   1) 把默认的目录"c:/Apache24"改为自己相应的目录,主要有:

       ServerRoot  "c:/Apache24"

       ServerAdmin改不改无所谓;

       DocumentRoot "c:/Apache24/htdocs"

       <Directory "c:/Apache24/htdocs">

       DirectoryIndex index.html改为DirectoryIndex index.html index.php index.htm   //支持更多的默认页

       ScriptAlias /cgi-bin/ "c:/Apache24/cgi-bin/"

       <Directory "c:/Apache24/cgi-bin">

   2)

   3)

   

步骤二:把httpd安装成服务以及启动服务,可参考官网: http://httpd.apache.org/docs/2.4/platform/windows.html  


安装php



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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值