LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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-27-2012, 06:26 AM   #1
shaana2khan
Member
 
Registered: Nov 2012
Posts: 34

Rep: Reputation: Disabled
Apache error..


Hello friends..

I am creating a local website which is running through IP address,but
when i run a index.html file with ip address,its showing properly..
and when i create a directory under /var/www/domain name/foldername..

when i am trying to checking it on browser like 192.168.X.X/folder name.its showing me a error 403 forbidden,you don't have permission to access particular folder...
i have already provide the 777 permission to the folder

any solution ?
 
Old 12-27-2012, 07:04 AM   #2
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 653

Rep: Reputation: 66
This is not Linux Basic Permission issue But Apache permission issue . You should use following statement in apache config

<Directory /var/www/domain name/foldername>

Options +Indexes

</Directory>

Thanks

Last edited by vishesh; 12-27-2012 at 07:07 AM.
 
Old 12-28-2012, 12:58 AM   #3
shaana2khan
Member
 
Registered: Nov 2012
Posts: 34

Original Poster
Rep: Reputation: Disabled
Hello vishesh

First of all i want to say thanks to u,for being my supporter.
can you please tell me verify the meaning of this (Options +Indexes),why we use it ????????
 
Old 12-28-2012, 01:14 AM   #4
RaviTezu
Member
 
Registered: Nov 2012
Location: India
Distribution: Fedora, CentOs, RHEL
Posts: 164

Rep: Reputation: 24
post the configuration you have used in /etc/httpd/conf/httpd.conf file for your local website???
 
Old 12-28-2012, 03:12 AM   #5
shaana2khan
Member
 
Registered: Nov 2012
Posts: 34

Original Poster
Rep: Reputation: Disabled
<VirtualHost 192.168.X.X>
ServerName Domainname
ServerAdmin root@Domain name
DocumentRoot /var/www/domainname
</VirtualHost>

This is the configuration which i have made in /etc/httpd/conf/
httpd.conf..
 
Old 12-28-2012, 09:51 AM   #6
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 653

Rep: Reputation: 66
Options +Indexes means for given directory /var/www/domain name/foldername , you are enabling directory indexing option. Directory indexing options allow to list directory content

Thanks
 
Old 12-29-2012, 03:15 AM   #7
shaana2khan
Member
 
Registered: Nov 2012
Posts: 34

Original Poster
Rep: Reputation: Disabled
Hello vishesh..

Now i have found the solution by my self,now i am able to do access folder on browser..

So i want to share it,if some has same problem,then he/she can try this way..

First of all create your domain and folder and file inside of this directory..

# /var/wwww/html/domain name/foldername or
for file
#cat > /var/www/html/domain name/file name..

One thing which is most impotent Apache by default page store in
/var/www/html....

Thank you so much vishesh for my help...
 
  


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
Apache close wait error :Apache stop responding,Server get hangs arun5002 Linux - Server 1 06-19-2012 11:49 AM
Apache Error - proxy: error reading status line from remote server rajaniyer123 Linux - Software 0 03-29-2012 12:09 PM
apache startup error after deleting up apache log files jayakumar01 Linux - Server 2 12-15-2011 11:13 AM
Apache custom 500 error not showing after php syntax error vockleya Linux - Server 7 08-11-2011 04:42 PM
Apache Error 403 - CentOS 5.2 with Apache 2.2.3 gordymann Linux - Newbie 2 04-08-2009 08:57 AM


All times are GMT -5. The time now is 02:35 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