From owner-freebsd-questions@FreeBSD.ORG Mon Jan 23 11:53:39 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 E8C76106566C for ; Mon, 23 Jan 2012 11:53:39 +0000 (UTC) (envelope-from hasse@thorshammare.org) Received: from smtprelay-b12.telenor.se (smtprelay-b12.telenor.se [62.127.194.21]) by mx1.freebsd.org (Postfix) with ESMTP id 6F2AE8FC17 for ; Mon, 23 Jan 2012 11:53:39 +0000 (UTC) Received: from ipb5.telenor.se (ipb5.telenor.se [195.54.127.168]) by smtprelay-b12.telenor.se (Postfix) with ESMTP id 40EC2C096 for ; Mon, 23 Jan 2012 12:24:48 +0100 (CET) X-SENDER-IP: [83.227.225.121] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvVAAE5DHU9T4+F5PGdsb2JhbAAoGoUJmi+ObRkBAQEBNzKBcgEBAQEDAQEBBRsFJggYFwEDAhYCAgQBAQECAiMDAgIZDgEFBAgDBwMJCAEBBAEHBwQBChIEh10GKaZykQWBL4JPhxKBFgSNP4UzlHY X-IronPort-AV: E=Sophos;i="4.71,555,1320620400"; d="scan'208";a="31147562" Received: from ua-83-227-225-121.cust.bredbandsbolaget.se (HELO odin.thorshammare.org) ([83.227.225.121]) by ipb5.telenor.se with ESMTP; 23 Jan 2012 12:24:48 +0100 Received: from Obah (obah [192.168.1.10]) by odin.thorshammare.org (8.14.5/8.14.5) with ESMTP id q0NBOlsA047686; Mon, 23 Jan 2012 12:24:48 +0100 (CET) (envelope-from hasse@thorshammare.org) From: "Hasse Hansson" To: "'Tim Kellers'" , References: <2f34586f-3b97-475f-9f38-a07465f175a5@li289-212> <4F1CB1F0.8050000@wallnet.com> In-Reply-To: <4F1CB1F0.8050000@wallnet.com> Date: Mon, 23 Jan 2012 12:24:36 +0100 Organization: The Valhalla Project Message-ID: <000701ccd9c1$99ffdea0$cdff9be0$@org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AczZaube8J4wLkWsSwuLbYmf7MzibQAVj6mg Content-Language: sv X-Virus-Scanned: clamav-milter 0.97.3 at mailhub.thorshammare.org X-Virus-Status: Clean Cc: Subject: SV: php5 port seems broken X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Jan 2012 11:53:40 -0000 -----Oprindelig meddelelse----- Fra: owner-freebsd-questions@freebsd.org = [mailto:owner-freebsd-questions@freebsd.org] P=C3=A5 vegne af Tim = Kellers Sendt: den 23 januari 2012 02:04 Til: freebsd-questions@freebsd.org Emne: Re: php5 port seems broken On 1/22/12 7:50 PM, 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. > > Any thoughts/hits/suggestions from here? > > thanks > tim > > > > > ----- Original Message ----- > From: "RW" > To: freebsd-questions@freebsd.org > Sent: Sunday, January 22, 2012 7:07:21 PM > Subject: Re: php5 port seems broken > > On Sun, 22 Jan 2012 18:01:29 -0500 > Tim Kellers wrote: > >> On 1/22/12 5:35 PM, Tim Dunphy wrote: >>> Hello list, >>> >>> I'm attempting to install php5 from my ports tree. I've attempted = >>> the latest version ( 5.3.9 located in /usr/ports/lang/php5) and the=20 >>> 'latest stable' (5.2.17 located in /usr/ports/lang/php52). The=20 >>> result is pretty much the same: >>> suhosin-patch-5.3.9-0.9.10.patch.gz. =3D=3D=3D> Giving up on = fetching >>> files: php-5.3.9.tar.bz2 Make sure the Makefile and distinfo file >>> (/usr/ports/lang/php5/distinfo) are up to date. If you are=20 >>> absolutely sure you want to override this check, type "make=20 >>> NO_CHECKSUM=3Dyes [other args]". *** Error code 1 >>> >> I just portupgraded my php5 this morning and I was able to fetch the=20 >> distfile without trouble. It might just be a partially dled file and = >> a checksum mismatch. > if you do a "make checksum" it will download the file or resume a=20 > partial download before checking the hash. > > >> You can try (as root) >> rm -rf /usr/ports/distfiles/php-5.3.9.tar.bz2 >> >> and cd /usr/ports/lang/php5&& make clean&& make install clean > or make distclean > >> If that gets you past the checksum error, you should be able to build = >> it successfully. > Probably the ports tree needs to be updated to pick-up an updated hash = > value. > _______________________________________________ > freebsd-questions@freebsd.org mailing list=20 > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to = "freebsd-questions-unsubscribe@freebsd.org" > _______________________________________________ > freebsd-questions@freebsd.org mailing list=20 > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to = "freebsd-questions-unsubscribe@freebsd.org" > > Did you out this in httpd.conf? from pkg-message.mod: *************************************************************** Make sure index.php is part of your DirectoryIndex. You should add the following to your Apache configuration file: AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps *************************************************************** Tim Kellers _______________________________________________ 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" [>] ----------------------------------------------------- And have a look at /usr/ports/lang/php5-extentions An easy to follow step by step tutorial = http://www.unixmen.com/how-to-install-apache-mysql-php-phpmyadmin-in-free= bsd/ G'luck Hasse