I have already done that. By doing that, the only difference is that when I put index.php in the browser, it asks me to download those files instead of automatically parsing them. However, when I remove those lines, I get them as .html files.
-----Original Message----- From: lveax [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 22, 2006 6:46 AM To: Muhammad Omer Iqbal Cc: [EMAIL PROTECTED] Subject: Re: Installing Php5 on Apache2.2 (Freebsd 6.1) On 8/22/06, Muhammad Omer Iqbal <[EMAIL PROTECTED]> wrote: > Thanks. I tried precisely this, and it worked fine. However, what I am > seeing now is that I have index.php, but it is not automatically > rendered by Apache. And when I put it in browser (lets say > http://localhost/index.php), php is not understood, and it is just parsed as a .html file. > you need add the 2 lines below into the httpd.conf: AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps p.s.(by default httpd.conf is in /usr/local/etc/apache22/httpd.conf) > Just letting you know the status. I will be sending this to the > questions mailing list. > > Best Wishes, > Omer > > > -----Original Message----- > From: lveax [mailto:[EMAIL PROTECTED] > Sent: Monday, August 21, 2006 11:55 PM > To: Muhammad Omer Iqbal > Subject: Re: Installing Php5 on Apache2.2 (Freebsd 6.1) > > On 8/22/06, Muhammad Omer Iqbal <[EMAIL PROTECTED]> wrote: > > Hi, > > (Please include me in the reply as I am not subscribed to this > > list.) > > > > I am trying to use Ports to install php5 on top of Apache 2.2. > > However, when > > > > I do pkg_add, it says that the prereq Apache 1.3 is not installed. I > > also tried forcing it (using -f), but even then it did not seem to > > have installed > > > > Php5 properly. > > > > I tried this: > > cd /usr/ports/lang/php5 > > pkg_add php5 > > > > That did not work. > > to install a port you need to use: > #make > #make install > > you may need to read the handbook: > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-using. > html > > > > > Then I ftp-ed to <ftp://ftp.freebsd.org> ftp.freebsd.org and > > downloaded the tbz file from the same location (/ports/lang/php5) > > and did pkg_add with that file name as parameter. Is that the right > > thing to do? > > > > After I did that, I got the error that I explained above (i.e. > > Apache > > 1.3 not installed) > > > > As you might imagine, I am pretty new to FreeBSD. > > > > Thanks, > > Omer > > > > > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to > "[EMAIL PROTECTED]" > > > > _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"