Created
November 21, 2024 11:50
-
-
Save jsanbae/b3351fde0e02af5da92d51ee555221e8 to your computer and use it in GitHub Desktop.
Install ssh2 on PHP7.4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- sudo apt-get install php7.4-dev | |
- sudo update-alternatives --config php-config (seleccionar la versión 7.4) | |
- sudo apt install php7.4-ssh2 ó sudo pecl install -f ssh2 | |
- echo extension=ssh2.so > /etc/php/7.4/mods_available/ssh2.ini | |
- crear link simbólico de la extensión sudo ln -s /etc/php/7.4/mods-available/ssh2.ini /etc/php/7.4/cli/conf.d/20-ssh2.ini | |
- reiniciar el php-fpm sudo /etc/init.d/php7.4-fpm restart | |
- verificar que esté instalada con php -m |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment