Evilwalrus PHP Installation Article

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
icelord
Forum Newbie
Posts: 8
Joined: Sun May 19, 2002 9:19 pm

Evilwalrus PHP Installation Article

Post 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:
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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
User avatar
fatal
Forum Contributor
Posts: 118
Joined: Sat Apr 20, 2002 10:47 am
Location: East Coast

Post 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.
icelord
Forum Newbie
Posts: 8
Joined: Sun May 19, 2002 9:19 pm

Post 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
icelord
Forum Newbie
Posts: 8
Joined: Sun May 19, 2002 9:19 pm

Post 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.
Post Reply