Home php教程 php手册 WIN2000/XP下配置apache2.0.52+php5.0.2+mysql4.0

WIN2000/XP下配置apache2.0.52+php5.0.2+mysql4.0

Jun 13, 2016 am 11:01 AM
one Down use software Configuration

◆一、使用软件:

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自动运行,在浏览器里输入 主机名(域名、IP地址均可)及端口地址
DocumentRoot “D:/php” 网站根目录

DirectoryIndex index.php index.html index.htm index.php3 index.html.var 加入默认文档

ServerTokens Full 显示服务器信息,Full为全部,Prod为最少,建议设置为Prod,不容易暴露服务器信息

AddType application/x-httpd-php .php .phtml .php3 .php4 加入对php、phtml、php3、php4文件的支持

◆三、高级设置:

现在整套系统就算基本完成,剩下的就是一些高级设置:

apache高级附加功能:

1、配置ActivePerl-5.8.4.810-MSWin32-x86(以支持cgi/pl)

双击下载过来的ActivePerl-5.8.4.810-MSWin32-x86.exe安装到D:apacheGroupPerl目录下(最好安装到c:usr)为了便于文件管理,我把perl安装到了D:apacheGroupPerl目录下。

开始设置httpd.conf使D:apacheGroupapache2cgi-bin 目录自动转化为虚拟目录(最好把cgi程序都要放在这个目录下,如果图片无法正常显示,请重启计算机,重启后一般没有问题,也可以把cgi程序放在根目录下,经过测试,放在根目录运行正常,图片也正常显示。)

(1)寻找,往下面有一句Options,把后面的参数全去掉,加一个All,注意大小写呵。再往下有一句AllowOverride,也把后面的None去掉,加一个All

(2)寻找,往下面第八行有一句Options, 把后面的参数全去掉,加一个All,注意大小写呵。再往下数行有一句AllowOverride,也把后面的None去掉,加一个All

(3)寻找#ScriptAlias /cgi-bin/ "D:/apacheGroup/apache2/cgi-bin/",把前面的#号去掉

(4)寻找,下面有一句AllowOverride, 把后面的参数去掉,加一个All,注意大小写呵。再往下有一句Options也把后面的None去掉,加一个All

(5)寻找AddHandler cgi-script .cgi后面加上.pl ,即 AddHandler cgi-script .cgi .pl

(6)如果还想增加SSI,需把下面两行前面的#号去掉。

AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
AddHandler server-parsed .shtml

还要注意perl脚本中的perl解释路径,必需把所有cgi或pl文件头的默认的#! /usr/Perl/bin/perl.exe 改为 #!D:/apacheGroup/Perl/bin/perl.exe 即你perl.exe的绝对路径!(如果使用c:usr目录安装就不需要更改,强烈建议普通用户把perl安装在c:usr目录下)好了,现在已经能够成功解析cgi和pl了!

小结:这里有一个重点就是perl.exe所在的目录,安装在c:usr目录下,可以减少很多不必要的设置(比如,设置每个cgi/pl文件头的#! /usr/Perl/bin 当然也可以使用ultraedit32来进行批量更改,我就是这样做的!)

2、zendOptimizer255Windows-i386的安装(优化php性能)

双击下载过来的zendOptimizer255Windows-i386.exe进行安装,在安装过程会出现选择apache的安装目录和php.ini所在目录,一般能够自动识别,如果不能请手动查找,安装完毕后会自动启动,不需要任何设置!该软件能够自动设置php.ini以进行php执行程序的优化!

检验:编制php页面:代码如下

phpinfo();
?>

保存为info.php

运新info.php即可得知是否使用了zend引擎!

好了,到这里,基本上各个组件都安装全了!投入使用吧,呵呵!


Statement of this Website
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 Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What software is crystaldiskmark? -How to use crystaldiskmark? What software is crystaldiskmark? -How to use crystaldiskmark? Mar 18, 2024 pm 02:58 PM

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

How to download foobar2000? -How to use foobar2000 How to download foobar2000? -How to use foobar2000 Mar 18, 2024 am 10:58 AM

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

CrystalDiskinfo usage tutorial-What software is CrystalDiskinfo? CrystalDiskinfo usage tutorial-What software is CrystalDiskinfo? Mar 18, 2024 pm 04:50 PM

CrystalDiskInfo is a software used to check computer hardware devices. In this software, we can check our own computer hardware, such as reading speed, transmission mode, interface, etc.! So in addition to these functions, how to use CrystalDiskInfo and what exactly is CrystalDiskInfo? Let me sort it out for you! 1. The Origin of CrystalDiskInfo As one of the three major components of a computer host, a solid-state drive is the storage medium of a computer and is responsible for computer data storage. A good solid-state drive can speed up file reading and affect consumer experience. When consumers receive new devices, they can use third-party software or other SSDs to

How to use NetEase Mailbox Master How to use NetEase Mailbox Master Mar 27, 2024 pm 05:32 PM

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

How to use Baidu Netdisk app How to use Baidu Netdisk app Mar 27, 2024 pm 06:46 PM

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.

BTCC tutorial: How to bind and use MetaMask wallet on BTCC exchange? BTCC tutorial: How to bind and use MetaMask wallet on BTCC exchange? Apr 26, 2024 am 09:40 AM

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

Understand Linux Bashrc: functions, configuration and usage Understand Linux Bashrc: functions, configuration and usage Mar 20, 2024 pm 03:30 PM

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

How to resolve an incompatible software attempt to load with Edge? How to resolve an incompatible software attempt to load with Edge? Mar 15, 2024 pm 01:34 PM

When we use the Edge browser, sometimes incompatible software attempts to be loaded together, so what is going on? Let this site carefully introduce to users how to solve the problem of trying to load incompatible software with Edge. How to solve an incompatible software trying to load with Edge Solution 1: Search IE in the start menu and access it directly with IE. Solution 2: Note: Modifying the registry may cause system failure, so operate with caution. Modify registry parameters. 1. Enter regedit during operation. 2. Find the path\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Micros

See all articles