Question

Forbidden You dont have permission to access/ on this server

Asked by: micro_learner

Hello I have more than one question so please bare wiith  me ....

I am a actually a Bioinformatist working to deploy a local version of a free  web based application that is available in our field.Before I deplay it on one of our servers I am trying to do that on my laptop and trest it before I proceed furthur.The application needs Perl-cgi and Mysql.

So I figured that I need to install Apache web server on my local machine before I deplaoy the perl scripts

I installed the Apache 2 on my Linux Red Hat machine did what was required and tried testing it with

http://localhost/

But I get this error message

Forbidden
You dont have permission to access/ on this server

I looked at the conf/error_log

This is wahat it says

[error][clent 127.0.0.1] Permission denied:access to/denied


I did look at the forumn for previous posts but could not figure out the cause or the solution

Thanks for u'r time  and effort

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2004-07-15 at 10:27:29ID21060159
Tags

permission

,

have

,

access

,

you

,

forbidden

Topic

Apache Web Server

Participating Experts
4
Points
500
Comments
22

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Red Hat/Apache Perl/CGI question
    I have a perl script I'm trying to run on an apache webserver. I've pointed the script to the proper perl location and i can run the script in the folder with the ./scriptname.pl but when i try and call it from a webpage nothing happens. I'm sure it has to do with SSI maybe...
  2. installing PERL-CGI on apache
    I am running a linux-debian machine and I am trying to install PERL support. I found information about mod_perl and tried to install as said at http://perl.apache.org ; but it failed. I don't know how but at last I managed to make a mod_perl.so and I started modifying the...
  3. Apache Forbidden error after qmail installation
    any suggestions are welcome... I had a FC3 with apache, php, mysql, proftp and sendmail working fine. Then I decided to switch to qmail and found qmailrocks.org interresting. So I followed the steps in that website and everything seemed to run smoothly until I installed VQ...
  4. Win Apache CGI config
    I'm setting up a test Apache server on my development PC. HTML and PHP are working but CGI/Perl it not working. I have Perl installed and it's in the Windows System Path. The following works: http://localhost/dwserver/html.html CGI does not work http://localhost/d...
  5. After adding cgi/perl handler scripts are forbidden
    I have a perl script (test.pl) when I would access it it would display the source. now that I have added AddHandler cgi-script .cgi .pl to httpd.conf all scripts give me the error forbidden. even when I do a chmod 777 it still says forbidden how can I fix this?? Max

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: CrYpTiC_MauleRPosted on 2004-07-15 at 11:58:19ID: 11562141

try accessing it on your machine using the IP address instead...

http://123.123.123.123/  example. DONT user 127.0.0.1 or localhost

 

by: micro_learnerPosted on 2004-07-15 at 12:06:34ID: 11562197

Thanks for your time

But this does not work ....it says "Operqation timed out when attempting to contact 123.123.123.123


Thanks

 

by: CrYpTiC_MauleRPosted on 2004-07-15 at 12:07:34ID: 11562206

noooo put YOUR ip address, that was an example IP address.

 

by: CrYpTiC_MauleRPosted on 2004-07-15 at 12:08:50ID: 11562224

Go here... http://www.whatismyipaddress.com/ then put your IP address in the URL....

http://YOU_IP_ADDRESS/

 

by: micro_learnerPosted on 2004-07-15 at 12:14:03ID: 11562261

sorry ....It gives the same forbidden error.What do I do


( sorry for the goof up not much of a thing in comps..u must have guessed it)

 

by: CrYpTiC_MauleRPosted on 2004-07-15 at 12:15:37ID: 11562277

Ok do this...

http://YOU_IP_ADDRESS/the_file_name.html

put the filename too, also check the file even exists in the document root.

 

by: periwinklePosted on 2004-07-15 at 12:21:00ID: 11562323

Did you set the  permissions properly for the default directory of your web site?  Should be 755 for the directory, 644 for the html and graphic files, and 755 for any CGI scripts...

 

by: micro_learnerPosted on 2004-07-15 at 12:40:10ID: 11562515

I am sorry ..I am sure its my mistake..may be I am missing something.It does not work

I have given r w and x  permissions to the files( 755) but does not work

Thanks for your time

 

by: periwinklePosted on 2004-07-15 at 13:43:12ID: 11563120

Can you post what the document root is set to in the httpd.conf (configuration) file?  Perhaps it is looking someplace other than you expect?

 

by: micro_learnerPosted on 2004-07-15 at 13:54:51ID: 11563245

Thanks for the response

The DocumentRoot ponts to


