install issues

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
User avatar
Sevengraff
Forum Contributor
Posts: 232
Joined: Thu Apr 25, 2002 9:34 pm
Location: California USA
Contact:

install issues

Post by Sevengraff »

Okay, I just went on a download spree and got apache 1.3.27, PHP 4.3.2, and MySQL 4.0.13. I'm running Windows 2000 and got Apache & MySQL to install without problem. I followd the install.txt file to get php to work, but im getting this error when trying to start apache:

Code: Select all

Syntax error on line 1023 of c:/program files/apache group/apache/conf/httpd.con
f:
LoadModule takes two arguments, a module name and the name of a shared object fi
le to load it from
Note the errors or messages above, and press the <ESC> key to exit.  24...
Here is what I added to httpd.conf:

Code: Select all

LoadModule php4_module c:/program files/php/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php
The first line there is 1023. I do have php4ts.dll in the same folder as php4apache.dll

Any ideas how I can make this work?
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Could it be having problems with the fact that 'program files' is two words? Try putting the path in quotes:

Code: Select all

LoadModule php4_module 'c:/program files/php/php4apache.dll'
Mac
User avatar
Sevengraff
Forum Contributor
Posts: 232
Joined: Thu Apr 25, 2002 9:34 pm
Location: California USA
Contact:

Post by Sevengraff »

Perfect, thanks a million!
Post Reply