Home >Backend Development >PHP Tutorial >Apache 2.0.35 php 4.2.0 installation notes under Win32_PHP tutorial
Notes on installing Apache 2.0.35 php 4.2.0 under Win32
1. The installation interface is relatively good, just add ServerAdmin, ServerName, and post respectively
If you enable DNS, the DNS settings will be used as the default Configuration, this should be noted.
When the default homepage is visible, the installation is successful, and there is generally no problem
2. The default homepage location is [d]:/Program Files/Apache Group/Ahache2/htdocs
If you need to modify it, you can modify it at httph. conf file (the same below)
DucumentRoot "Your homepage location"
Please also modify
If you need to configure the user homepage, you can modify it
UserDir "User home page set location"
When accessing, use http://ServerName:post/~user directory name
3. Set the default page name
Change
DirectoryIndex index.html index. html.var
to
DirectoryIndex index.php index.html index.html.var
4. Change
AddDefaultCharset ISO-8859-1
to
AddDefaultCharset GB2312
So that the default character set of the output page is gb2312, which can prevent garbled characters
5. Add at the end (note the real path of apache2filter.dll)
LoadModule php4_module c:/php/experimental/apache2filter.dll
AddOutputFilter PHP .php
AddInputFilter PHP .php
AddType text/html .php
6. The installation of php4.2.0 is the same as the lower version
At this point, you are done, you can enjoy Apache 2.0