LoadModule libexec/libphp4.so (or whatever the php module is called) AddType application/x-httpd-php .php
and, optionally,
AddType application/x-httpd-php-source .phps
Hope that helps. I'm not sure what Shawn is talking about. I'm running gentoo, but I would still prefer to compile apache+php from source rather than portage.
Shawn wrote:
Getting PHP running with Apache requires you to make a change to the config files, so that Apache knows to load the mod_php module when it starts up.
Put this line in your /etc/conf/apache2 file (on a Gentoo server at least - might be different on other distros)
APACHE2_OPTS="-D PHP4"
(If you need SSL support, then you would also have a "-D SSL")
you'll have to restart Apache for the change to take effect. You might also need to add the mod_php to your apache2.conf file (/etc/apache2/conf/apache2.conf on my server).
As for reading your old apache .configure info, if you can get php running before you upgrade Apache, then you can load a php page into your browser with the following line in it:
<?php phpinfo(); ?>
This will display what options PHP has access to, and down near the bottom (or is it the top?) of the page will be the .configure information for Apache.
HTH
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Nathan Sent: Thursday, April 08, 2004 1:37 AM To: CLUG General Subject: [clug-talk] wanting to install apache 2.0 and php 4.3.5
./configure --enable-so --prefix=/usr/local/apache2 ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --enable-ftp
those are the config lines i used to try and install apache 2.0 and php 4.3.5
i got apache running, but it wouldn't use php at all, or seem to find it.
and i'm trying to load php, the 'dynamic' way, so i don't have to recompile apache, each time i upgrade php.
running yellowdog linux 2.3
also, is there a way to have the ./configure script for apache, 'look' at my old settings for apache 1.3, and use the settings it can to setup the new server?
thanks.
_______________________________________________ clug-talk mailing list [EMAIL PROTECTED] http://clug.ca/mailman/listinfo/clug-talk_clug.ca
_______________________________________________ clug-talk mailing list [EMAIL PROTECTED] http://clug.ca/mailman/listinfo/clug-talk_clug.ca
-- Why am I scared of Windows? Let's just say I will be glad I have my Knoppix CD.
_______________________________________________ clug-talk mailing list [EMAIL PROTECTED] http://clug.ca/mailman/listinfo/clug-talk_clug.ca

