Install PHP Extensions on Debian

Author
By Darío Rivera
Posted On in GNU/Linux Debian

In Debian it's relatively easy to install PHP extensions. The first thing you need to keep in mind is the name of the extension you're going to install, for example intl. The easiest way to install this extension is by running the following command.

sudo apt-get install php-intl

As you can see, the package name will be php- followed by the extension name. Other extensions like pdo_mysql can be installed in the same way by changing the underscore for a dash like this.

sudo apt-get install php-pdo-mysql

If you use PHP with Apache, you'll need to restart the Apache service to see the changes.

sudo service apache2 restart

See you soon!


Acerca de Darío Rivera

Author

Application Architect at Elentra Corp . Quality developer and passionate learner with 10+ years of experience in web technologies. Creator of EasyHttp , an standard way to consume HTTP Clients.

LinkedIn Twitter Instagram

Sólo aquellos que han alcanzado el éxito saben que siempre estuvo a un paso del momento en que pensaron renunciar.