Blogger Information
Blog 8
fans 0
comment 0
visits 5994
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
wamp环境配置记录
相心生、心相取的博客
Original
613 people have browsed it

下载Php7:

    1.链接:https://windows.php.net/download/

    2.版本:VC14 x64 Thread Safe(VC14,64位,多线程版本)

    3.需要安装VC2015运行环境:https://www.microsoft.com/zh-cn/download/details.aspx?id=48145

   

下载apache2.4:

    1.地址:https://www.apachelounge.com/download/

    2.版本:httpd-2.4.23-win64-VC14


配置apache:

    1.打开Apache24/conf/httpd.conf

    2.修改服务器地址:ServerRoot “E:/Apache24”

    3.修改根目录地址:DocumentRoot “E:/www”

    4.添加:
        PHPIniDir “E:/php7” (指明php的安装位置)
        AddType application/x-httpd-php .php .html .htm   (添加php支持的文件类型)
        LoadModule php7_module “E:/php7/php7apache2_4.dll” (加载php的apache2.4模块驱动)


配置php.ini:

    1.打开php目录,复制php.ini-development ,重命名为php.ini。

    2.修改扩展文件的存放目录:找到:  extension_dir = “ext”-> 修改为:  extension_dir = “E:/php7/ext”

    3.修改时区:找到:;date.timezone =    -> 修改为:date.timezone =Asia/Shanghai

    4.设置PHP动态支持的模块:必须的几个模块有:curl,gd2,mbstring,mysqli,openssl,pdo_mysql,socket模块

    5.配置session:    a:新建文件夹  b:php.ini找到session.save_path  c:修改刚刚添加的文件夹的位置

    6.配置php上传功能:upload_tmp_dir

     7.配置上传单个文件的大小限制:upload_max_filesize


启动apache24服务:

    1.把Apache24加入windows服务,并启动Apache

    2.cmd命令行,进入E盘   

    3.   cd   H:\Apache24\bin

    4.httpd –k install

    5.httpd –k start


Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post