To install Apache on Windows 95/98/nt

Source: Internet
Author: User
Tags modify win32 phpmyadmin

Because the installation of Apache server does not change the registry, it is easier to install and more servers to use today.

Therefore, we recommend that you use the Apache server.

Let's see if it's easy to install it on Windows 95/98/nt

First, you need an Apache software.

Find it on your machine and click Run it. Note The program asks you where to load?

Set it to "C:\Apache" because you immediately need to modify its configuration file, the installation should not be wrong.

There is a readme file in the "C:\Apache" directory that speaks Win32 platforms, including window 9x and Windows Nt.

You can see it first.

All right! Your Apache is ready to run. Enter is not allowed to run, please see below.

Next, let's look at its settings:

Find the directory "C:\Apache" where you installed Apache.
Open the C:\apache\conf\httpd.conf file with your favorite file editor (preferably support Win32 long file name format, such as edit, UltraEdit, etc.)
(Note: This is the most important configuration file for Apache, don't change it lightly unless you have a certain certainty).
You can also refer to its documentation, or refer to the httpd.conf annotation and configuration instructions in our previous section.
To get Apache to work with PHP, you can just add a few lines:

scriptalias/php/"c:/php4/" here c:/php after "/", Don't miss
AddType application/x-httpd-php. php3
This line is designed to be compatible with a file that PHP3 writes with a PHP3 suffix.
AddType application/x-httpd-php. PhP4
AddType application/x-httpd-php. php
AddType application/x-httpd-php. phtml
Action application/x-httpd-php "/php/php.exe"

In this example: PHP4 is installed in the directory: C:\PHP4

If you don't want to put all your PHP files into the c:\php directory in the future and want to have a separate directory script

So, please add another line

alias/script/"c:/php4/script/"

and create a new directory script in the C:\PHP4 directory, that is: C:\php4\script

In addition: You also need to modify the Apache configuration file, tell Apache "phpMyAdmin" location

Please add another line

alias/admin/"c:/admin/phpmyadmin/"

If, when you run Apache.exe, the Msdos window flashes, it should be your host name is not set.

You want to rerun the file editor, open the httpd.conf file, find "ServerName",

Remove the "#" symbol in front of it and replace it with: ServerName localhost

Save it, this time it will run. (Note the case of the command)

In addition: the operation and shutdown of the Apache server does not carry a dedicated tool.

You can do this:

1, add Apache.exe shortcuts on the desktop (two)

2. Change one of the names to: Apache Start

3, right click on its icon, modify its properties

4, in the attribute has a goal column, fills in: C:\Apache\Apache.exe-d "C:\Apache"-s

5. Change another icon to: Apache ShutDown

6, and according to the above steps in the target column fill in: C:\Apache\Apache.exe-k shutdown Apache

All right! You are free to run with off Apache.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.