From owner-freebsd-questions@FreeBSD.ORG Wed Oct 31 17:22:41 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 24D02712 for ; Wed, 31 Oct 2012 17:22:41 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) by mx1.freebsd.org (Postfix) with ESMTP id CB37E8FC15 for ; Wed, 31 Oct 2012 17:22:40 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TTbzq-000660-8s for freebsd-questions@freebsd.org; Wed, 31 Oct 2012 18:22:30 +0100 Received: from pool-173-79-84-117.washdc.fios.verizon.net ([173.79.84.117]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 31 Oct 2012 18:22:30 +0100 Received: from nightrecon by pool-173-79-84-117.washdc.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 31 Oct 2012 18:22:30 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Michael Powell Subject: Re: Famp Server Date: Wed, 31 Oct 2012 13:22:15 -0400 Lines: 28 Message-ID: References: <20121030152853.ff5d52a4.freebsd@edvax.de> <248249977.5322317.1351609517371.JavaMail.root@cds005.dcs.int.inet> <1351678532.27612.YahooMailNeo@web162305.mail.bf1.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pool-173-79-84-117.washdc.fios.verizon.net X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: nightrecon@hotmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Oct 2012 17:22:41 -0000 Hamisi Jabe wrote: > i started installing apache22 and it worked, then i installed mysql it > worked fine, also when i installed php5 it worked fine too but when i > browse php file it displays the codes not the information like i created a > php file to display the current settings in the > /usr/local/www/apache22/data directory > > i did everything as root > > http://www.iceflatline.com/2011/11/how-to-install-apache-mysql-php-and- phpmyadmin-on-freebsd/ > check this tutorial which i used to configure the famp on my server > [snip] Under the section in you httpd.conf try adding: AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps and restart Apache. Also double check that the Apache PHP module was installed when you built PHP. There will be a line like the following: LoadModule php5_module libexec/apache22/libphp5.so -Mike