Install Apache 2.0.35 php 4.2.0 in Win32
1. The installation interface is better. Add ServerAdmin, ServerName, and post respectively.
If you use DNS, the DNS settings are used as the default configuration.
When the default homepage is displayed, it indicates that the installation is successful. Generally, there is no problem.
2. The default home page is located in [d]:/Program Files/Apache Group/Ahache2/htdocs.
If you need to modify it, you can modify it in the httph. conf file (the same below)
DucumentRoot "your home page"
Please modify at the same time
<Directory "your home page location">
To configure the user homepage, you can modify
UserDir "User Home Page location"
Use http: // ServerName: post/~ for access /~ User directory name
3. Set the default page name
Set
DirectoryIndex index.html. var
Change
DirectoryIndex index. php index.html. var
4. Set
Adddefacharcharset ISO-8859-1
Change
Adddefacharcharset GB2312
The default Character Set of the output page is gb2312 to prevent garbled characters.
5. Add at the end (note the true path of apache2filter. dll)
LoadModule php4_module c:/php/experimental/apache2filter. dll
AddOutputFilter PHP. php
AddInputFilter PHP. php
AddType text/html. php
6. php4.2.0 is installed in the same version as the earlier version.
By now, you can enjoy Apache 2.0.