Gettings segmentation fault and other errors

I’ve had some issues with a server EasyEngine v4. At first i started getting segmentation faults running any php command and now after restart of the server I keep getting the following when starting a shell for a site:

PHP Warning: PHP Startup: Unable to load dynamic library ‘’ (tried: /usr/lib/php/20170718/ (/usr/lib/x86_64-linux-gnu/ invalid ELF header), /usr/lib/php/20170718/ (/usr/lib/php/20170718/ cannot open shared object file: No such file or directory)) in Unknown on line 0
Error response from daemon: Container 2a53dee6995506a48f758fc05bf5ef1c7fce586822c5f0df7de10c3168e721d6 is restarting, wait until the container is running

Any ideas of what might cause these issues?

Might be related to these:

I had to do two reboots to get EE’s services to start properly.