Len Jacobson Posted August 14, 2019 Report Share Posted August 14, 2019 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 Quote Link to comment Share on other sites More sharing options...
Len Jacobson Posted August 14, 2019 Author Report Share Posted August 14, 2019 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. Quote Link to comment Share on other sites More sharing options...
olajideolaolorun Posted August 19, 2019 Report Share Posted August 19, 2019 lol, great. Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
lauryfriesee Posted June 14, 2023 Report Share Posted June 14, 2023 I liked the idea. Quote Candy Crush Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.