Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apache access denied without +x for user home directory #55

Open
colemanw opened this issue Dec 5, 2019 · 0 comments
Open

Apache access denied without +x for user home directory #55

colemanw opened this issue Dec 5, 2019 · 0 comments
Labels
environment-detection Ways to improve guided setup (amp config/amp test)

Comments

@colemanw
Copy link

colemanw commented Dec 5, 2019

After setting up amp in Arch Linux running xampp/lampp I ran amp test and got

Warning: file_get_contents(http://localhost:7979/index.php): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden
in phar:///home/colemanw/buildkit/bin/amp/src/Amp/Command/TestCommand.php on line 163

After a lot of trial-and-error with various apache settings I finally discovered this fix:

chmod +x /home/colemanw

And that solved it so my built sites are now accessible in the web browser.

Suggestion:
Can we add something about this to the output of amp test on failure? Particularly if the error message contains "403" and we can detect that the +x bit is not set on the home directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
environment-detection Ways to improve guided setup (amp config/amp test)
Projects
None yet
Development

No branches or pull requests

2 participants