Click to See Complete Forum and Search --> : Problem with PHP4.04pl1 + Apache 1.3.19


Anon
04-30-2001, 08:12 PM
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

Anon
05-01-2001, 07:17 AM
Well, first of all, either you do the first or the second option as far as the apache module or the cgi. i.e. Either do this:

LoadModule php4_module D:/WebApp/php4/sapi/php4apache.dll
AddType application/x-httpd-php .php4

OR, you can use the php cgi:

ScriptAlias /php4/ "D:/WebApp/php4/"
Action application/x-httpd-php4 "/php4/php.exe"
AddType application/x-httpd-php4 .php4

Seems to be trying to execute both. Try one or the other.

Chris King

Anon
12-07-2001, 05:39 AM
HI,

I installed PHP 4.04lp1 in RedHat Linux 6.0,

Wht steps need to cahnges in APache config file. Actually i did some changes but i am getting code in browser.

rgds
Umesh C Joshi