I recently install Apache1.3.19 + PHP 4.0.4pl1 on my win2000Pro workstation, which is intended to be a web server. At the beginning, it seems everything is working fine, I can see access the php file without the problem. However, after a while I notice that after access pages for couple of time, or even click refresh for a few tiem, the loading time increase dramatically and eventually lead to access-tiem out. Then when I check the internet access, found out that even external access has been shut down. I am pretty sure that I have a stable internet access. Could anyone tell me what's wrong. Following is some of the detail about the changes in configuration file in both apache and PHP:
Apache:
Add the following line to the bottom of httpd.conf
for the apache module
LoadModule php4_module D:/WebApp/php4/sapi/php4apache.dll
AddType application/x-httpd-php .php4
for the cgi binary (you can use that one complied with force cgi redirect too)
ScriptAlias /php4/ "D:/WebApp/php4/"
Action application/x-httpd-php4 "/php4/php.exe"
AddType application/x-httpd-php4 .php
AddType application/x-httpd-php4 .php3
AddType application/x-httpd-php4 .php4
AddType application/x-httpd-php4 .html
AddType application/x-httpd-php4 .htm
Edit the following:
1) Change ServerRoot to:
ServerRoot "D:/WebApp/Apache"
2) Change ServerAdmin to:
ServerAdmin swonge@home.com
3) Change ServerName to:
ServerName http://localhost
4) Change DocumentRoot to:
DocumentRoot "D:/WebServer”
PHP:
1) Move \php4ts.dll to windows/system(32) directory, overwritten any older file.
2) Copy the \php.ini-dist to sysroot (directory where Windows is installed), rename it to php.ini and edit the php.ini.
3) Restart Apache server if installed
Could anyone tell me if it's proper way to config the system, or is there any site which have a detail procedure of how to install PHP4 + Apache on Win2000 system.
Thanks for you attention
Steve