One of my agency projects on Laravel has a composer dependency that needs "sodium PHP extension", but Bitnami LAMP instance doesn't come with it installed.
So after trying for almost one hour i successfully install it following this steps:
- First you need to install libsodium-dev through apt
sudo apt install libsodium-dev
- Then, using PECL (PHP Extension Manager) you have to install the extension per se
sudo pecl install -f libsodium
- Finally, edit php.ini file to activate the extension and restart the services
sudo nano /opt/bitnami/php/etc/php.ini
# find "extension=sodium" and uncomment it
sudo /opt/bitnami/ctlscript.sh restart
With these steps you have installed PHP sodium extension in your instance
Top comments (0)