Click to See Complete Forum and Search --> : Problem Installing PHP under windows


shimul77
12-04-2001, 03:13 AM
Hello,
I have installed PHP4 under windows 98 and i have also installed Apache. I configured as it is described in the link http://www.thesitewizard.com/archive/php4install.shtml

But i got the below error message:

Syntax error on line 193 of c:/program files/apache group/apache/conf/httpd.conf
:
Cannot load c:/program files/apache group/apache/modules/php4apache.dll into ser
ver: (1157) One of the library files needed to run this application cannot be fo
und:
I copied the file there and make changes as necessary...Still it's not working.

Please help me regarding this matter.

Thank you.

Shimul

Anon
12-04-2001, 03:46 AM
This is pretty much FAQ. First of all, try two things:

1) check that you have quotes around the path
2) copy the dll into some other directory and check whether its working from there

Anon
12-04-2001, 05:02 AM
I tried both of the solutions u mentioned..But it gave me the same error message.

Is there any other solution?

Thanx.

Shimul

Anon
12-04-2001, 09:22 PM
Check if you've copied php4ts.dll in your windows\system folder...

Anon
12-04-2001, 11:56 PM
Yes I copied it correctly and I tried with all known solutions.

ame12
12-05-2001, 08:46 AM
Try BadBlue, see the quick start PHP page at
http://badblue.com/helpphps.htm - it's about a 200K download to a single folder and VERY easy.

mithril
12-06-2001, 04:53 AM
What version of Apache? There should be a sub-folder in the apache root directory called modules (eg. c:\apache\modules). Copy php4apache.dll into that folder and change the LoadModule directive for PHP in httpd.conf to the following:

  LoadModule php4_module modules/php4apache.dll

Try to restart Apache, it should have worked itself out. Typically I try to avoid installing servers/languages into C:\Program Files. The longer paths (especially those with spaces) tend to make life more difficult than necessary.

Also, for the time being, make sure you're not loading any additional extensions (ie. extension=php_*.dll) in php.ini. Some of them can occasionally cause mod_php to bork on Apache. Once you've got'er up and running you can play with loading the additional extensions.

-geoff

Anon
12-19-2001, 12:46 AM
Thanks.