From: Arthaey A. <ar...@gm...> - 2004-06-27 17:42:03
|
I accidentally sent this just to Bob, rather than the list. I figure this should continue being public, in case others have similar problems. Bob Apthorpe <apt...@cy...> wrote: > Welcome to the learning curve! :) > > hth Thank you for your quick, detailed, friendly, and very useful reply. It's nice to see that there are still people like you out on the 'net. :) I got Apache to execute PHP files. phpinfo() says it's version 4.3.3 -- I wonder why Apache has 4.3.2? Hopefully that won't be a problem. > and poking in ./lib/IniConfig.php gives a link to > ./config/config-default.ini; poking in ./index.php gives a link to > ./config/config.ini. Without a lot of rummaging, you wouldn't have found > this. It's semi-working -- at least I get the virgin page and the Crao theme seems fine. The wiki's running at: http://arthaey.mine.nu:8080/wiki/index.php/HomePage At the bottom of the homepage, it says: Fatal error: Call to a member function on a non-object in /home/arthaey/www/phpwiki/lib/Template.php(131) : eval()'d code on line 5 The offending line is in function printExpansion: eval('?>' . $this->_munge_input($this->_tmpl)); I don't know PHP (yet), though I do know Perl. The $this object is behaving in a non-object manner, or so the error message would have me believe. How should I fix this? Also, I tried clicking on the PageHistory button for the RecentChanges page, and got the following PHP warnings: lib/main.php:656: Notice[1024]: PageHistory: Cannot find action page lib/main.php:576: Notice[1024]: PageHistory: Unknown action I'm not sure where to begin with those errors, either. Finally, I've apparently messed up the options for user authentication. At the homepage, I'm signed in as "The PhpWiki programming team". Clicking sign out doesn't do anything. But if I go to RecentChanges, I'm suddenly not logged in at all. If I type in the ADMIN_USER name, it prompts me for my password, lets me log in, and gives me admin powers. If I go back to the homepage, I'm the PhpWiki programming team again. Return to RecentChanges, and I'm ItaniArthaey again. Ideally, I'd like to allow anonymous browsing, but require logging in to edit. Select lines from config/config.ini: ADMIN_USER = ItaniArthaey ADMIN_PASSWD = passencryptPassword ENCRYPTED_PASSWD = true DATABASE_TYPE = SQL DATABASE_PREFIX = DATABASE_DSN = "mysql://wiki:password@localhost(/var/lib/mysql/mysql.sock)/phpwiki" DATABASE_SESSION_TABLE = session DATABASE_DIRECTORY = /var/www/wikidb I did a mysql create phpwiki, like the INSTALL.mysql file said. Do I need to do something similar for DATABASE_DIRECTORY? (What is that even used for, and how is it different from the phpwiki database I already created?) ENABLE_USER_NEW = true ALLOW_ANON_USER = true ALLOW_ANON_EDIT = false ALLOW_BOGO_LOGIN = false; ALLOW_USER_PASSWORDS = true USER_AUTH_ORDER = "PersonalPage : Db" PASSWORD_LENGTH_MINIMUM = 2 USER_AUTH_POLICY = strict I'm pretty sure I'm going to have to edit these following settings sections, but I'm a bit confused by all the options. ; File authentication options ; Session Auth Do I need to uncomment most of the stuff in Session Auth? ; USER/PREFERENCE queries ; Update the user's preferences ; USERS/GROUPS queries How do the user pref options interact with file and session authentication? What are wiki groups good for? Let me know if you need to see any of my other file settings; I tried to pick out what was relevant, but obviously I'm new to this. :) Thanks for the help, -- AA |