<Directory "/home/myName//htdocs">

 

by: periwinklePosted on 2004-07-15 at 14:21:07ID: 11563491

That double slash is an error - should be:

<Directory "/home/myName/htdocs">

After correcting it, you'll need to stop and restart the server (apachecfg restart should do it - might have to locate apachecfg first<G>).

Then, you want to look to see what DirectoryIndex is set to - that gives the order that pages are selected when you give a directory without the exact file specified.   If you don't have one of those files, you probably don't have Options Indexes set - which means that you don't have permission to view the directory listing.

 

by: micro_learnerPosted on 2004-07-15 at 14:54:57ID: 11563753

Hi thanks again for the reply

I did correct it but it dint work

>>Then, you want to look to see what DirectoryIndex is set to
This is how it looks

DirectoryIndex index.html index.html.var

I have the index,html.var in the htdacs directory but I dont have the "index.html"

I tried putting a file names index.html ..but dint work either

>>, you probably don't have Options Indexes set - which means that you don't have permission to view the directory listing.

What do I have to do to view the directory listing....
Since this is installed in my laptop I can log in as root and work

__________________________________
Also ...if this means something

When I try to start the server as a "User"
 user#apachet1 start
(I am unable to start it) I get this error
(13)Permission denied :make_sock:Cannot bind to address 0.0.0.0:80
no listning sockets available shutting dowm
'Unable to open los

But when "su" and log as the Root
root#apachect1 start
httpd(pid 13843)already runnin

_____________________________

I really appreciate your patience and your effort

Thanks once agin

 

by: periwinklePosted on 2004-07-15 at 15:20:24ID: 11564002

su as root, and shut down apache, via apachectl:

apachectl stop

then, issue the following command:

ps ax | grep -i apache

This will tell you if there are other apache processes running.  There shouldn't be at this point!

After you have verified that all apache processes are stopped, issue:

apachectl start

that will start it up again.  I think you may have several instances of the apache daemon running.

 

by: micro_learnerPosted on 2004-07-15 at 19:06:47ID: 11565122

Sorry ..but it is not working either .I appreciate your patience.Thanks so much.

I was wondering whether this problem is due to the fact that I build  apache as a user and not as a root.Am I supposed to build apache from the source logged as a root.Cant I just run build apache just being a user ...

 

by: micro_learnerPosted on 2004-07-15 at 20:58:54ID: 11565542

Thanks for u'r promt replies and suggestions ...I think I figured the error

Though I dont understand why....

It works for

http://localhost:8080/

not for just http://localhost/

I would appreciate if u could explaim me the reson ... thanks

 

by: periwinklePosted on 2004-07-16 at 05:26:51ID: 11567535

Actually, you're supposed to build apache as a user, so you did things just fine.

The reason that you need to put in localhost:8080 is that the default web port is 80, not 8080.  What is the Port and Listen commands set to in the httpd.conf file?  In most configurations, you'll have:

Port 80
Listen 80

 

by: micro_learnerPosted on 2004-07-16 at 07:17:41ID: 11568442

I could not find the Port in the confg file

But the Listen is still pointed to 80
Do I need to change this 8080

Is there any place you configure  the Port

 

by: periwinklePosted on 2004-07-16 at 08:02:09ID: 11568899

Yes, you can put in the port in the httpd.conf file.   You can also have multiple listen statements - it just means that traffic will be 'listened' for on multiple ports.

Try putting:

Port 8080
Listen 8080

 

by: micro_learnerPosted on 2004-07-16 at 08:12:18ID: 11568984

Thanks so much I seem to understand a bit more abt apache now ..
It time for me to delve into the Bioinformatic  problem on hand .But I am sure with the help from you great guys out there I suspect that at least the comp part will not be a problem

I may be back with more questions though .Keep up the good work

 

by: sanjaykumar_pPosted on 2004-09-14 at 00:49:41ID: 12052072

I am getting Forbidden You dont have permission to access / on this server

I am using RAQ server, when i tried to open through SSH, it gives Failed to open a secure terminal session

Can anyone helps me out

Thanks in Advance
Sanjay

 

by: periwinklePosted on 2004-09-14 at 04:33:17ID: 12053219

Sanjay -

You need to ask a new question - this one has been closed.

 

by: e0101451Posted on 2004-10-23 at 10:43:09ID: 12388987

Can I ask what I should do if I can't use the ip address in my url and I am getting this error?  My website is a public website that will not allow ip addresses to be used in the url and I am getting the "Forbidden you don't have permission to access / on this server" error.  Thanks.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...