Hey, all,
I am having a very hard time setting up phpwiki.
I am using php-1.3.11_rc3.
My goal is to create an access-controlled wiki.
Here is my list of configuration desires:
* require sign-in to read and edit pages
* use the MySQL DB for everything (auth, pages, etc.)
* create different groups with different levels of page access
(i.e. finance can access financial pages, engineering can access eng
pages, ops can access all pages, etc.)
On a Fedora Core3 installation, I untarred phpwiki in my /var/www/html/
directory, and created a symlink pwiki that points to it (to take the
version number out of the URL). so far, all is well.
Upon pointing my web browser at /pwiki, I am presented with the
configurator.php. I went through the settings and chose what seemed
appropriate.
Upon submission, configurator.php claimed the config file could not be
written. I checked the path it was trying to write to, and the httpd
process has write permission to that directory, so I'm not sure why the
write failed. (the dir was set mode 777 for installation.)
Anyway, I copied the config file into place, and loaded the front page
(/pwiki). It asked me for a login, which failed. I went back to the
configurator and was presented with an htaccss-style login, which also
failed.
I discovered that the configurator was checking ENCRYPTED_PASSWORD while
the config option was ENCRYPTED_PASSWD (so I filed a bug), fixed it and
went on.
I found that the DB had not been created in mysql for me.
I created the DB, then loaded the default tables by running
mysql -uroot -pxxx phpwiki < schemas/mysql-initialize.sql
I added the mysql user and password so the wiki could access the DB.
I could log in!
Session persistence seems to be broken though - I have to signin
whenever I follow a wiki link, i.e. in between every page view. After
a reboot of the computer, this symptom went away. It could have been
conflicting cookies between two phpwikis... I have another (older) one
installed on my network.
I don't know how to create a new user or group. I tried inserting one
by hand into the users table, but that both seemed like a bad idea and
it didn't work...
I tried just entering a new username in the login field, and got this
page in result:
> Fatal Error:
> lib/WikiDB/backend/PearDB.php:1014: Error[256]: wikidb_backend_peardb_mysql: fatal database error
> * DB Error: unknown error
> * ( [nativecode=1065 ** Query was empty])
> *
> lib/WikiUser/PearDb.php:116: Warning[2]: sprintf(): Too few arguments
> Fatal PhpWiki Error
> lib/WikiDB/backend/PearDB.php:1014: Error[256]: wikidb_backend_peardb_mysql: fatal database error
> * DB Error: unknown error
> * ( [nativecode=1065 ** Query was empty])
I'm a little confused as to the state of the authentication stuff -
there seems to be a number of contradictory documents, and some of th
edocuments reference config variables not present in the code, etc. It
definately seems as though it's partially there - if there is a working
config I could use, I would be happy to do that. If I may contribute in
some small way, I would love to, but I'm not much of a php programmer.
I've attached my config.ini file
Do any of you have suggestions?
Thanks,
-ben
--
Ben Hartshorne
email: be...@ha...
http://ben.hartshorne.net
|