Date: Tue, 22 Aug 2006 07:21:15 -0700 From: "Muhammad Omer Iqbal" <omer@omeriqbal.com> To: "'lveax'" <lveax.m@gmail.com> Cc: questions@freebsd.org Subject: RE: Installing Php5 on Apache2.2 (Freebsd 6.1) Message-ID: <005101c6c5f6$3c1602e0$0402a8c0@rakaposhi> In-Reply-To: <576dcbc20608220646v1753d2aewb0c6f0335e48f5ee@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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:lveax.m@gmail.com] Sent: Tuesday, August 22, 2006 6:46 AM To: Muhammad Omer Iqbal Cc: questions@freebsd.org Subject: Re: Installing Php5 on Apache2.2 (Freebsd 6.1) On 8/22/06, Muhammad Omer Iqbal <omer@omeriqbal.com> 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:lveax.m@gmail.com] > 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 <omer@omeriqbal.com> 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 > "freebsd-questions-unsubscribe@freebsd.org" > > > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?005101c6c5f6$3c1602e0$0402a8c0>