sudo apt install php-[ext_name]
orsudo pecl install [ext_name]
.cd /etc/php/7.4/mods-available
andls
to see if the[ext_name].so
is available there.- If it's available, then add
extension=[ext_name].so;
to thephp.ini
file and thensudo systemctl restart php7.4-fpm.service
. - Check
php -m | grep [ext_name]
to see if it has been installed. - IF NOT:
php -i | grep extension_dir
and thencd
to the path of the returned extension dir. - The
[ext_name].so
file must be on this path. Copy it to the/etc/php/7.4/mods-available
folder and jump tostep 2
.
Created
September 12, 2021 07:19
-
-
Save majidalaeinia/9f05703fbe39b9cc7f7b1b4c39bd1fe6 to your computer and use it in GitHub Desktop.
PHP Extension Installation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment