|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
PHP/Apache2 Install on Win2k
After having PHP installed with IIS5 on my Win2K server and having a few issues, I have now installed Apache2 web server.
I have run through the config instructions that come with the PHP/Windows download but I am now getting the following 2 error messages every time the Apache2 service tries to start... 1. The Apache service named reported the following error: >>> Syntax error on line 160 of C:/Program Files/Apache Group/Apache2/conf/httpd.conf: . 2. The Apache service named reported the following error: >>> Cannot load C:/php/sapi/php4apache.dll into server: The specified module could not be found. . Line 160 of my httpd.conf reads... LoadModule php4_module C:/php/sapi/php4apache.dll My PHP install dir is c:php so the path is correct and indeed the file exists. Has anyone experienced this problem and resolved? |
|
#2
|
|||
|
|||
|
RE: PHP/Apache2 Install on Win2k
the problem is that the instructions that come with the php distrubutions only cover installations for Apache 1.3.x and not the 2.0 versions
luckily for your (and me!) flashkit.com has a tutorial on how to do just that http://www.flashkit.com/tutorials/Backend/Installi-Jeffrey_-776/more4.shtml |
|
#3
|
|||
|
|||
|
RE: PHP/Apache2 Install on Win2k
oh forgot to mention one thing
in the tutorial, it mentions adding the line "LoadModule php4_module c:/PHP/experimental/apache2filter.dll" you should replace it with 'c:/PHP/sapi/php4apache2.dll' instead or wherever your php4apache2.dll file may be |
|
#4
|
|||
|
|||
|
RE: PHP/Apache2 Install on Win2k
thanks. That link you gave me won't work. Do you know of anywhere else I can get it?
|
|
#5
|
|||
|
|||
|
RE: PHP/Apache2 Install on Win2k
http://www.flashkit.com/tutorials/Backend/Installi-Jeffrey_-776/index.php
|
|
#6
|
|||
|
|||
|
RE: PHP/Apache2 Install on Win2k
i have the exact same problem as mhoward described.
i use apache 1.3.27 and php 4.2.3 on a win2k os, so has nothing to do with apahce2 as vonstroodl said. please help me out with this! -- psu |
|
#7
|
|||
|
|||
|
RE: PHP/Apache2 Install on Win2k
Copy your file /php/php4ts.dll to your /windows/system or /windows/system32 folder.
That worked for me. |
|
#8
|
|||
|
|||
|
RE: PHP/Apache2 Install on Win2k
From the install.txt file:
!! NOTE !! Whereever you load php4apache.dll from, php4apache.dll also needs the php4ts.dll also included in the PHP4 distribution. php4apache.dll depends on php4ts.dll which is loaded as soon as Apache loads php4apache.dll. If php4ts.dll can't be found, you usually get an error like (also see the "Problems?" section at the end of the file): Cannot load c:/php/sapi/php4apache.dll into server So where does php4ts.dll has to be to be properly loaded ? php4ts.dll is searched in the following order: 1) in the directory where apache.exe is start from 2) in the directory where php4apache.dll is loaded from 3) in your %SYSTEMROOT%System32, %SYSTEMROOT%system and %SYSTEMROOT% directory. Note: %SYSTEMROOT%System32 only applies to Windows NT/2000/XP) 4) in your whole %PATH% Note: What is %SYSTEMROOT% ? Depending on your Windows installation this may be for example c:winnt or C:windows Usually you would just copy it over to %SYSTEMROOT%System32. But if you want to have multiple PHP installations (for whatever reason) this is a bad idea. For this circumstance the safest thing is to let php4ts.dll reside in the same directory where php4apache.dll is loaded from (see point 2 above). |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Installation > PHP/Apache2 Install on Win2k |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|