From owner-freebsd-questions@FreeBSD.ORG Mon Jan 23 01:00:53 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 31F6B1065670 for ; Mon, 23 Jan 2012 01:00:53 +0000 (UTC) (envelope-from freebsd-questions@herveybayaustralia.com.au) Received: from mail.unitedinsong.com.au (mail.unitedinsong.com.au [150.101.178.33]) by mx1.freebsd.org (Postfix) with ESMTP id D3B5F8FC14 for ; Mon, 23 Jan 2012 01:00:52 +0000 (UTC) Received: from mail.unitedinsong.com.au (bell.herveybayaustralia.com.au [192.168.0.40]) by mail.unitedinsong.com.au (Postfix) with ESMTP id 4DA095C28 for ; Mon, 23 Jan 2012 11:13:24 +1000 (EST) Received: from laptop1.herveybayaustralia.com.au (laptop1.herveybayaustralia.com.au [192.168.0.179]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.unitedinsong.com.au (Postfix) with ESMTPSA id B24445C21 for ; Mon, 23 Jan 2012 11:13:23 +1000 (EST) Message-ID: <4F1CB057.9090706@herveybayaustralia.com.au> Date: Mon, 23 Jan 2012 10:56:55 +1000 From: Da Rock User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:7.0.1) Gecko/20111109 Thunderbird/7.0.1 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <2f34586f-3b97-475f-9f38-a07465f175a5@li289-212> In-Reply-To: <2f34586f-3b97-475f-9f38-a07465f175a5@li289-212> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: php5 port seems broken X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Jan 2012 01:00:53 -0000 On 01/23/12 10:50, Tim Dunphy wrote: > Hello again, > > Thanks for your input. Before attempting to install php on this machine I updated my ports tree with csvsup. But following the steps in this article helped me to get past this point. > > > http://icesquare.com/wordpress/freebsdproblem-to-update-php-port/ > > Which was basically: > > #sudo rm -Rf /var/db/portsnap/* > #sudo portsnap fetch extract > #sudo portsnap fetch update > #cd /usr/ports/distfiles/ > #sudo wget http://fi.php.net/distributions/php-5.3.9.tar.bz2 > #cd /usr/ports/lang/php5 > #sudo make > > > That was all I had to do. :) > > However I'm onto a new stumbling block, so if you're still tuned in I hope you don't mind if I bounce this off the list. > > It seems that Apache 2.2 is not recognizing PHP now that it's installed. > > If I go to a php test page in a web browser this is all I see: > > > // Show all information, defaults to INFO_ALL > phpinfo(); > > // Show just the module information. > // phpinfo(8) yields identical results. > phpinfo(INFO_MODULES); > > ?> > > > These are the contents of the file I am hitting: > > > // Show all information, defaults to INFO_ALL > phpinfo(); > > // Show just the module information. > // phpinfo(8) yields identical results. > phpinfo(INFO_MODULES); > > ?> > > > > I checked to see that in my main apache config file (httpd.conf) I have this line: > > > LoadModule php5_module libexec/apache22/libphp5.so > > And of course I've restarted apache after installing the php5 port. :) > > And since apache isn't even recognizing php at this point hitting the test page does not generate any errors in the error logs. Check your mimetypes definition for application/x-httpd-php and application/x-httpd-php-source (I think. cat ports/lang/php5/pkg-message for details)?