zoukankan      html  css  js  c++  java
  • Setup Apache + PHP + MySql on Windows 10

    The below steps recorded my experiences to setup the Apache + PHP + MySql on my Windows 10.

    1. Download Apache http server from http://www.apachehaus.com/cgi-bin/download.plx, unzip and put it to C:ApacheServer.

    2. Download php from http://php.net/downloads.php, unzip and put to C:PHP.

    3. Download Mysql from https://dev.mysql.com/downloads/windows/installer/ and install it.

    4. Config the Apache server by edit the C:ApacheServerconfhttpd.conf file. Add below setting after the LoadMoudle section.

      LoadModule php5_module "C:/php/php5apache2_2.dll"

      AddHandler application/x-httpd-php .php

      PHPIniDir "C:/php"

    5. Continue edit the C:ApacheServerconfhttpd.conf file, change the "ServerRoot" to "C:ApacheServer", change the "DocumentRoot" to "C:ApacheServerhtdocs"

    6. Config the PHP by edit the C:phpphp.ini, remove ";" before extension=php_mbstring.dll, extension=php_mysql.dll, extension=php_mysqli.dll.

    7. Start the Apache server by C:ApacheServerApacheMonitor.exe.

    8. Use your browser to open http://localhost to test if the server can work or not.

    9. If you need to access the website server from another PC, you need to turn off the web protection of the anti-virus software and also do the belowing setting on windows.

    • Go to the Control Panel and launch "Windows Firewall"
    • Go to "Advanced Settings"
    • Select "Inbound Rules" in the left pane
    • Select "New Rule" in the right pane
    • In the New Inbound Rule Wizard, select "Port" as Rule Type, then click on "Next"
    • Select "TCP and put "80" (and any other ports you want to open) in "Specific local ports", then click on "Next"
    • Select "Allow the connection", then click on "Next"
    • Select the network location where the rule should apply (select them all if you're not sure), then click on "Next"
    • Give a name and an optional description
  • 相关阅读:
    HTML语言基础
    过滤器Filter
    新闻实现分页显示
    [转]Jmeter使用入门
    [转]ZK工作原理
    [转]UT-IT-ST-BBIT-SDV-SIT-SVT
    Unix编码哲学
    火星坐标、百度坐标、WGS-84坐标相互转换及墨卡托投影坐标转经纬度JavaScript版
    递归公用表表达式概述
    java写word转pdf
  • 原文地址:https://www.cnblogs.com/shengguang/p/4814737.html
Copyright © 2011-2022 走看看