Question
I've installed twiki, but it's not happy.
http://netebb.com/twiki/bin/testenv
reports all is well, but
http://netebb.com/twiki/bin/view
gives a Internal Server Error:
[Mon Nov 12 01:50:12 2001] [error] (13)Permission denied: exec of /home/www/twiki/bin/view failed
[Mon Nov 12 01:50:12 2001] [error] [client 192.168.1.2] Premature end of script headers: /home/www/twiki/bin/view
If I copy view to view.cgi, the problem goes away. See
http://netebb.com/twiki/bin/view.cgi
.
I took my httpd.conf changes straight from
http://twiki.org/cgi-bin/view/TWiki/TWikiDocumentation#Step_1_Create_amp_Configure_the_
ScriptAlias /twiki/bin/ "/home/www/twiki/bin/"
Alias /twiki/ "/home/www/twiki/"
<Directory "/home/www/twiki/bin">
Options +ExecCGI
SetHandler cgi-script
Allow from all
</Directory>
<Directory "/home/www/twiki/pub">
Options FollowSymLinks +Includes
AllowOverride None
Allow from all
</Directory>
<Directory "/home/www/twiki/data">
deny from all
</Directory>
<Directory "/home/www/twiki/templates">
deny from all
</Directory>
I'm stumped. I've surfed around for an answer, but it doesn't seem anyone else has encountered this problem before.
Any help would be greatly appreciated.
Thanks,
Ross Smith
- TWiki version: 09-Sept-01
- Web server: Apache 1.3.22
- Server OS: Debian Woody
- Web browser: Any
- Client OS: Any
--
RossSmith - 12 Nov 2001
Answer
You may have already checked this, but you do need to make sure that
view has executable permissions under Linux - e.g. chmod +x the file. If you copied view.cgi to view, this could have reset the perms.
--
RichardDonkin - 21 Nov 2001
Dang. That was it! Silly me. I wish Apache's error messages were more descriptive! Thanks for pointing me in the obvious direction.
--
RossSmith - 21 Nov 2001
Thanks -- I made the same mistake. Irritating how the mind will sometimes filter out the proper and obvious path for the unknown. I.E. "It can't be permissions... It must be that TWiki is reacting badly to how I configured mod-perl! Or perhaps TWiki doesn't work with Apache2!
--
JoshuaMorast - 04 Oct 2002
At least in this case, the Apache errors are quite information - 'permission denied' means that the Unix permissions didn't allow the file to be executed.
--
RichardDonkin - 05 Oct 2002