Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to start with php7 on apache #7

Open
ideadapt opened this issue Jul 28, 2017 · 3 comments
Open

Unable to start with php7 on apache #7

ideadapt opened this issue Jul 28, 2017 · 3 comments

Comments

@ideadapt
Copy link

I tried

docker run --name ur-70 -v "$PWD":/var/www/html -p 8009:80 -e PHP_php5enmod='mysql mysqli mcrypt mbstring' -e HTTPD_a2enmod='headers setenvif rewrite status expires filter deflate php7.0 mime' --link ls-mysql:mysql-host -d alterway/php:7.0-apache

and

docker run --name ur-53 -v "$PWD":/var/www/html -p 8009:80 -e PHP_php5enmod='mysql mysqli mcrypt mbstring' -e HTTPD_a2enmod='headers setenvif rewrite status expires filter deflate php5 mime' --link ls-mysql:mysql-host -d alterway/php:7.0-apache

First failed with ERROR: Module php7.0 does not exist!, second with ERROR: Module php5 does not exist!.

Can you tell me how to start a container with php7 on apache?

@ideadapt
Copy link
Author

ideadapt commented Jul 28, 2017

Found the issue. mysql is not a valid php module anymore. Just removing mysql from PHP_php5enmod did the trick (and php* from HTTPD_a2enmod).

@alexislefebvre
Copy link

@ideadapt Did you try to load the pdo_mysql module?

@ideadapt
Copy link
Author

@alexislefebvre No I didn't. I have not been working on this since I found a working solution that fits my case (see comment from 28 Jul).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants