Not logged in. · Lost password · Register
Forum: General Help and Support Installation and Configuration RSS
Dokuwiki doesn't work with .htaccess
Avatar
Lucifiel #1
Member since Jul 2007 · 6 posts
Group memberships: Members
Show profile · Link to this post
Subject: Dokuwiki doesn't work with .htaccess
Hi, I'm a newbie webmaster who recently tried setting up Dokuwiki on a remote FreeBSD webserver.

See, the installation of Dokuwiki went well. However, according to the Install page, I'd to modify php.ini to include a certain set of codes so the wiki could function quite well.

Well, my webhost doesn't allow access of php.ini, so I resorted to .htaccess. But now, the wiki doesn't work. "An error has occurred while handling your request. This error may be a result of a malfunctioning script or CGI application. Error 500 Internal Server Error (universe/.htaccess: php_flag takes two arguments, PHP Flag Modifier"

So I've tried commenting out certain lines, 1 at a time, in the .htaccess file like "RewriteEngine on" , "RewriteBase /universe": to see if I could try and figure out the issue. But I'm unable to cos I know very little about PHP and type of commands I can use in .htaccess. And those few lines weren't the cause anyways.

Anyone can give any tips on what's going wrong?

Thanks! :)
The author has attached one file to this post:
htaccess.txt 6.4 kBytes
You have no permission to open this file.
Avatar
ach (Moderator) #2
Member since May 2006 · 544 posts
Group memberships: Global Moderators, Members, Super Mods, Wiki Managers
Show profile · Link to this post
The error message states it quite clearly:
Quote by Lucifiel on 2009-07-09, 11:22:
php_flag takes two arguments

There is one line that has more than two arguments:
php_flag error_reporting  E_ALL & ~E_NOTICE

Just change it to:
php_flag error_reporting  'E_ALL & ~E_NOTICE'
Avatar
ach (Moderator) #3
Member since May 2006 · 544 posts
Group memberships: Global Moderators, Members, Super Mods, Wiki Managers
Show profile · Link to this post
In reply to post #1
Quote by Lucifiel on 2009-07-09, 11:22:
However, according to the Install page, I'd to modify php.ini to include a certain set of codes so the wiki could function quite well.

Did you have any problems before you added those lines to .htaccess? If no, there is normally no need to add them. (E.g. 'E_ALL & ~E_NOTICE' is the default value of error_reporting anyway.) If yes, you only need to add those lines that solve your problem.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please note the verification code from the picture into the text field next to it.
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20090606-dev, © 2003-8 by Yves Goergen
Current time: 2010-03-21, 21:04:27 (UTC +01:00)
WikiForumIRCBugsGitXRefTranslate