EasyEngine / easyengine

Command-line control panel for Nginx Server to manage WordPress sites running on Nginx, PHP, MySQL, and Let's Encrypt
https://easyengine.io
MIT License
2.12k stars 433 forks source link

Add custom PHP modules to a site #1313

Closed buzucan closed 3 years ago

buzucan commented 5 years ago

In V3 with sudo apt-get install php-intl I was able to install intl extension, but now, with V4 and docker I don't know how to enable this. Can you help us?

I read documentation from here but it doesn't help.

buzucan commented 5 years ago

when i try to use shell (docker-php-ext-install intl) for specific site i recieve this error image

buzucan commented 5 years ago

i found an installer for intl maybe it will be standard in V4 https://github.com/prooph/docker-files

mbtamuli commented 5 years ago

@buzucan Thanks for going the extra mile and trying to find a solution.

  1. Currently we don't have a method for users being able to add php extensions. Even if you use ee shell and thendocker-php-ext-install it is not a persistent change and might be lost if the container restarts.

  2. About adding it in the core, I'll get back to you soon on this.

buzucan commented 5 years ago

I really need intl for my plugins so... I`m looking for a solution. :)

mbtamuli commented 5 years ago

@buzucan As a temporary measure, you can run the docker-php-ext-install command as root. (https://easyengine.io/commands/shell/)

ee shell example.com --user=root

buzucan commented 5 years ago

it worked. thanks :)

buzucan commented 5 years ago

btw, after that ive installed admin tools and ive removed. Then the php intl was removed, too. :)

mbtamuli commented 5 years ago

I accidentally closed the issue.

Then the php intl was removed, too

That is what I meant when I said it was a temporary solution

gabrielwohlfart commented 5 years ago

I also need the intl extension. I liked the suggestion to add it in the core

pserafini commented 5 years ago

yes please. All Prestashop (and many other Ecommerce solutions)users will need intl + Mysql PDO Please make this happen in core :)

CryptoDragonLady commented 5 years ago

Why not have dockerfiles for each core component so custom additions can be made and retained through container rebuilds?

kirtangajjar commented 3 years ago

@CryptoDragonLady @pserafini @gabrielwohlfart This can be now done with custom docker compose feature added in v4.2.0. Please check https://easyengine.io/blog/easyengine-v4-2-0-released/ and https://easyengine.io/handbook/customising-docker-compose-stack-in-easyengine-v4/

steve231293 commented 1 year ago

Hello @kirtangajjar Could you give me details instuctions how to install an PHP extension with custom docket added in EE 4.2.0?

ryanhalliday commented 10 months ago

I wrote on how to add PHP extensions/modules here: https://github.com/EasyEngine/easyengine/issues/1419#issuecomment-1884089199