Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9159221
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T13:26:21+00:00 2026-06-17T13:26:21+00:00

I have installed apache 2.2 in centos 6. Everything worked fine when the apache

  • 0

I have installed apache 2.2 in centos 6. Everything worked fine when the apache folder was at its default location /var/www/html. Then I configured a Virtual host inside my users home folder. After that apache started showing Forbidden You don't have permission error when I tried to go to localhost or 127.0.0.1 from browser.

this is the code i used in httpd.conf

<VirtualHost *:80>
        DocumentRoot "/home/anjan/workspace/mfs"
        ServerName anjan-centOS
        <Directory "/home/anjan/workspace/mfs">
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order Deny,Allow
                Allow from all
        </Directory>
</VirtualHost>

I also disabled SElinux as was mentioned in some articles but in vain. If anyone could help me out it would be much appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T13:26:22+00:00Added an answer on June 17, 2026 at 1:26 pm

    I solved the problem. After meddling with the permission of the system I found out that the user "anjan" who is owner of /home/anjan had read/write/execute permission on /home/anjan but the group "anjan", created when user "anjan" was created didn’t have any permission at all.

    ls -l /home/
    

    showed

    drwx------. 28 anjan anjan 4096 Jan 21 13:19 anjan
    

    so I changed the permission with this command

    chmod -R 770 /home/anjan
    ls -l /home/
    drwxrwx---. 28 anjan anjan 4096 Jan 21 13:19 anjan
    

    i found out under which user my apache is running from this thread. It was running under user "apache"

    so I added user "apache" to group "anjan" with this command.

    usermod -G anjan,apache apache
    

    after that voila. No more Forbidden error.

    P.S. I did everything as the root user.

    UPDATE
    It seems the provided link is broken now. Heres another one.

    Just to be safe(to avoid future broken links), copying the command here. In terminal type –

    ps axo user,group,comm | grep apache
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following: running eclipse-indigo in CentOS 6.2 , I also installed apache-ant-1.8.4
I have just installed CentOS, Apache and PHP. When I visit my site http://example.com/myapp/
I have installed Apache and Subversion on Windows. My config is: <Location /svn> DAV
I have installed PHP and its not working in the Apache Webserver. Steps followed
I have installed Apache Solr with Tomcat and my /solr/admin is working fine. But
I have installed apache on my server however I can not browse my website
I have installed apache-tomcat-6.0.35-windows-x86 in my system. How can I configure it and set
I'm trying to add Apache server to Eclipse(Juno). I have installed Apache server 7.0,
I am new to java vaadin framework. I have installed APACHE TOMCAT 6 and
I have Apache installed with the XAMPP package, and I'm working locally. I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.