search
Homephp教程php手册在Windows下安装Apache + PHP3

在Windows下安装Apache + PHP3

Jun 13, 2016 am 10:10 AM
apachewindowsDownexistInstalldiscuss

本文只讨论如何在Windows NT 4.0或Windows 2000下安装Apache+PHP3。
我使用的Apache为apache_1_3_12_win32.exe。
注意您得先安装PHP3哦,可以照我写的文档进行安装:在Windows下安装PHP3,注意不需要做这一步:二、软件安装->3->f)。
一、软件下载
  您可以从下列站点下载Windows版本的Apache Web Server软件:
    http://www.apache.org/dist/binaries/win32/
二、安装Apache
  1、双击下载的Apache可执行文件(如apache_1_3_12_win32.exe)进行安装,安装
的时候您可以选择安装的目的地,缺省为C:Program FilesApache GroupApache,
我用$APACHE_ROOT来代替安装目的地;
  2、修改$APACHE_ROOTconfhttpd.conf:
     Port 80
       设置Apache Web Server运行时使用的端口号,由于我这里的IIS也在运
       行,IIS使用了80端口号,于是我把它改成Port 8080,这时我在浏览器上
       输入http://localhost:8080/才能访问到Apache Web Server服务器,
       输入http://localhost/时能访问到IIS,这样两个Web Server都可以用
       了哦,我用$PORT标识
     ServerAdmin you@your.address
       设置管理员信箱,当服务器出问题时,它就会把出现的问题发到管理员信箱
       中,我这里把它改成了ServerAdmin hhzqq@chinaweal.com
     DocumentRoot "C:/Program Files/Apache Group/Apache/htdocs"
       设置文档根目录,当您在浏览器上输入http://localhost:$PORT/时,服
       务器会从文档根目录读取数据,我把它改成了
        DocumentRoot "D:HZQPHP3",我用$DocumentRoot标识
     
       把这个改成,我这里为
       
     DirectoryIndex index.html
       设置默认文档,为了支持php3,我把它改成了DirectoryIndex
        index.html index.htm index.php3 index.php index.phtml

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),