zoukankan      html  css  js  c++  java
  • windows7上安装php7和apche2.4

    windows7在配置php7+apache2.4

    1、下载并安装vc14
    http://www.microsoft.com/zh-cn/download/details.aspx?id=48145
    下载并安装vc_redist.x64.exe

    2、下载php7
    http://windows.php.net/downloads/releases/php-7.0.4-Win32-VC14-x64.zip
    解压缩 D:/web/php/

    3、下载xDebuger

    https://xdebug.org/files/php_xdebug-2.4.0-7.0-vc14-x86_64.dll

    拷贝到D:/web/php/ext

    4、下载apache2.4
    http://download.anindya.com/apache/apache_2.4.4-x64-openssl-1.0.1e.msi
    解压缩 D:/web/apache24/

    5、创建web站点目录
    D:/web/www/

    6、配置apache24/conf/httpd.conf
    ServerRoot "D:/web/Apache24"
    DocumentRoot "D:/web/www/ "

    PHPIniDir "D:/web/php/"
    LoadModule php7_module "D:/web/php/php7apache2_4.dll"
    LoadFile "D:/web/php/libeay32.dll"
    LoadFile "D:/web/php/ssleay32.dll"
    LoadFile "D:/web/php/ext/php_pdo_mysql.dll"
    LoadFile "D:/web/php/ext/php_mysqli.dll"


    <IfModule mime_module>
      TypesConfig conf/mime.types
      AddType application/x-httpd-php .php

    7、复制1个php.ini-development ,修改为php.ini,打开php.ini,找到配置(注意把开头的分号去掉):
    extension_dir = "D:/web/php/ext"

    extension=php_curl.dll
    extension=php_mysqli.dll
    extension=php_pdo_mysql.dll
    把上述几个dll拷贝到WindowsSystem32目录。

    [xDebug]
    zend_extension = "D:/web/php/ext/php_xdebug-2.4.0-7.0-vc14-x86_64.dll"
    xdebug.auto_trace = On
    xdebug.show_exception_trace = On
    xdebug.remote_autostart = On
    xdebug.remote_enable = On
    xdebug.collect_vars = On
    xdebug.collect_return = On
    xdebug.collect_params = On
    xdebug.trace_output_dir="e:/php/debuginfo"
    xdebug.profiler_enable=On
    xdebug.profiler_output_dir="e:/php/debuginfo"
    xdebug.remote_host=localhost
    xdebug.remote_port=9000
    xdebug.remote_handler=dbgp

    8、启动apache24服务

    9、在D:/web/www/ 创建1个index.php文件
    访问测试:http://localhost/index.php

    10、最新的PHP用户手册

    在线阅读:http://php.net/manual/zh/index.php

    下载CHM:http://cn2.php.net/get/php_manual_zh.chm/from/this/mirror

  • 相关阅读:
    云原生生态周报 Vol. 16 | CNCF 归档 rkt,容器运行时“上古”之战老兵凋零
    Knative 基本功能深入剖析:Knative Eventing 之 Sequence 介绍
    基于 K8s 做应用发布的工具那么多, 阿里为啥选择灰姑娘般的 Tekton ?
    Serverless 的喧哗与骚动(一)附Serverless行业发展回顾
    239. Sliding Window Maximum
    237. Delete Node in a Linked List
    146. LRU Cache
    140. Word Break II
    165. Compare Version Numbers
    258. Add Digits
  • 原文地址:https://www.cnblogs.com/lavezhang/p/5258436.html
Copyright © 2011-2022 走看看