Lebod's avatar
Level 1

PHP Extensions ie. php7.0-xml or php-xml

This is an issue with a couple of servers that we have on Forge. Running an apt-get upgrade says that php7.0 extensions are no longer required and can be removed with autoremove.

The problem is that I tried this on our staging server and removing the php7.0 extensions like php7.0-xml php7.0-gd php7.0-mcrypt php7.0-mbstring crashes our Laravel app EVEN THOUGH we have the same versions already installed like php-xml php-mcrypt php-mbstring.

Would anybody know why this is happening and how to fix it?

0 likes
1 reply
bobbybouwmann's avatar

I believe the PHP repository for apt-get was changed and requires now to prepend the php version for installing packages. For example:

php5.6-xml
php7.0-xml
php7.1-xml

So you need to get the correct version based on your php version. The regular php-xml package for example is not suitable anymore.

Please or to participate in this conversation.