DEV Community

Discussion on: Setup a basic Local PHP Development Environment in Docker

Collapse
 
vraskin profile image
vraskin • Edited

Thank you for the tutorial.
I was getting "Could not open input file: ./index.php" when I add Mysql part to docker-compose.yml. I added "working_dir: /var/www/html/" to my Dockerfile. Now, it is not finding mysqli class.

Solved:
Do not forget to rebuild the container after you add mysqli

docker-compose up --build