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

  • 相关阅读:
    FIS3常用配置
    PC端模拟移动端访问 字体大小限制
    table布局 防止table变形 td固定宽度
    fis3 scss 版本报错
    移动端布局方案 网易
    提示浏览器版本低
    JS Math.round()方法原理
    margin 负边距应用
    box-shadow IE8兼容处理
    border-radius IE8兼容处理
  • 原文地址:https://www.cnblogs.com/lavezhang/p/5258436.html
Copyright © 2011-2022 走看看