Question
I am getting a 'mkdir /RegistrationApprovals: Permission denied' error when trying to use
TWikiRegistration and do not know what else to try.
I have installed TWiki Release 4.0.
The bin/configure script doesn't show errors.
Apache runs as user apache so I added apache to the twiki group (/etc/group has this entry twiki:x:504:apache) and made the data and pub directories & files group writable (775 & 664 respectively).
The warn log shows this entry "| mkdir /RegistrationApprovals: Permission denied at /var/
www/twiki/lib/TWiki/UI/Register.pm line 1142..."
The apache error log shows this entry "mkdir /RegistrationAp
provals: Permission denied at /var/www/twiki/lib/TWiki/UI/Register.pm line 1142,
referer:
http://mysite.com/twiki/bin/view/TWiki/TWikiRegistrati
on"
Any help is greatly appreciated. I have been at this for days.
Thanks.
Environment
--
AndreaWells - 13 Mar 2006
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
It looks like you don't have a valid path to the registration dir. It's trying to create "/RegistrationApprovals" which is obviously not writable. Check your setting of {RegistrationApprovals} in
configure.
--
CrawfordCurrie - 14 Mar 2006
Thank you!
I found the setting for {RegistrationApprovals} and changed it to the appropriate directory. And I can now register.
--
AndreaWells - 14 Mar 2006
I have the same probleme while registering a user
I use twiki 4.0.2 , apache 2.0.54 on fedora core 4
logs says:
| 15 Jun 2006 - 18:54 | mkdir /RegistrationApprovals: Permission denied at /var/www/html/twiki/lib/TWiki/UI/Register.pm line 1143
at /usr/lib/perl5/5.8.6/File/Path.pm line 162
File::Path::mkpath('/RegistrationApprovals') called at /var/www/html/twiki/lib/TWiki/UI/Register.pm line 1143
the browser says:
TWiki detected an internal error - please check your TWiki logs and webserver logs for more information.
mkdir path: Permission denied
in /var/www/html/twiki/lib/LocalSite.cfg
$TWiki::cfg{RegistrationApprovals} = '/RegistrationApprovals';
what else shoudl it be ?
ext3 modes are:
[root@wpublic /var/www/html/twiki]
$ ls -ald pub data
drwxr-xr-x 8 apache 1000 4096 jun 15 18:42 data
drwxr-xr-x 8 apache 1000 4096 avr 1 07:45 pub
Apache runs as apache user ! what is wrong ?
thanks.
--
JehanProcaccia - 15 Jun 2006
{RegistrationApprovals} must be an absolute path to the directory.
From your comments it looks like you need =/var/www/html/twiki/RegistrationApprovals=
--
DiabJerius - 15 Jun 2006
Bad choice on my part above; I'm not sure how tight your server configuration is. Just make sure the directory is not browsable from the web.
--
DiabJerius - 15 Jun 2006