Argon2

From Just another day in the life of a linux sysadmin
Jump to navigation Jump to search

Steps taken to install this correctly adjust as needed for paths and PHP Version etc

cd /usr/local/src/
git clone --recursive https://github.com/charlesportwoodii/php-argon2-ext
cd php-argon2-ext/
cd ext/argon2/
CFLAGS="-fPIC" make -j1 OPTTARGET=i686
make test
rm libargon2.so
rm libargon2.so.1
cd ..
/opt/cpanel/ea-php72/root/usr/bin/phpize
./configure --with-argon2 --with-php-config=/opt/cpanel/ea-php72/root/usr/bin/php-config
make
make install
echo "extension=argon2.so" > /opt/cpanel/ea-php72/root/etc/php.d/20-argon2.ini
scl enable ea-php72 'php -i | grep -i argon'