Re: [PHP] Installing PHP4 -- Stumped...


Subject: Re: [PHP] Installing PHP4 -- Stumped...
From: Aaron Sinclair (webmaster@mercyships.org.nz)
Date: Wed Sep 13 2000 - 01:15:09 MDT


> From: Rasmus Lerdorf <rasmus@linuxcare.com>
> Date: Tue, 12 Sep 2000 19:20:42 -0700 (PDT)

>> I've just finished installing PHP4, including a recompile of Apache.
>> I followed the instructions from the PHP web site pretty closely and
>> Apache is complaining at startup:
>>
>> "Syntax error at line 208 of /etc/httpd/conf/httpd.conf:
>> Invalid command 'LoadModule' , perhaps mis-spelled or defined by a
>> module not included in the server configuration"
>>
>> Line 208 in this case refers to the first "LoadModule" line of the
>> httpd.conf file. I tried commenting out several successive lines, but
>> the error just moved down to the next line, 209, 210, 211 etc...
>>
>> I think what I have here is a slightly more fundamental problem, but
>> as a newbie, I'm not sure what it is...
>>
>> A little more info...
>>
>> In my ./configure line for apache, I specified:
>>
>> ./configure --prefix=/home/httpd --with-layout=RedHat
>> --activate-module=src/modules/php4/libphp4.a
>
> This links PHP into Apache as a static module and thus you do not need a
> LoadModule line in your httpd.conf.
>
> -Rasmus

You will need
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php
in your http.conf though.
 
-Aaron

>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net



This archive was generated by hypermail 2a24 : Wed Sep 13 2000 - 01:21:22 MDT