zoukankan      html  css  js  c++  java
  • Apache 安装

    1.Apache安装

    在官网上下载。安装即可, 两个要点

        1.1  ServerName 要写计算机的名称(网络域名和邮箱默认即可)

    1.2 Custom安装中,勾选上 BuildHeaders and Libraries

         安装后后,状态栏显示Apache已经启动 . 访问localhost如下,则 Apache安装成功.

       1.2 Apache的常见配置

          Apache/conf/httpd.conf 就是Apache的配置文件。  

    1.2.1  配置发布目录    DocumentRoot

    #
    # DocumentRoot: The directory out of which you will serve your
    # documents. By default, all requests are taken from this directory, but
    # symbolic links and aliases may be used to point to other locations.
    #
    DocumentRoot "D:/PHPApacheMySQL/Apache/htdocs"

            说明:发布后的网站放在这个目录下,即可ip/网站目录名访问

             注意,在Apache中路径用正斜杠/ . 与windows路径中的\不同。

    2. PHP的安装

    2.1选择正确的PHP安装包

              >如果是apache1 或者apache2, 要选则“vc6..”的版本

              >要选择“thread safe”版本,才能选择cgi

              >选择installer,才是msi

           综上选择:

              VC6 x86 Thread Safe (2011-Mar-22 13:29:30)

    2.2 安装PHP

     //选择安装的Apache模版 (这会在安装目录中生成相应的dll ) phpapache_2.2.dll

     //选择apache httpd.conf所在的目录。   PHP在安装过程中会改变Apache的配置文件httpd.conf

    //要安装的插件,全部选上就10多M

    //安装之后打开Apache的配置文件,phpapache_2.2.dll的路径被写进去。 用于解析php页面

     修改成正确的样子

    启动Apache失败,在管理-->事件查看器中看 错误原因

                  

  • 相关阅读:
    pipelinewise 学习二 创建一个简单的pipeline
    pipelinewise 学习一 docker方式安装
    Supercharging your ETL with Airflow and Singer
    ubuntu中使用 alien安装rpm包
    PipelineWise illustrates the power of Singer
    pipelinewise 基于singer 指南的的数据pipeline 工具
    关于singer elt 的几篇很不错的文章
    npkill 一个方便的npm 包清理工具
    kuma docker-compose 环境试用
    kuma 学习四 策略
  • 原文地址:https://www.cnblogs.com/imihiroblog/p/2604581.html
Copyright © 2011-2022 走看看