Date: Fri, 8 Oct 2004 09:52:17 -0400 From: Alan Curtis <acurtis@ieee.org> To: freebsd-questions@freebsd.org Subject: Re: phpwiki Message-ID: <44A1FD0A-1931-11D9-A663-000A959EB894@ieee.org> In-Reply-To: <41644861.1060000@wingfoot.org> References: <2D8BB15C7B5C214F81C32D3A83B3273601676FB9@idbexc01.americas.cpqcorp.net> <EB7AA45A-17CB-11D9-897B-000A959EB894@ieee.org> <41644861.1060000@wingfoot.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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? <?php phpinfo(); >> ?> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44A1FD0A-1931-11D9-A663-000A959EB894>