[Solved] Forbidden You don't have permission to access / on this server
https://www.zyxware.com/sites/default/files/styles/user_image/public/default_images/index.png?itok=2YmREnrP
BY deepa.n
4 years ago
Apache
4 comments comment

Recently, we came across an error - "Forbidden You don't have permission to access / on this server" while trying to run a new virtual host on our Ubuntu 14.04 machine. The first step to troubleshoot this type of issue would be to check at your Apache error logs as this specific type status can be thrown due to many reasons. Since we have Apache 2.4.7 installed on our system, each virtual host file should have the .conf extension. We corrected the extension also. But the issue was still there. However this information lead us to think on it further and finally we found the reason for the issue.

The access control configuration has changed in the newer version of Apache and many of the old configurations are deprecated in Apache 2.4. The old configuration 'Allow from all' is no more compatible and 'Require all granted' is the new equivalent.

Here are some examples for Apache 2.2 Vs Apache 2.4 access controls.

Apache 2.2 config:

Order allow,deny
Allow from all

Apache 2.4 config:

Require all granted

For fixing the above issue, just replace

Order allow,deny 
Allow from all

with

Require all granted

in your new virtual host .conf file. Hope this helps. We provide Drupal offshore development services. To know more feel free to contact us.


RELATED ARTICLE

/themes/custom/zyxpro_light/images/placeholder.png
more_horiz
close

on 11th June 2008 / by webmaster
Most of the web based systems that we build at Zyxware uses Drupal as the content framework. The following are the steps involved in setting up Apache, PHP, MySQL and Drupal on a freshly installed Ubuntu 8.04 system. If you follow the instructions you should be able to set it up as is but if you face problems let us know and we will try to help you. Ubuntu Web Development Apache PHP MySQL Leave a reply Your email address will not be published. Required fields are marked * Tim (not verified) access_time 13 Nov 2019 - 21:54 I checked the apache2.conf file and the lines of code in step 9 do not appear. To this point i have followed the instructions exactly, until step 11. I even tried to add the code manually but the gedit /etc/apache2/apache2.conf didn't work. Any ideads what i may be doing wrong? I tried skipping over and finishing the steps but didn't work and i ended up reinstalling ubuntu and starting over. Now i don't want to move on till i get each step. Thanks for any help you can give me. Tim (not verified) access_time 13 Nov 2019 - 21:54 When i try to open the /var/www/sites/default/settings/php firefox just stries to download it, instead of open it... I can't figure out why. Kirri (not verified) access_time 13 Nov 2019 - 21:54 http://heriman.wordpress.com/2008/08/05/enabling-apache-user-home-publi… This way is much easier. We don't need to change the contents of apache2.conf and httpd.conf. I tested it. PlusNoob (not verified) access_time 13 Nov 2019 - 21:54 am wondering if this would work at all on f.ex FreeBSD, anyone who know? directory (not verified) access_time 13 Nov 2019 - 21:54 Step by step its looking easier I,ll try this if i found anything new I,ll definitely share with you grate work keep it on thanx for a valuable information Pagination Current page 1 Page 2 Next page Next › Last page Last » Add new comment
/themes/custom/zyxpro_light/images/placeholder.png
close

on 15th June 2012 / by deepa.n
Password-protecting drupal development site with .htaccess file There might be few scenarios when we need to protect our site from the general public and make it accessible to a selected group of users. One of the most common scenarios in the development workflow of a Drupal site is when you want to avoid your half-complete drupal site showing up in Google search results.For such needs, it is advisable to go for password-protecting the site using HTTP authentication. If you have cPanel installed on your hosting server, you can use the ‘Password Protect Directories’ option from the ‘Security’ section on the cPanel home page. Click here to read on How to enable HTTP Authentication using cPanel (link to an article for the same on our site) For those without cPanel, here’s how to get Apache work your way: Apache Server Administration Drupal Security Web Security Access Control Leave a reply Your email address will not be published. Required fields are marked * website (not verified) access_time 13 Nov 2019 - 22:01 Hey this is kinda of off topic but I was wondering if blogs use WYSIWYG editors or if you have to manually code with HTML. I'm starting a blog soon but have no coding experience so I wanted to get guidance from someone with experience. Any help would be enormously appreciated! Add new comment
/themes/custom/zyxpro_light/images/placeholder.png
close

on 29th June 2012 / by Anoop John
Apache allows you to protect contents of specific directories in your website or the whole website from unauthorized access using a mechanism called httpd password protection. During development of new sites the partially built sites are protected from unauthorized access using httpd authentication. This could sometimes interfere with testing of integration with third party services that might expect some of your URLs to be accessible without authentication. Here is how you can exclude a given file or directory from httpd authentication Apache Server Administration Drupal Security Web Security Access Control Leave a reply Your email address will not be published. Required fields are marked * Muddy Mind (not verified) access_time 13 Nov 2019 - 22:01 Nice work this helps me a lot to some basic changes in my blog :) Add new comment
Leave a reply
Your email address will not be published. Required fields are marked *

Filtered HTML

  • Web page addresses and email addresses turn into links automatically.
  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type='1 A I'> <li> <dl> <dt> <dd> <h2 id='jump-*'> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
The content of this field is kept private and will not be shown publicly.
CAPTCHA This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.

author-image
Avi (not verified)
access_time 13 Nov 2019 - 22:01

I just spend the whole afternoon trying to figure out why apache2 won't come up.
I must have gone through 10's of sites.
This is the only one that helped.

Thanks!


author-image
Anonymous (not verified)
access_time 13 Nov 2019 - 22:01

Fyi...
That message can also occur in some browsers when a client (user) uses a VPN addon extension in her/his browser & tries to connect to a server which forbids such connections (yes, some servers can be configured to respond with that message when traffic from specific IPs (i..e known VPN servers) are received.

If you are using a VPN, disable it to see if that message disappears.


author-image
Gary (not verified)
access_time 13 Nov 2019 - 22:01

Just installed Mac Yosemite 10.10.5.
initially http://localhost worked fine.

After configuring the Virtual Host configuration.
I get the error:
You don't have permission to access / on this server.

Require all granted

That option is set in my httpd.conf

Any suggestions.


author-image
Karla (not verified)
access_time 13 Nov 2019 - 22:01

Thank you so very much.