Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 70579 - Can't install/configure phpWiki with MySQL
Summary: Can't install/configure phpWiki with MySQL
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-09 07:27 UTC by Ben Fowler
Modified: 2005-07-07 09:41 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Fowler 2004-11-09 07:27:49 UTC
I have got stuck following the instructions left at
/usr/share/doc/phpwiki-1.3.10/INSTALL.mysql
(which does admit that: FIXME: these instructions are slightly broken.)
in Section 3, where the command to enter is specified as
mysql -uuser -ppassword phpwiki < schemas/mysql.sql

I cannot find the file schemas/mysql.sql

Neither can I find anything that would do the trick. More importantly,
I cannot find any source of documentation/HOWTO for phpWiki and Gentoo.

Grateful for any advice. Is there a better choice of Wiki on Gentoo?
Though MediaWiki and MoinMoin seem also to have much support, phpWiki 
is consistently praised on the forums.

Reproducible: Always
Steps to Reproduce:
1. emerge phpWiki
2. Locate docs in /usr/share/doc
3. Follow instructions

Actual Results:  
Could not continue past Section 3

Expected Results:  
Probably the ebuild should have installed a directory of schemas, and possibly
the work around is to use db/dba
Comment 1 Ben Fowler 2004-11-10 08:11:36 UTC
It is possible that the file concerned is located at
/usr/share/doc/phpwiki-1.3.10/mysql.sql.gz

Whilst this might work around my immediate problem, I don't think that it is 
a particularly good thing
Comment 2 Ben Fowler 2004-11-10 08:20:35 UTC
Also the MySQL wikiuser may need DROP and CREATE privileges (at least 
temporarily), videlicet:

mysql> SHOW GRANTS FOR wikiuser@localhost;
+----------------------------------------------------------------------------------------------------------+
| Grants for wikiuser@localhost                                                                            |
+----------------------------------------------------------------------------------------------------------+
| GRANT USAGE ON *.* TO 'wikiuser'@'localhost' IDENTIFIED BY PASSWORD '74c221f946bc8d9a'                   |
| GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, LOCK TABLES ON `phpwiki`.* TO 'wikiuser'@'localhost' |
+----------------------------------------------------------------------------------------------------------+
2 rows in set (0.00 sec)
Comment 3 Renat Lumpau (RETIRED) gentoo-dev 2005-07-07 09:41:48 UTC
1. post-install instructions now mention the location of db schemas
2. Regarding DROP and CREATE privileges - please file a bug upstream