Jump to content
View in the app

A better way to browse. Learn more.

The Uniform Server Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Error: "You Don't Have Permission to access ..."

Featured Replies

I have not used Uniform Server in a while. I am presently using PHP Version 5.6.19.

 

I have defined a "<Virtual Host>" with the name, "laptop-test-server". It appears to be properly recognized.

 

If I then open a PHP file on the test server with the URL "laptop-test-server/include/somePHPfile.php", I get the following error message:

 

 

Forbidden

You don't have permission to access /include/somePHPfile.php

 

 

But if I open that same PHP file on the test server with the URL "localhost/include/somePHPfile.php", it works fine.

 

Similarly, if I open it with the URL "127.0.0.1/include/somePHPfile.php", it also works fine.

 

Can someone point me in the direction to fix this problem?

 

Thanks much.

 

Len Jacobson

  • Author

My son came up with the solution.

 

In the 'hosts' file, I needed to have on one line the following:

 

127.0.0.1 localhost laptop-test-server

 

Previously, I had them on separate lines. To be honest, I don't know why it worked when I put them all on one line, but the bottom line is that that's how I got it to work.

  • 3 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.