Re: phpwiki

2004-10-08 Thread Alan Curtis
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
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: phpwiki

2004-10-08 Thread Richard Lynch
Alan Curtis wrote:
 7. followed the instructions at
 http://phpwiki.sourceforge.net/phpwiki/FrequentlyAskedQuestions
 and added

 foreach ($_REQUEST as $k = $v) $$k = $v;

At this point, you might as well use .htaccess to turn register_globals
back ON for phpwiki, since you have effectively un-done the security of
turning register_globals OFF for this application...

Or fix the Wiki to *NOT* rely on register_globals in the first place.

You can find more info about this issue by searching on http://php.net for
register_globals

-- 
Like Music?
http://l-i-e.com/artists.htm

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: phpwiki

2004-10-07 Thread Alexandr
On Wed, Oct 06, 2004 at 02:26:45PM -0400, Alan Curtis wrote:
 I am trying to install the phpwiki port using mysql, following the 
 instructions in /usr/local/share/doc/phpwiki. I get to testing the 
 installation by loading http://localhost/phpwiki/index.php and I get 
 the error
 
 Fatal error: Call to undefined function: mysql_pconnect()
 
 Any suggestions?
 
 Alan
 
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

What PHP version you???

if PHP5 you must choose --with-mysql
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: phpwiki

2004-10-06 Thread Sheets, Jason (OZ CEEDR)
mysql_pconnect is MySQL functionality, make sure your PHP installation
has MySQL support.

You can find out by making a page named putting ?php phpinfo(); ? and
then visiting it in your web browser.

Jason



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:owner-freebsd-
 [EMAIL PROTECTED] On Behalf Of Alan Curtis
 Sent: Wednesday, October 06, 2004 12:27 PM
 To: [EMAIL PROTECTED]
 Subject: phpwiki
 
 I am trying to install the phpwiki port using mysql, following the
 instructions in /usr/local/share/doc/phpwiki. I get to testing the
 installation by loading http://localhost/phpwiki/index.php and I get
 the error
 
 Fatal error: Call to undefined function: mysql_pconnect()
 
 Any suggestions?
 
 Alan
 
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-
 [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: phpwiki

2004-10-06 Thread Alan Curtis
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?

Alan
On Oct 6, 2004, at 2:37 PM, Sheets, Jason (OZ CEEDR) wrote:
mysql_pconnect is MySQL functionality, make sure your PHP installation
has MySQL support.
You can find out by making a page named putting ?php phpinfo(); ? and
then visiting it in your web browser.
Jason

-Original Message-
From: [EMAIL PROTECTED] [mailto:owner-freebsd-
[EMAIL PROTECTED] On Behalf Of Alan Curtis
Sent: Wednesday, October 06, 2004 12:27 PM
To: [EMAIL PROTECTED]
Subject: phpwiki
I am trying to install the phpwiki port using mysql, following the
instructions in /usr/local/share/doc/phpwiki. I get to testing the
installation by loading http://localhost/phpwiki/index.php and I get
the error
Fatal error: Call to undefined function: mysql_pconnect()
Any suggestions?
Alan
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-
[EMAIL PROTECTED]

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: phpwiki

2004-10-06 Thread Glenn Sieb
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?
Best,
G.
--
They that can give up essential liberty to obtain a little temporary 
safety deserve neither liberty nor safety. 
 ~Benjamin Franklin, Historical Review of Pennsylvania, 1759

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: phpwiki

2004-10-06 Thread Sheets, Jason (OZ CEEDR)
Restart apache and make sure that the mysql extension is being loaded in
the php.ini file (phpinfo() gives you the path to php.ini, use the
extension directive to tell php to load a module).

Jason

 -Original Message-
 From: Alan Curtis [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, October 06, 2004 1:14 PM
 To: Sheets, Jason (OZ CEEDR)
 Cc: [EMAIL PROTECTED]
 Subject: Re: phpwiki
 
 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?
 
 Alan
 
 On Oct 6, 2004, at 2:37 PM, Sheets, Jason (OZ CEEDR) wrote:
 
  mysql_pconnect is MySQL functionality, make sure your PHP
installation
  has MySQL support.
 
  You can find out by making a page named putting ?php phpinfo(); ?
and
  then visiting it in your web browser.
 
  Jason
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:owner-freebsd-
  [EMAIL PROTECTED] On Behalf Of Alan Curtis
  Sent: Wednesday, October 06, 2004 12:27 PM
  To: [EMAIL PROTECTED]
  Subject: phpwiki
 
  I am trying to install the phpwiki port using mysql, following the
  instructions in /usr/local/share/doc/phpwiki. I get to testing the
  installation by loading http://localhost/phpwiki/index.php and I
get
  the error
 
  Fatal error: Call to undefined function: mysql_pconnect()
 
  Any suggestions?
 
  Alan
 
  ___
  [EMAIL PROTECTED] mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to freebsd-questions-
  [EMAIL PROTECTED]
 

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: phpwiki

2004-10-06 Thread Glenn Sieb
Sheets, Jason (OZ CEEDR) said the following on 10/6/2004 3:50 PM:
Restart apache and make sure that the mysql extension is being loaded in
the php.ini file (phpinfo() gives you the path to php.ini, use the
extension directive to tell php to load a module).
 

Actually--if you're using a new php port,  you have to comment out the 
extension directive in /usr/local/etc/php.ini and make sure it's enabled 
in /usr/local/etc/php/extensions.ini :-/ (I just went through this last 
night)

Best,
G.
--
They that can give up essential liberty to obtain a little temporary 
safety deserve neither liberty nor safety. 
 ~Benjamin Franklin, Historical Review of Pennsylvania, 1759

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]