From: Antony S. <Ant...@ph...> - 2009-09-06 13:02:35
|
Hi. I'm trying to use PHPwiki on a Debian Etch machine and having problems with authentication. It's Debian Etch (which I can't upgrade to Lenny for unrelated hardware reasons), which gives me PHPwiki version 1.3.12p3-5etch1. I'm using Apache 1.3.34, and MySQL 5.0.32 as the backend database, and it's a fresh install of the phpwiki package, with only the changes noted below. I have two problems: 1. I want to operate this Wiki so that only authorised users can access it (both for reading and for writing) - it's basically a collaborative development tool which needs to be on the Internet to allow access for diversely located people, but we don't want it to be wide open and publicly visible or editable. Therefore I have followed the instructions in config.ini to require passwords for login: ; True User Authentication: ; To require user passwords: ; ALLOW_ANON_USER = false ; ALLOW_ANON_EDIT = false ; ALLOW_BOGO_LOGIN = false, ; ALLOW_USER_PASSWORDS = true. ; Otherwise any anon or bogo user might login without any or a wrong password. I have set all four variable to the required values and restarted Apache, and yet it is still possible to log in with a random username and no password (ie: a Bogo login). How do I get the functionality as documented - True User Authentication? Do I need to reset / reconfigure / restart something else after changing the config.ini file? 2. I cannot create an Admin user and log in as such. If I edit /etc/phpwiki/config.ini and set: ADMIN_USER = Admin ADMIN_PASSWD = Admin (and restart Apache afterwards just in case) then when I go to the URL of my Wiki site, I now get: Fatal Error: lib/IniConfig.php:601: Error: ADMIN_USER may not be empty. Please update your configuration. lib/IniConfig.php:221: Notice: missing config setting for ADMIN_USER (...repeated 2 times) lib/IniConfig.php:601: Error: ADMIN_USER may not be empty. Please update your configuration. So, in config.ini, I have ADMIN_USER set, therefore this error message makes no sense. What should I check instead? I hope someone can help with either / both of these problems. Please let me know if further data on the setup would be helpful. Regards, Antony Stone. -- Most people are aware that the Universe is big. - Paul Davies, Professor of Theoretical Physics Please reply to the list; please don't CC me. |