首页 > 后端开发 > php教程 > Windows安装Apache2.4和PHP5.6,apache2.4php5.6_PHP教程

Windows安装Apache2.4和PHP5.6,apache2.4php5.6_PHP教程

WBOY
发布: 2016-07-13 10:10:12
原创
860 人浏览过

Windows安装Apache2.4和PHP5.6,apache2.4php5.6


VC11 下载安装
http://www.microsoft.com/en-us/download/details.aspx?id=30679

=================

PHP(5.6) VC11 x86 Thread Safe
php-5.6.4-Win32-VC11-x86.zip

下载地址:http://windows.php.net/download/

解压并建立php.ini文件

=================

Apache(2.4)
httpd-2.4.10-win32-VC11.zip

下载地址:http://www.apachelounge.com/download/
手册下载:http://mirror.bit.edu.cn/apache/httpd/docs/

解压,示例目录(E:/WAMP)

修改主配置文件:conf/http.conf

ServerRoot "E:/WAMP/Apache"
ServerName desktop
DocumentRoot "E:/WWW"

DirectoryIndex index.html index.php

Include conf/extra/httpd-vhosts.conf

#关联PHP
LoadModule php5_module E:/WAMP/PHP/php5apache2_4.dll
AddType application/x-httpd-php .php
PHPIniDir "E:/WAMP/PHP"

修改虚拟主机配置文件:conf/extra/httpd-vhosts.conf

<VirtualHost *:80>
  ServerName desktop
  DocumentRoot "C:/Users/Administrator/Desktop"
  <Directory "C:/Users/Administrator/Desktop">
    Options Indexes FollowSymLinks
    AllowOverride FileInfo
  </Directory>
</VirtualHost>
登录后复制

 

添加系统服务:httpd.exe -k install -n "Apache24"
卸载系统服务:httpd.exe -k uninstall -n "Apache24"

 

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/938094.htmlTechArticleWindows安装Apache2.4和PHP5.6,apache2.4php5.6 VC11 下载安装 http://www.microsoft.com/en-us/download/details.aspx?id=30679 ================= PHP(5.6) VC11 x86 Thread Safe ph...
相关标签:
来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板