After the Apache (latest version 1.3.14) is installed, the httpd.conf files under the apacheconf directory are configured as follows:
1.1 Find #servername New.host.name, replace new.host.name with your own hostname, if the host name is Xman instead
ServerName Xman
At the same time, remove the front #.
1.2 Publish one of your folders:
If you want to publish your directory D:myweb, publish the name MyWeb, look for the alias in the httpd.conf file, add the following
Alias/myweb "D:/myweb"
Note that in the Apache 1.3.14, the paths in quotation marks are separated by "/" instead of "".
2. Install PHP:
2.1 Extract Php-4.0.4-win32.zip (latest version 4.0.4) to a directory on your hard disk, for example, extract to the d:php directory.
2.2 Move the Php4ts.dll in the PHP directory to the Windows system directory such as (C:windowssystem).
2.3 Further modify the apacheconfhttpd.conf file and add the following content:
LoadModule Php4_module X:/php/sapi/php4apache.dll
AddType application/x-httpd-php. php
where LoadModule and AddType can be found by looking.
2.4 Copy the file Php.ini-dist in the PHP (d:php) directory to the Windows directory (c:windows) and rename it to PHP.ini.
Start Apache.
In the Startup window, you can see
apache/1.3.14 (WIN32) php/4.0.4 running ...
The words.
3 Test:
Edit file helloworld.php as follows:
<?php
echo "Hello world!";
?>
After starting Apache, ie typing: http://xman/myweb/helloworld.php
See Hello world! It means that you have successfully installed Apache + PHP.
The above Apache version for the apache1.3.14,php version of php4.0.4, the other version may be a little different, but basically the same. Under the Win2000 and Win98 under the basic same, just put Php4ts.dll under WINNTSYSTEM32 can. The rest can be referenced for installation. When you install a service, you may have an error when you turn it off, and you can change it to a CGI way.
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.