PDA

View Full Version : PHP not working with Apache on Win98


oracle128
March 12th, 2005, 04:06 AM
I've edited the httpd.conf file accordingly. I use exactly the same versions (Apache 2 and PHP 5) and configurations on my WinXP machine which works fine, but when trying to start Apache in console mode on Win 98 I get the "cannot load C:/php/php5apache2.dll into server: one of the library files needed to run this application cannot be found" message. Commenting out the php lines, the server otherwise loads fine (albeit only in console mode and not as a service-I'm guessing due to crappy old Win98 not supporting services properly/at all).

degsy
March 12th, 2005, 04:22 AM
Sorry to go simple, but does C:/php/php5apache2.dll exist?

What is the entry in http.conf?

oracle128
March 16th, 2005, 12:24 AM
Sorry for the late reply, my router got fried.
Yes the .dll does of course exist, and the conf lines are as follows:
LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
PHPIniDir "C:/php/"
But Apache spits it on that first line

degsy
March 16th, 2005, 03:23 AM
Where there any other errors or instructions?

http://www.mail-archive.com/php-install@lists.php.net/msg13413.html

Steven.Bentley
March 20th, 2005, 03:34 PM
As this is a Windows path you should be using backslashes ie c:\php\php5apache2.dll

degsy
March 20th, 2005, 04:04 PM
I though that too but my Apache1.3 & PHP4 is using a similar path with no problems.

oracle128
March 21st, 2005, 04:53 AM
Apache says it prefers forward slashes for paths, but I tried back slashes with the same problem. There are no other errors or problems. I'll try that solution from the link when I get home tonight and tell you how it goes.

oracle128
March 21st, 2005, 02:21 PM
OK I tried that linked solution. I didn't have the iconv.dll file at all, but I copied the php5ts.dll file to the apache\bin folder and it worked, thanks.

degsy
March 21st, 2005, 02:45 PM
cool :cool: