Results 1 to 6 of 6

Thread: CentOS 5.2 and Apache 2.2.3: Getting error message 403

  1. #1
    Join Date
    Apr 2011
    Posts
    63

    CentOS 5.2 and Apache 2.2.3: Getting error message 403

    It is very first thread on this particular forum I am hoping that the users of this particular forum will help me out from the annoying situation which I am going to mentioned below. Well I have installed CentOS 5.2 on the computer of mine and also Apache 2.2.3. whenever I am trying to access any of the webpage I am getting following error message on the computer of mine ‘You don't have permission to access /bb/ on this server.
    Apache/2.2.3 (CentOS) Server at fmsubbnix Port 80’. I am not having idea regarding the fixing of this particular error message. Any help on this particular matter would be highly appreciated. Thanks a lot in advance.

  2. #2
    Join Date
    Nov 2009
    Posts
    792

    Re: CentOS 5.2 and Apache 2.2.3: Getting error message 403

    I am having some specific question which would be helpful to figure out the root cause of the problem. Do you have done any hardware or software changes on the computer of yours? Do you have enabled SELinux? If your answer is yes then tell me do you have setup the selinux contexts on the files which you are attempting to access correctly? Let me know the answers of the above mentioned question as early as possible.

  3. #3
    Join Date
    Apr 2009
    Posts
    994

    Re: CentOS 5.2 and Apache 2.2.3: Getting error message 403

    You need to look into the /etc/httpd/conf and have look on the default settings it would like as below mentioned.
    Code:
    <Directory "/var/www/html">
    Order deny,allow
    Allow from all
    </Directory>
    If the symlink is redirecting to any other place then you would get the default permission which is Deny from All.

  4. #4
    Join Date
    Nov 2009
    Posts
    865

    Re: CentOS 5.2 and Apache 2.2.3: Getting error message 403

    Looking at the situation which you have mentioned over here I am suggesting couple of thing which you should perform and see whether you are able to resolve the issue or not. First of all you should see and verified the directories and make sure that it is having permission 755. If 775 file permission is not working then you should go for 777 and see whether there is any difference in the situation. Also you should see that the default directory is correct and it should be /var/www/html.

  5. #5
    Join Date
    Apr 2009
    Posts
    1,107

    Re: CentOS 5.2 and Apache 2.2.3: Getting error message 403

    I recommend that you need to update the Apache Configuration. I am assuming that the Apache Configuration is seems to be distributed and you need to simply add the lien at the end of the file. It should be included into the file conf replicates the module configuration file. You should use the below mentioned command to get the same.
    Code:
    echo "Include vhost.d/*.conf" >>/etc/httpd/conf/httpd.conf

  6. #6
    Join Date
    Nov 2009
    Posts
    1,416

    Re: CentOS 5.2 and Apache 2.2.3: Getting error message 403

    I am suggesting following work around which would be useful to get the requirement of yours. You should Disable the Virtual Host by using the following command.
    Code:
    mv -v /etc/httpd/conf.d/example.conf{,_}
    Now you should enable the Virtual Host by using the following command.
    Code:
    mv -v /etc/httpd/conf.d/example.conf{_,}
    after doing the same you should restart the Apache on the computer of yours.
    Code:
    service httpd graceful
    So use the above mentioned instruction and l am sure that it will help you out.

Similar Threads

  1. Error message while login into VSFTPD on CentOS 5.5
    By fanish-war in forum Operating Systems
    Replies: 5
    Last Post: 07-05-2011, 12:13 PM
  2. Replies: 5
    Last Post: 04-05-2011, 10:53 AM
  3. Replies: 5
    Last Post: 04-05-2011, 10:50 AM
  4. Error message While Installing CentOS
    By Obessed in forum Operating Systems
    Replies: 5
    Last Post: 11-11-2010, 11:29 PM
  5. How to enable Centos Apache Installation
    By Frenzy in forum Networking & Security
    Replies: 3
    Last Post: 06-07-2009, 03:25 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,567,631.67477 seconds with 17 queries