LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 12-10-2009, 02:53 AM   #1
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,434
Blog Entries: 6

Rep: Reputation: 51
Permission Denied Error?


I have installed cacti through:
Code:
yum install cacti
And it installed under /usr/share/cacti folder.

I am able to open the cacti page through http://localhost/cacti through htmlview command(commandline interface). But when I try opening it under Windows it says: "Permission Denied".

I guess the issue is due to httpd.conf DocumentRoot Setting:
I am having DocumentRoot as of now under /var/www/html.
<Directory /var/www/html>
There is a seperate webpage project specific which is already running under /var/www/html.
How can I add for cacti on this to work?

How can I make it work?

Last edited by your_shadow03; 12-10-2009 at 02:55 AM.
 
Old 12-10-2009, 07:02 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,897

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
You can use an Alias:
Code:
Alias /cacti "/usr/share/cacti"
<Directory /usr/share/cacti">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
Just make sure, if you're using a SELinux enabled distro, that apache can read from /usr/share

Regards
 
Old 12-10-2009, 07:07 AM   #3
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,434
Blog Entries: 6

Original Poster
Rep: Reputation: 51
I made the entry and it displayed:

Code:
Starting httpd: [Thu Dec 10 13:06:01 2009] [warn] The Alias directive in /etc/httpd/conf/httpd.conf at line 547 will probably never match because it overlaps an earlier Alias.
                                                           [  OK  ]
 
Old 12-10-2009, 07:30 AM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,897

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
Check httpd.conf or the other *.conf files that are included, to see if the Alias is already defined somewhere. I guess it should be, as you used yum to install cacti, so it should have take care to create the Allias.
Another thing to check (appart from SELinux) are the dir permissions, that should be 755 for the directories /usr, /usr/share, /usr/share/cacti.
 
Old 12-10-2009, 01:01 PM   #5
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,434
Blog Entries: 6

Original Poster
Rep: Reputation: 51
Yes. The httpd log says:
Code:
service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd: [Thu Dec 10 18:55:34 2009] [warn] The Alias directive in /etc/httpd/conf/httpd.conf at line 547 will probably never match because it overlaps an earlier Alias.
                                                          [  OK  ]
I checked at line 547 and it do have Alias entry:
Code:
[root@tlmonitors ~]# cat /etc/httpd/conf/httpd.conf|grep Alias
# Aliases: Add here as many aliases as you need (with no limit). The format is
# Alias fakename realname
Alias /icons/ "/var/www/icons/"
#Alias /cacti "/usr/share/cacti"
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# The same rules about trailing "/" apply to ScriptAlias directives as to
# Alias.
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
# To use CGI scripts outside of ScriptAliased directories:
# We use Alias to redirect any /error/HTTP_<error>.html.var response to
#   Alias /error/include/ "/your/include/path/"
Alias /error/ "/var/www/error/"
 
Old 12-10-2009, 01:38 PM   #6
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,897

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
Which is the line 547 of httpd.conf? There are 2 uncommented Alias directives: "Alias /icons/ "/var/www/icons/" and "Alias /error/ "/var/www/error/", but anyway they have nothing to do with cacti. Comment out the offending line, uncomment the cacti Alias, restart apache and see if it works.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
permission denied error aahiqmir Linux From Scratch 1 03-30-2009 01:51 AM
permission denied error mjalalynia Linux - Desktop 2 07-26-2008 01:28 AM
Samba, permission denied error. BashTin Linux - Server 8 07-15-2008 03:44 AM
Permission Denied Error ckurowic Linux - Server 7 05-18-2007 03:33 AM
permission denied error endezeichen Linux - General 5 12-20-2003 06:59 PM


All times are GMT -5. The time now is 03:24 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration