PHP and Apache on Windows xp

Deadnala

Fledgling Freddie
Joined
Jan 3, 2004
Messages
678
Ofcours i have pro hosting with php and sql support etc but i want to run the apache webserver with php on my local pc for devolepment use so i can test local etc

For apache, i installed the latest version from the official site and seems to work propper like it should...

Now i install php, allso the latest version from its original site. I folow all the instructions like they describe in the install file. If i restart my apache it wont start anymore.

I tested if the php runs, heres the commandprompt sample:

C:\PHP>php -v
PHP 4.3.5 (cgi-fcgi) (built: Mar 25 2004 15:20:43)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

If i try to run apache this hapens..

C:\Program Files\Apache Group\Apache2\bin>apache
Syntax error on line 176 of C:/Program Files/Apache Group/Apache2/conf/httpd.conf:
Cannot load C:/PHP/sapi/php4apache.dll into server: Kan opgegeven module niet vinden.

you think ofc the file is missing, but look here...

C:\PHP\sapi>dir php4apache.dll
Het volume in station C heeft geen naam.
Het volumenummer is 94B4-D8A0

Map van C:\PHP\sapi

25/03/2004 15:33 28.672 php4apache.dll
1 bestand(en) 28.672 bytes
0 map(pen) 24.548.986.880 bytes beschikbaar

I allso noticed the slashes (win = \ unix = /) but that is not realy the problem, i tryed with both but they are converted automatic to / in the output.

I been trying to get this work for 2 wheeks now and i read alot of forums manuals just name it. I am out of ideas now,i hope that maybe somone can help me here, tia.

Greetings
 

Shovel

Can't get enough of FH
Joined
Dec 22, 2003
Messages
1,350
I have Apache and PHP running fine on WinXP here (mySQL too, thinking about it).

With Apache 2 I find it's much easier to set it up using the PHP apache Module, which you only get if you download the zipped version of PHP. From there you only need a couple of lines to get it working. I'll find you the relevant pages in the PHP doc for that.

http://www.php.net/manual/en/install.apache2.php#install.apache2.windows
Go down to example 3-8 (PHP as a module) and follow those instructions. I'll do you some copies of my httpd.conf and php.ini over the weekend if you like, I'm just in the process of moving back up north so I don't have the time to edit them for you right now.

Hope that helps though.

Ben

EDIT: It looks from your example text that you're trying to use the module version anyway, are you sure you've linked to the correct module DLL? There are two different ones: One for Apache 1.3 and one for Apache2.
The one you want is "php4apache2.dll". Not "php4Apache.dll".
 

Deadnala

Fledgling Freddie
Joined
Jan 3, 2004
Messages
678
you where right, i linked to the wrong dll but i still have the same problem..
thx for the fast reply

EDIT:
There was a new release of php just yesterday, i installed that etc. The problem remain :(

greetings
 

Stimpy

Fledgling Freddie
Joined
Dec 22, 2003
Messages
674
I'm not sure if you ever got this working but I started playing around with PHP today and if you just want a local server for testing purposes I'd recommend Reactor you just install it then you're ready to go, very simple just like me :clap:
 

Sar

Part of the furniture
Joined
Dec 22, 2003
Messages
2,140
http://www.easyphp.org/

Reactor's a little iffy - sometimes it'd work, others it wouldn't.

Easyphp (despite being in french (but there's an english pack available at Canowhoopass.com)) is by far the easiest - install and run.

It's allowed me, after tinkering with various packages and the three standalone packages (Apache/PHP/Mysql) to have my own web dev platform I can test on locally.

:)
 

Users who are viewing this thread

Top Bottom