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.
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.
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.
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.
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
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.