Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
05-10-2006, 11:22 AM
#1
Member
Registered: Jan 2004
Location: Pakistan
Distribution: OpenSuse 10.2, Slackware 11, Solaris 10
Posts: 415
Rep:
Permissions problem in Apache 1.3
Hi,
I've setup TWiki in my webserver, however when I wnat to access my htdocs/twiki/bin/configure.pl file:
In the webbrowser I go like:
http://localhost/twiki/bin/configure.pl
the web server replies:
Forbidden
You don't have permission to access /twiki/bin/configure.pl on this server.
Apache/1.3.33 Server at darkstar.example.net Port 80
I'm logged in as root, and still I dont have access to the file??
05-10-2006, 01:09 PM
#2
Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 9,601
Make sure that the script is executable and that you have "Options +ExecCGI" for the /twiki/bin/ directory
05-10-2006, 01:35 PM
#3
Member
Registered: Jan 2004
Location: Pakistan
Distribution: OpenSuse 10.2, Slackware 11, Solaris 10
Posts: 415
Original Poster
Rep:
yup I have that these are my settings for the folder:
<Directory "/var/www/htdocs/twiki/bin">
Options +ExecCGI FollowSymLinks
SetHandler cgi-script
Order Allow,Deny
Allow from all
Deny from env=anonymous_spider
</Directory>
05-11-2006, 01:56 AM
#4
Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 9,601
It looks OK. Perhaps you have to change the SetHandler line, to:
Code:
SetHandler cgi-script .pl .cgi
Also take a look at the error_log to see if you find out why you're denied access.
05-11-2006, 02:00 AM
#5
Member
Registered: Jan 2004
Location: Pakistan
Distribution: OpenSuse 10.2, Slackware 11, Solaris 10
Posts: 415
Original Poster
Rep:
The error_log says this:
[Thu May 11 11:18:14 2006] [error] [client 58.65.128.217] (13)Permission denied: file permissions deny server access: /usr/local/apache/htdocs/TWiki/pub/TWiki/TWikiLogos/T-logo-140x40-t.gif
[Thu May 11 11:18:15 2006] [error] [client 58.65.128.217] (13)Permission denied: file permissions deny server access: /usr/local/apache/htdocs/TWiki/pub/TWiki/TWikiDocGraphics/help.gif
[Thu May 11 11:18:15 2006] [error] [client 58.65.128.217] (13)Permission denied: file permissions deny server access: /usr/local/apache/htdocs/TWiki/pub/TWiki/TWikiDocGraphics/warning.gif
[Thu May 11 11:18:15 2006] [error] [client 58.65.128.217] (13)Permission denied: file permissions deny server access: /usr/local/apache/htdocs/TWiki/pub/TWiki/TWikiDocGraphics/help.gif
[Thu May 11 11:18:16 2006] [error] [client 58.65.128.217] (13)Permission denied: file permissions deny server access: /usr/local/apache/htdocs/TWiki/pub/TWiki/TWikiDocGraphics/tip.gif
[Thu May 11 11:18:18 2006] [error] [client 58.65.128.217] (13)Permission denied: file permissions deny server access: /usr/local/apache/htdocs/TWiki/pub/TWiki/TWikiDocGraphics/tip.gif
05-11-2006, 02:02 AM
#6
Member
Registered: Jan 2004
Location: Pakistan
Distribution: OpenSuse 10.2, Slackware 11, Solaris 10
Posts: 415
Original Poster
Rep:
And from the httpd.conf file, the settings for TWiki/pub folder are:
<Directory "/usr/local/apache/htdocs/TWiki/pub">
Options FollowSymLinks +Includes
AllowOverride None
Allow from all
</Directory>
05-11-2006, 02:06 AM
#7
Member
Registered: Jan 2004
Location: Pakistan
Distribution: OpenSuse 10.2, Slackware 11, Solaris 10
Posts: 415
Original Poster
Rep:
Ok it seems that
when I point my browser to
Twiki/bin/configure, permission is denied and it says:
in the error_log
[Thu May 11 12:01:52 2006] [error] [client 58.65.128.217] Options ExecCGI is off in this directory: /usr/local/apache/htdocs/TWiki/bin/configure
although according to httpd.conf I have allowed it
05-11-2006, 02:11 AM
#8
Member
Registered: Jan 2004
Location: Pakistan
Distribution: OpenSuse 10.2, Slackware 11, Solaris 10
Posts: 415
Original Poster
Rep:
in some of my posts you might have noticed I use the path
"/var/www/htdocs/twiki/" and in some "/usr/local/apache/htdocs/TWiki"
Their are actually two installations with identical problems
05-11-2006, 02:11 AM
#9
Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 9,601
From the logs it's /usr/local/apache/htdocs/TWiki/pub the directory where you should put the: "Opttions +ExecCGI" which according to your last post is not set
05-11-2006, 08:44 AM
#10
Member
Registered: Jan 2004
Location: Pakistan
Distribution: OpenSuse 10.2, Slackware 11, Solaris 10
Posts: 415
Original Poster
Rep:
but the pub directory doesnt contain any scripts, its the bin directory which contains the scripts,
05-21-2006, 04:57 AM
#11
Member
Registered: Jan 2004
Location: Pakistan
Distribution: OpenSuse 10.2, Slackware 11, Solaris 10
Posts: 415
Original Poster
Rep:
anyone?? the problem still has not been solved
05-21-2006, 08:14 AM
#12
Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 9,601
Put:
Code:
AllowOveride Options or
AllowOveride All
inside the <Directory "/var/www/htdocs/twiki/bin">..</Directory>
Thread Tools
Search this Thread
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
All times are GMT -5. The time now is 02:21 PM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News