I hope everyone is okay. Let's go:
I'm trying to enable some php extensions and I can't at all.
I use ubuntu with the following version:
Apache:
Server version: Apache/2.4.52 (Ubuntu)
Mysql:
mysql Ver 8.0.32-0ubuntu0.22.04.2 for Linux on x86_64 ((Ubuntu))
PHP
I went to the php.ini file, uncommented the necessary extensions: /etc/php/8.2/apache2
I have already restarted apache2. I restarted the OS. And whenever I check through phpinfo(); it's always the same.
php -m
What could I do? Would it be a bug in the communication between the server and the language modules?
Thanks in advance.
un-commenting will not work on Ubuntu/Debian libux as you should install extension like sudo apt install php8.2-curl
i believe you do not have php-fpm installed with apache and using default .... hence you need to restart apache2 for changes to take effect. you can check if php-fpm is configured with apache either via phpinfo() or via sudo service php8.2-fpm status
.
you may refer this article for detailed information on how to install. Please also note you might have to add Ondřej Surý’s PHP PPA to get latest stable versions of php for ubuntu