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.

Certifications & exams

Which exam comes next?

You can already practise for 19 exams, and 21 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications