The official PHP & Apache container by default doesn’t have mod rewrite enabled. To enable this you would need to create your own Dockerfile, using the build “FROM php:xx” where xx is the container you need. Then add the following line to enable mod rewrite RUN a2enmod rewrite
Monthly Archives: June 2018
Docker Official PHP container how to enable PDO
The Official PHP & Apache[1] container is a great starting point for a local development environment. One thing that might trip you up is if you try to install or run queries against a database. Out of the box, PDO drivers are not enabled. This will likely resort to the following errors: [PDOException] could not find …
Continue reading “Docker Official PHP container how to enable PDO”