From owner-freebsd-questions@FreeBSD.ORG Mon Oct 30 15:12:39 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 505C716A40F for ; Mon, 30 Oct 2006 15:12:39 +0000 (UTC) (envelope-from heli@mikestammer.com) Received: from smtp108.sbc.mail.mud.yahoo.com (smtp108.sbc.mail.mud.yahoo.com [68.142.198.207]) by mx1.FreeBSD.org (Postfix) with SMTP id 8F64643D46 for ; Mon, 30 Oct 2006 15:12:38 +0000 (GMT) (envelope-from heli@mikestammer.com) Received: (qmail 86613 invoked from network); 30 Oct 2006 15:12:37 -0000 Received: from unknown (HELO mail.mikestammer.com) (mikestammer@sbcglobal.net@70.131.98.204 with login) by smtp108.sbc.mail.mud.yahoo.com with SMTP; 30 Oct 2006 15:12:37 -0000 Received: from localhost (localhost [127.0.0.1]) by mail.mikestammer.com (Postfix) with ESMTP id BF62D24A for ; Mon, 30 Oct 2006 09:12:35 -0600 (CST) X-Virus-Scanned: amavisd-new at mikestammer.com Received: from mail.mikestammer.com ([127.0.0.1]) by localhost (gondolin.middleearth.mikestammer.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WLq8y2i8SRED for ; Mon, 30 Oct 2006 09:12:30 -0600 (CST) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: eric) by mail.mikestammer.com (Postfix) with ESMTP id EB5924A for ; Mon, 30 Oct 2006 09:12:29 -0600 (CST) Message-ID: <4546165C.1070805@mikestammer.com> Date: Mon, 30 Oct 2006 09:12:28 -0600 From: Eric User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20061030034144.34478.qmail@web31814.mail.mud.yahoo.com> In-Reply-To: <20061030034144.34478.qmail@web31814.mail.mud.yahoo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: WordPress, Apache, modules, mod_rewrite - how to verify? 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, 30 Oct 2006 15:12:39 -0000 Nick wrote: > I've been looking on the web for hours but haven't found any help, though of asking on some forums when I suddenly remembered! There's freebsd-questions!! > > Anyway, I'm a MS SQL Server guy, trying to mess around with FreeBSD at home. I've managed to install 6.1, CVSup, xorg, KDE, Apache 1.3. I haven't touched this box for a while due to my work schedule, now I'm trying to pick up where I left off... I just install ed WordPress from ports, trying to use it to learn PHP and MySQL. (At work, I'm almost 100% SQL Server only! I'm hoping to change to a Linux / Oracle, Data Warehouse type of position.... but outside of work, I would like to learn some PHP, Perl and MySQL... may be start a little side web biz or something...) > > So, main question: > > WordPress requires PHP 4 and MySQL 3 or later, and optional mod_rewrite. How do I verify if these are installed? > > I used "pkg_version -v" to check my installed ports' versions, I have these: > apache-1.3.37_1 > mod_perl-1.29_1 > mysql-client-5.1.11 > perl-5.8.8 > php5-5.1.4 > php5-mysql-5.1.4 > php5-pcre-5.1.4 > php5-xml-5.1.4 > wordpress-2.0.4_1,1 > > I think I still need to install mod_php and mod_rewrite, but I can't see them in /usr/ports/www > > How do I verify that php, MySql and mod_rewrite are install and function properly in Apache? > > Thanks! > > Nick make a file called pinfo.php in your web servers data directory root (/usr/local/www/data by default) put this in it: save it and go to: http://yourURL.com/pinfo.php and read away that will dump all php related info. make sure you install the suhosin patches against PHP and/or use the extension Eric