Re: Apache error loading PHP

From: Date: Thu, 07 Nov 2002 17:43:05 +0000
Subject: Re: Apache error loading PHP
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-16782@lists.php.net to get a copy of this message
hi, i had similar problems. it seems, that the win32 distribution doesn't support apache2, altough there is a sapi module. it worked for me with the latest stable snap of php4 http://snaps.php.net ciao. by the way, it's right you need the php4apache2.dll not php4apache.dll --- jmr3@vianet.ca (Jmr) wrote in news:1103_1036687265@news.php.net: > Hello > > I too am getting an error launching apache 2.0.43 with the php 4.2.3 > module (not the CGI). I have Win98SE > > My command is this: > Apache.exe -w -f "C:\Program Files\Apache > Group\Apache2\conf\httpd.conf" -d "C:\Program Files\Apache > Group\Apache2\." > > The error is this: > Syntax error on line 978 of C:/Program Files/Apache > Group/Apache2/conf/httpd.conf: Cannot load F:/php/sapi/php4apache.dll > into server: One of the library files needed to run this application > cannot be found. > > Line 978 and on reads: > LoadModule php4_module "f:/php/sapi/php4apache.dll" > AddType application/x-httpd-php .php .php3 .phtml > AddType application/x-httpd-php-source .phps > > I have php4ts.dll in both the system and system32 directories (just in > case). I tried backslashes instead which lets apache load but php > won't work. > > I tried copying everything to my c: drive and updating the LoadModule > line to point to C instead of F. Same error. > > I even tried the command like this: > Apache.exe -w -f "C:\Progra~1\Apache~1\Apache2\conf\httpd.conf" -d > "C:\Progra~1\Apache~1\Apache2\." > > Same error. > > I tried the LoadModule line without quotes: Same error. > > There are currently 2 php4apache.dll files on my pc: > C:\php\sapi\php4apache.dll and F:\php\sapi\php4apache.dll > > There are no sapi directories under the apache directory. > apache only has mod_isapi files. > > I read on Mr Jacob's site that I should have put php2apache2.dll > instead. Upon trying this, I received the following error: > > APACHE.EXE: module > "c:\php4build\snap\sapi\apache2filter\sapi_apache2.c" is not > compatible with this version of Apache (found 20020628, need > 20020903). Please contact the vendor for the correct version. > > Under Editing your php.ini, Mr Jacob said: "Search for doc_root = and > change it to doc_root = H:\httpdocs where the path is the same as the > one you picked for your HTML files back in step one." My php.ini does > not have "doc_root" anywhere in it. I copied the php.ini-recommended. > The php.ini-dist file does contain doc_root. I tried both files but > the dll error still exits. > > Any idea what I can try next? > > Thanks > > John > jmr3 at vianet dot ca > > > > >

« previous php.windows (#16782) next »