-
Notifications
You must be signed in to change notification settings - Fork 15
Apache access denied without +x for user home directory #55
Copy link
Copy link
Open
Labels
environment-detectionWays to improve guided setup (amp config/amp test)Ways to improve guided setup (amp config/amp test)
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
environment-detectionWays to improve guided setup (amp config/amp test)Ways to improve guided setup (amp config/amp test)