Receive forbidden message when trying to access my website - apache

When trying to load my website I receive the following message.
Forbidden
You don't have permission to access / on this server.
Apache/2.4.18 (Ubuntu) Server at www.xxx.com Port 80
Please note I am complete novice to this so any guidance would be amazing!!

Without more information; A couple of possible things to look at:
1)
Check permissions on the directory you are hosting the web files (usually under /var/www). See this link for adding your user to www-data group etc..
https://askubuntu.com/questions/162866/correct-permissions-for-var-www-and-wordpress
2)
Issue in Apache config. Discussed here:
WAMP : Forbidden You don't have permission to access / on this server. Apache/2.4.18 (Win64) PHP/5.6.19

Just change the permission of that directory in which you have your project files
type chmod 777 directory-name

Related

Forbidden: You don't have permission to access / on this server, LAMP Server on Fedora 22

I have been installed LAMP server on Fedora 22 , but when i need access
my server localhost/myapp/public , I see this error
Forbidden
You don't have permission to access /myapp/public/ on this server.
Server unable to read htaccess file, denying access to be safe
How I can solve this isuue, I think this issue may be solving by modify
httpd.conf file ,but i don't know How do it , i am use apache2
Any Suggestions ?
You should have a corresponding error_log acess referencing an on-disk htaccess file.
If you use the "itk" MPM, it's likely an ITK problem. Otherwise, make sure all directories between root and your content directory are world readable and world executable, and that any .htaccess files are readable by the servers ID (www-data, apache, etc)

Magento 1.7.0.2 and 403 Forbidden: You don't have permission to access */index.php on this server

we just moved our Magento 1.7.0.2 shop from one server to the other. We did the following:
In root folder we adjusted rewrite base in .htaccess
We activated "using rewrite url" in System=>Configuration=>General=>Web
But now every time we open any link (e.g. domain.com/about) we get following error:
403 Forbidden
You don't have permission to access /var/www/***/index.php on this server.
Apache/2.2.16 (Debian) Server at www.domain.com Port 80
Only start page can be opened. If we turn off "using rewrite url" in System=>Configuration=>General=>Web everything works again, but then any URL has an index.php included e.g. domain.com/index.php/about. We use hosted vServer with Confixx 3pro as server management software. WebServer mod_rewrite is activated for every user in Confixx user management. register_globals, safe_mode, and open_basedir are tuned off for all users.
We checked all file permissions with standard magento-check.php and also checked user with chown command via ssh several times. All mandatory files are writable and are owned by necessary user.
Do you have any idea how we can fix this? Thank you in advance!
Best regards,
Marcus

Forbidden You don't have permission to access / on this server

I'm trying to set up a webserver on my VPS (Running Debian 7). I have installed apache and configured it. However, when I try to connect to my IP I am faced with a 403 forbidden error saying that I don't have access to / on the server. I have attempted to set it up so that when connecting the webserver should direct to the directory: /home/webmaster/website. My main apache.conf file is as follows: http://pastebin.com/zgyik39y
and my site config, called "web.conf" is: http://pastebin.com/jpRJAaCw I don't know what to do, I've tried many suggestions on here and in other places and none so far have worked.
Line 18 of web.conf should be:
Allow from all
For apache 2.2 or:
Require all granted
For apache 2.4

403 Apache error Forbidden You don't have permission to access /clientServerTest/ on this server

I am trying to connect to my wampserver 2.4 online but I have the following error:
Forbidden You don't have permission to access /clientServerTest/ on this server.
The error log shows:
[Sun Jun 08 21:53:45.281433 2014] [access_compat:error] [pid 6696:tid 1492] [client 192.168.0.7:52659] AH01797: client denied by server configuration: C:/wamp/www/favicon.ico
I have browsed a while and looked at this answer and this other one but no luck so far.
The server is already online and I can access it just fine using localhost. However, when I try to connect to it using the ipv4 of my pc on my local network I got the error.
I am using windows 7.
The firewall is already off.
Can anybody please help me out on this?
A better solution would be to do
# onlineoffline tag - don't remove
Require local
Require ip 192.168.0
Or whatever the first 3 quartiles of your local subnet is.
This uses the Apache 2.4 syntax rather than the Apache 2.2 syntax, and gives access to all the possible localhost variants and the local network, but not the world.
This way when you decide to open up your router you wont accidentally allow acccess to the world to all your development sites.
You will have to do this to all 3 app configs in the alias folder.
Ah... apparently I am found what was wrong...
In the httpd.config file in the following snippet (can access from the wamp menu):
# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
I removed Deny form all and put in Allow from all so now it looks like:
# onlineoffline tag - don't remove
Order Deny,Allow
Allow from all
Not sure it is the right solution... but at least I can connect

gitorious gives permission denied on fresh bitnami setup , amazon ec2 instance using https

This is a brand new installation of a bitnami gitorius image on EC2, worked fine until i tried to enable https/ssl.
I am sure i have misconfigured apache somehow, however the root document at https://tarantula.anatexis.net loads just fine.
but if one goes to the gitorious app at https://tarantula.anatexis.net/gitorious you get permission denied.
which config file do I edit to allow https traffic to gitorious.
looking at the apache logs, is see this,
[Mon Jun 03 17:25:20 2013] [error] [client 71.17.13.29] Directory index forbidden by Options directive: /opt/bitnami/apache2/htdocs/gitorious/, referer:Https://tarantula.anatexis.net/
Any help would be appreciated, Thanks
Joe
OK, so i fixed it, found the file /opt/bitnami/apache2/conf/extra/httpd-ssl.conf this config file has the document root in it for ssl traffic, the default is wrong and it needs to be changed to
DocumentRoot "/opt/bitnami/apps/gitorious/htdocs/public"
This solved all my issues I believe.