From owner-freebsd-questions@FreeBSD.ORG Fri Oct 8 13:52:19 2004 Return-Path: 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 DED4516A4CE for ; Fri, 8 Oct 2004 13:52:19 +0000 (GMT) Received: from out001.verizon.net (out001pub.verizon.net [206.46.170.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7300E43D2D for ; Fri, 8 Oct 2004 13:52:19 +0000 (GMT) (envelope-from acurtis@ieee.org) Received: from [128.33.80.129] by out001.verizon.net (InterMail vM.5.01.06.06 201-253-122-130-106-20030910) with ESMTP id <20041008135219.STYC24594.out001.verizon.net@[128.33.80.129]> for ; Fri, 8 Oct 2004 08:52:19 -0500 Mime-Version: 1.0 (Apple Message framework v619) In-Reply-To: <41644861.1060000@wingfoot.org> References: <2D8BB15C7B5C214F81C32D3A83B3273601676FB9@idbexc01.americas.cpqcorp.net> <41644861.1060000@wingfoot.org> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <44A1FD0A-1931-11D9-A663-000A959EB894@ieee.org> Content-Transfer-Encoding: 7bit From: Alan Curtis Date: Fri, 8 Oct 2004 09:52:17 -0400 To: freebsd-questions@freebsd.org X-Mailer: Apple Mail (2.619) X-Authentication-Info: Submitted using SMTP AUTH at out001.verizon.net from [128.33.80.129] at Fri, 8 Oct 2004 08:52:18 -0500 Subject: Re: phpwiki X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Oct 2004 13:52:20 -0000 On Oct 6, 2004, at 3:32 PM, Glenn Sieb wrote: > Alan Curtis said the following on 10/6/2004 3:14 PM: > >> I installed php4-mysql. Is there more I have to do? > ?> does not indicate any mysql stuff and phpwiki still does not work. >> There is probably some option I have to set when compiling php? > > Did you restart Apache? > > I successfully installed the phpwiki port with mysql support. This is what I did. 1. installed the port from /usr/ports/www/phpwiki 2. copied /usr/local/www/data-dist/phpwiki to my html data directory 3. installed mysql server and client ports 4. installed php4-mysql port 5. used the instructions at /usr/local/share/doc/phpwiki/ and http://www.macdevcenter.com/pub/a/mac/2003/06/05/wiki.html to configure mysql 6. edited phpwiki/index.php to activate the mysql stuff 7. followed the instructions at http://phpwiki.sourceforge.net/phpwiki/FrequentlyAskedQuestions and added foreach ($_REQUEST as $k => $v) $$k = $v; if (isset($_SERVER['QUERY_STRING'])) $QUERY_STRING = $_SERVER['QUERY_STRING']; if (isset($_SERVER['PHP_AUTH_USER'])) $PHP_AUTH_USER = $_SERVER['PHP_AUTH_USER']; if (isset($_SERVER['PHP_AUTH_PW'])) $PHP_AUTH_PW = $_SERVER['PHP_AUTH_PW']; to the top of index.php and admin.php. 8. restarted Apache and it (finally) seems to work. A bit longer and more involved than advertised, but an interesting puzzle. Thanks for all the advice Alan