win10 手动安装 php5.3+mysql5.5.20+Apache2.2注意事项

2020-08-08 00:00:00 by 【6yang】, 31 visits, 收藏 | 返回
2020 win10注意安装细节:
 
1. 安装 Apache2.2
 
下载地址:http://archive.apache.org/dist/httpd/binaries/win32/
a. LoadModule php5_module "G:/AppServ/php5/php5apache2_2.dll"
b .DocumentRoot "H:/web"
c. AddType application/x-compress .Z
       AddType application/x-gzip .gz .tgz
       AddType application/x-httpd-php .php
d. # Virtual hosts
    Include conf/extra/httpd-vhosts.conf
    端口被占用时要修改 NameVirtualHost *:81
        <VirtualHost *:81>
            ServerAdmin webmaster@dummy-host2.test
            DocumentRoot "H:\web"
            ServerName web
            ServerAlias web.com
        </VirtualHost>
e. Listen 81 端口可能会被 80占用
 
2. php5.3 配置php.ini 放在windows系统文件夹下 (phpinfo 里可能会识别mysql)
 
a. error_reporting = E_ALL&~E_NOTICE
b. short_open_tag = On
c. session.save_path = "G:/AppServ/phpsessiontmp"
d. extension=php_mysql.dll
    extension=php_mysqli.dll
e. date.timezone = Asia/Shanghai
f. extension_dir = "G:/AppServ/php5/ext"
 
3. mysql 随意安装
分享到:
share

    图片原图

    loading

    loading