PDA

View Full Version : Apache2 with latest php4.x


Squintz
12-30-2002, 07:41 PM
Im trying to install php with the apache2 and i have added the following to the http config file in apache


LoadModule php4_module c:/Program Files/PHP/sapi/php4apache2.dll
AddType application/x-httpd-php .php


for somereason when i restart apache it get erros and wont restart... i have check and th dll's are there

does anyone have any step by step tuts on installing this on a local machine... I'v done it with the older version but cant remember how i did it...

Im running XP...

Squintz
12-30-2002, 08:34 PM
I also tried apache 1.3.x and cant figure it out with it either

firepages
12-31-2002, 01:35 AM
that is fine for the httpd.conf.. what are the errors you are getting ?

if its along the lines of apache 'can not find the specified module' (and mentioning PHP) try copying the files

c:/Program Files/PHP/php4ts.dll & c:/Program Files/PHP/php4ts.lib
to
c:/Program Files/PHP/sapi/php4ts.dll (& php4ts.lib)

+ copy the php.ini-dist from the php directory to c:\winnt(or windows)\php.ini

if it still does not work let us know what the errors are

Squintz
12-31-2002, 12:28 PM
I doubled checked and those files are in the right folders... The error ig get with apache 1.3 is

LoadModule takes 2 paramaters Module Name and Name of shared object file to load it from

ad the error i get with apache 2 is generic but it says

The requested operation has failed...

i only get thos errors whe i use LoadModule...


Thanx for all you help!