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

php-intl is missing - or - how to install extensions? #109

Closed
ieugen opened this issue Aug 15, 2017 · 6 comments
Closed

php-intl is missing - or - how to install extensions? #109

ieugen opened this issue Aug 15, 2017 · 6 comments

Comments

@ieugen
Copy link

ieugen commented Aug 15, 2017

Hi,

I'm using version 0.15.2 of wordpress-starter and in one place I use MessageFormatter to handle plurals correctly.

Because of that I get Uncaught Error: Class 'MessageFormatter'

I believe php-intl is missing and I will look into adding that, however, I imagine that I might not be the only one with the issue and having the extensions installed might be good.

Since there are a lot of extensions, it might be ok to have a way to install them on build.

I'll come back with feedback.

Thanks,

@ieugen
Copy link
Author

ieugen commented Aug 15, 2017

Looking at the Dockerfile for php-7.1 image I managed to install intl but it was not easy. I got some pointers from [1].

p.s. Debian Stretch is out with php7.

[1] docker-library/php#57

@dsifford
Copy link
Collaborator

Adding extensions is easy, it just needs to be done during the initial compilation. If you'd like, try adding the extension to this chain of extensions, compile the dockerfile, and let me know if it works. I have no problem adding it in.

@ieugen
Copy link
Author

ieugen commented Aug 15, 2017

Hi,

It might not be that simple for all users. Some extensions require extra dependencies as well.

If I have a running setup, how can I rebuild my image to include the extra extensions?

In the current setup I believe I have to publish a new image.

@dsifford
Copy link
Collaborator

dsifford commented Aug 15, 2017

host $ docker-compose exec -it wordpress /bin/bash
wordpress # apt-get install php7.0-intl
wordpress # docker-php-ext-install intl
wordpress # service apache2 reload

@ieugen
Copy link
Author

ieugen commented Aug 15, 2017

I remember the image was based on Debian Jessie which has php5.6 but I will try. Thanks.

@ieugen ieugen closed this as completed Sep 13, 2017
@ieugen
Copy link
Author

ieugen commented Sep 13, 2017

Solved using instructions from #111

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