WINXp,windows2000下配置apache2.0.52+php5.0.2+mysql4.0
一、使用软件:
apache_2.0.52-win32-x86-no_ssl
php-5.0.2-Win32
mysql-4.0.21-win
phpMyAdmin-2.6.0
配置环境:Windows Xp sp2
二、具体步骤
注意事项:安装过程,任何目录和文件名都不要使用空格,
不要使用D:Program Files 而要使用D:ProgramFiles
1. apache_2.0.52-win32-x86-no_ssl
apache服务器软件,我下载的是win版本,2.0系列的配置都是相似的。
双击安装apache2.0.52,我把它安装到D:ApacheGroup 注意,目录名不要包含空格,否则下面设置php会出错。安装结束后,apache自动运行,在浏览器里输入http://127.0.0.1是不是显示出了默认的网页,如果你不希望看到这个页面,可以到D:ApacheGroupApache2conf 目录下找到 httpd.conf 打开编辑,并查找 DocumentRoot " 在2.0系列的版本中,只会找到一个 DocumentRoot " ,把引号内的路径改为你自己的路径就可以了,比如 DocumentRoot "D:/php" 现在默认的根目录就是 D:/php 注意这里用的是“/”。
2、安装php5.0.2
下载过来的php-5.0.2-Win32一般是个zip格式的压缩包,解压缩到D:ApacheGroup 目录下,并使文件都在一个文件夹下,改文件夹名为php5 ,这样方便接下来的工作。现在我们看到 D:ApacheGroup 下面已经有两个文件夹了, 一个是 apache2(安装apache2.0.52自动生成的一个文件夹) 另一个是 php5 我的方式是每一个软件一个文件夹,并且这些文件夹在同一目录下, 这样便于查找。
好了,我们现在开始配置apache 使它支持php5 .
首先,找到 D:ApacheGroupphp5 目录下的php.ini-dist 重命名为php.ini 并复制到C:WINDOWS 目录下,
然后,复制 D:ApacheGroupphp5 目录下的php5ts.dll,libmysql.dll 到C:windowssystem
接下去,我们开始配置 D:ApacheGroupApache2conf 下的 httpd.conf文件,打开httpd.conf (可用记事本打开)
①找到 AddDefaultCharset ISO-8859-1 将其改为 AddDefaultCharset GB2312 (让默认语言编码为简体中文)
②找到DirectoryIndex index.html index.html.var 在后面加入 index.htm index.php index.php3
--------------模块化安装配置------------------------------------
找到 #LoadModule ssl_module modules/mod_ssl.so 这行,在此行后加入一行
LoadModule php5_module D:/ApacheGroup/Apache2/php5/php5apache2.dll
其中D:/ApacheGroup/Apache2/php5/ 为你php目录,找到 AddType application/x-gzip .gz .tgz 这行,在此行后加入一行

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

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

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

CrystalDiskMark is a small HDD benchmark tool for hard drives that quickly measures sequential and random read/write speeds. Next, let the editor introduce CrystalDiskMark to you and how to use crystaldiskmark~ 1. Introduction to CrystalDiskMark CrystalDiskMark is a widely used disk performance testing tool used to evaluate the read and write speed and performance of mechanical hard drives and solid-state drives (SSD). Random I/O performance. It is a free Windows application and provides a user-friendly interface and various test modes to evaluate different aspects of hard drive performance and is widely used in hardware reviews

Title: The working principle and configuration method of GDM in Linux systems In Linux operating systems, GDM (GNOMEDisplayManager) is a common display manager used to control graphical user interface (GUI) login and user session management. This article will introduce the working principle and configuration method of GDM, as well as provide specific code examples. 1. Working principle of GDM GDM is the display manager in the GNOME desktop environment. It is responsible for starting the X server and providing the login interface. The user enters

foobar2000 is a software that can listen to music resources at any time. It brings you all kinds of music with lossless sound quality. The enhanced version of the music player allows you to get a more comprehensive and comfortable music experience. Its design concept is to play the advanced audio on the computer The device is transplanted to mobile phones to provide a more convenient and efficient music playback experience. The interface design is simple, clear and easy to use. It adopts a minimalist design style without too many decorations and cumbersome operations to get started quickly. It also supports a variety of skins and Theme, personalize settings according to your own preferences, and create an exclusive music player that supports the playback of multiple audio formats. It also supports the audio gain function to adjust the volume according to your own hearing conditions to avoid hearing damage caused by excessive volume. Next, let me help you

Cloud storage has become an indispensable part of our daily life and work nowadays. As one of the leading cloud storage services in China, Baidu Netdisk has won the favor of a large number of users with its powerful storage functions, efficient transmission speed and convenient operation experience. And whether you want to back up important files, share information, watch videos online, or listen to music, Baidu Cloud Disk can meet your needs. However, many users may not understand the specific use method of Baidu Netdisk app, so this tutorial will introduce in detail how to use Baidu Netdisk app. Users who are still confused can follow this article to learn more. ! How to use Baidu Cloud Network Disk: 1. Installation First, when downloading and installing Baidu Cloud software, please select the custom installation option.

NetEase Mailbox, as an email address widely used by Chinese netizens, has always won the trust of users with its stable and efficient services. NetEase Mailbox Master is an email software specially created for mobile phone users. It greatly simplifies the process of sending and receiving emails and makes our email processing more convenient. So how to use NetEase Mailbox Master, and what specific functions it has. Below, the editor of this site will give you a detailed introduction, hoping to help you! First, you can search and download the NetEase Mailbox Master app in the mobile app store. Search for "NetEase Mailbox Master" in App Store or Baidu Mobile Assistant, and then follow the prompts to install it. After the download and installation is completed, we open the NetEase email account and log in. The login interface is as shown below

MetaMask (also called Little Fox Wallet in Chinese) is a free and well-received encryption wallet software. Currently, BTCC supports binding to the MetaMask wallet. After binding, you can use the MetaMask wallet to quickly log in, store value, buy coins, etc., and you can also get 20 USDT trial bonus for the first time binding. In the BTCCMetaMask wallet tutorial, we will introduce in detail how to register and use MetaMask, and how to bind and use the Little Fox wallet in BTCC. What is MetaMask wallet? With over 30 million users, MetaMask Little Fox Wallet is one of the most popular cryptocurrency wallets today. It is free to use and can be installed on the network as an extension

Understanding Linux Bashrc: Function, Configuration and Usage In Linux systems, Bashrc (BourneAgainShellruncommands) is a very important configuration file, which contains various commands and settings that are automatically run when the system starts. The Bashrc file is usually located in the user's home directory and is a hidden file. Its function is to customize the Bashshell environment for the user. 1. Bashrc function setting environment

Apple rolled out the iOS 17.4 update on Tuesday, bringing a slew of new features and fixes to iPhones. The update includes new emojis, and EU users will also be able to download them from other app stores. In addition, the update also strengthens the control of iPhone security and introduces more "Stolen Device Protection" setting options to provide users with more choices and protection. "iOS17.3 introduces the "Stolen Device Protection" function for the first time, adding extra security to users' sensitive information. When the user is away from home and other familiar places, this function requires the user to enter biometric information for the first time, and after one hour You must enter information again to access and change certain data, such as changing your Apple ID password or turning off stolen device protection.
