Install PHP extensions in Arch Linux

Author
By Darío Rivera
Posted On in Arch Linux

In Arch Linux it is relatively easy to install PHP extensions. The first thing you should consider is the name of the extension you are going to install, for example intl. The easiest way to install this extension is to run the following command.

sudo pacman -S php-intl

As you can see the package name will be php- followed by the extension name. Other extensions like pdo_mysql come built in and can be enabled by uncommenting the respective line in the php.ini file.

extension=pdo_mysql

You can check where the php.ini file is by running the following command.

php -i | grep php.ini

If you use php with Apache, you will need to restart the Apache service to see the changes.

systemctl restart httpd

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.