Install PHP extensions in Ubuntu
In Ubuntu it is relatively easy to install PHP extensions. The first thing to consider is the name of the extension you are going to install, for example intl. The next thing to consider is the current version of PHP you have installed. If the version you have is 7.4 then you must install the intl extension with the following command.
sudo apt-get install php7.4-intl
As you can see, the package name will be php7.4- followed by the name of the extension. Other extensions like pdo_mysql can be installed in the same way by changing the underscore for a hyphen, like this.
sudo apt-get install php7.4-pdo-mysql
If you use PHP with Apache, you must restart the Apache service to see the changes.
sudo service apache2 restart
See you soon!
Categories
- Laravel
- Sublime Text
- OpenSSL
- PHPUnit
- Go
- Apache
- Docker
- MySQL
- OWASP
- SOLID
- JOSE
- PostgreSQL
- Static Code Analysis
- SSH
- Digital Ocean
- Java
- Javascript
- GNU/Linux Debian
- PHP
- POO
- Lenguaje C
- Lenguaje C++
- RegExp
- HTML
- Vue.js
- HTTP
- Redis
- Supervisor
- Buenas prácticas
- Ubuntu
- Webpack
- Vim
- Linux
- Arch Linux
- CSS
- Flutter
- Laravel Vapor
- CI/CD
- cPanel
- WHM
- Networking
- Python
- MacOS
- Lógica y algoritmia
- Git
- Dart
- AWS
- Codeception
- Visual Studio Code
- TypeScript
- SEO
- Node.js
- Nuxt.js
- Google Cloud