Offtopic - PHP4 Install on Win32/Apache

NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Forum rules
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Locked
Kefka

Offtopic - PHP4 Install on Win32/Apache

Post by Kefka »

Hi.. this is offtopic, but I am interested in setting up php4 so i can create some forums for my website. I am running Windows 2000 and Apache 2.x.
I want to load it as a Module. In the installation instructions, it says to add these two lines to my httpd.conf file:

LoadModule php4_module d:/progra~1/php/sapi/php4apache.dll
AddType application/x-httpd-php .php .phtml

However, when i add those lines, I get this message when I run 'Test Configuration':

Syntax error on line 139 of D:/Program Files/Apache Group/Apache2/conf/httpd.conf:
LoadModule takes two arguments, a module name and the name of a shared object file to load it from

That line refers to the LoadModule php4_module...... line above, not the AddType... line.

I've tried using both Program Files and progra~1 so that truncated paths isn't a problem.. and i've tried both forward and backslashes.. still comes up with the error. Any ideas? There isn't a manual for setting php4 up with version 2.x of apache.. only 1.3.x

-Kefka
Kefka

Re: Offtopic - PHP4 Install on Win32/Apache

Post by Kefka »

New info.. i put quotes around the path in the LoadModule line.. now it is saying this:

Syntax error on line 926 of D:/Program Files/Apache Group/Apache2/conf/httpd.conf:
Cannot load D:/php/sapi/php4apache.dll into server: The specified module could not be found.

This is the more up-to-date situation...

-Kefka
Kefka

Re: Offtopic - PHP4 Install on Win32/Apache

Post by Kefka »

I also moved the php directory to d:\php and changed all the path info accordly.. and moved those lines to the end of my httpd.conf file..

-Kefka
Kefka

Re: Offtopic - PHP4 Install on Win32/Apache

Post by Kefka »

Sorry for the multiple posts.. I got it working now.. i decided to run it using ScriptAlias instead of a Module..

-Kefka
Locked