Page 1 of 1

Evilwalrus PHP Installation Article

Posted: Sun May 19, 2002 9:19 pm
by icelord
First off..... this article is the most amazing and simple article that I have found on the net for installing PHP server. My hat goes off to Andrew for this.
However........ I have a small problem with the last step and would appreciate some help :D

I have installed MySQL and Apache server fine. Apache ran fine until I tried installing PHP, and now Apache does not want to start either.
btw/ I am running Windows XP Pro (for the sake of reference)

Apache is installed in dir c:/Apache
PHP is installed in dir c:/Apache/PHP (just like in the tutorial)

I have placed php4ts into c:\windows\system32 (btw it's name was not php4ts.dll but php4ts --> for some reason windows sees it as a LIB file)

Also, php.ini-dist was renamed to php.ini and placed in c:\windows\

httpd.conf file was configured as follows.....

(stuff inserted below LoadModule list)
LoadModule php4_module c:/apache/php/sapi/php4apache.dll
AddType application/x-httpd-php .php .php3
AddType application/x-httpd-php-source .phps
(stuff inserted below AddModule list)
AddModule mod_php4.c

Also -> DirectoryIndex was made into index.php

Here is the error that I receive when I run the Apache Server:

"Syntax error on line 193 of c:/apache/apache/conf/httpd.conf:
Cannot load c:/apache/php/sapi/php4apache.dll into server: (126) The specified module could not be found:"


So if anyone know how to fix this, or if anyone has had this problem with Windows XP, please help....... :wink:

Posted: Sun May 19, 2002 9:49 pm
by volka
is it apache 2? (if, load apache2filter.dll)

I do not copy anything but php.ini to \winnt. Instead I copy all the .dlls (sapi,extensions...everything I need) in a directory and add this one to the system path-var

Posted: Sun May 19, 2002 10:12 pm
by fatal
icelord change this in the 'httpd.confg' file:
Change this:
LoadModule php4_module c:/apache/php/sapi/php4apache.dll

To This:
LoadModule php4_module /php/sapi/php4apache.dll

I had the exact same problem.

Posted: Mon May 20, 2002 1:00 am
by icelord
Thank Fatal........

but it didn't help......

now it told me that /php/sapi/php4apache.dll could not be found.

i have also tried to remove the "/" before "php" but that didn't work either......

any other suggestions?

PS.
I am running Apache 1.3.22 and PHP 4.1.2

Posted: Mon May 20, 2002 1:21 am
by icelord
ROFL

never mind......

your thing worked.... but i put php4ts.lib into my windows/system32 folder, instead of php4ts.dll......

once i changed that and i made my link reference to:
c:/apache/php/sapi/php4apache.dll
everything was fine.....

thanks a lot for all your help.

Ice.