Directory structure · Question 11 of 12
A host sets up a Composer installation but sets the document root to the project folder instead of public/. Which consequences threaten?
2 answers are correct. Hard
Show answer
Answer
- A Files in config/ such as settings.php lie in the web root
- C composer.lock and vendor/ may become retrievable via the browser
Explanation
The advantage of the Composer structure is lost: internal files suddenly lie in the web root. Whether they are delivered or executed as PHP then depends only on the web server configuration.