Date: Sun, 14 May 2006 04:50:50 -0300 From: Duane Whitty <duane@greenmeadow.ca> To: Maan Jee <maanjee@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: PHP not working Message-ID: <4466E15A.2050303@greenmeadow.ca> In-Reply-To: <2cd0a0da0605140042m1e89c38bw1f0c33ddb44569a8@mail.gmail.com> References: <2cd0a0da0605140042m1e89c38bw1f0c33ddb44569a8@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Maan Jee wrote: > Hello, > > I have installed Apache HTTP Server 2.20 and PHP 5. But when I want to > open > index.php file in the browser instead of getting the Output Html page, > I get > SAVE "index.php" file popup. > > What is the wrong, I have added these lines in httpd.conf > AddType application/x- httpd-php . php > AddType application/x- httpd-php-source . phps > > Thanks > > vj > _______________________________________________ > 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" > > > Hi, You need to add index.php to the DirectoryIndex line in /usr/local/etc/apache22/httpd.conf It should look like DirectoryIndex index.html index.php Hope this helps. Sincerely, Duane Whitty -- duane@greenmeadow.ca
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4466E15A.2050303>
