Date: Tue, 22 Aug 2006 21:46:10 +0800 From: lveax <lveax.m@gmail.com> To: "Muhammad Omer Iqbal" <omer@omeriqbal.com> Cc: questions@freebsd.org Subject: Re: Installing Php5 on Apache2.2 (Freebsd 6.1) Message-ID: <576dcbc20608220646v1753d2aewb0c6f0335e48f5ee@mail.gmail.com> In-Reply-To: <003f01c6c5ef$aedb96c0$0402a8c0@rakaposhi> References: <576dcbc20608212355o1652df6eob66c709ea06abcce@mail.gmail.com> <003f01c6c5ef$aedb96c0$0402a8c0@rakaposhi>
next in thread | previous in thread | raw e-mail | index | archive | help
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?576dcbc20608220646v1753d2aewb0c6f0335e48f5ee>