Skip to content

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

@colemanw

Description

@colemanw

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    environment-detectionWays to improve guided setup (amp config/amp test)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions