Keywords: LAMP/MAMP/WAMP - Linux - Technical issue - Other
Define the phpize file to the system.
Go to the php/bin path in the directory where LAMP is installed. Turn on the terminal here and run sudo cp -i phpize /usr/local/bin/phpize
Install compiler packages.
Install compile packages that are not installed in Ubuntu from the terminal with the sudo apt-get install autoconf command.
Download the source code of PHP.
As with most applications in GitHub, PHP still has a source code that is still in development, the source code contains all the plug-ins that can be compiled by PHP, therefore you need to download the source code of PHP. https://github.com/php/php-src
Decide which plug-in you want to install.
In the PHP source code that you downloaded, the folder named ext is the plug-ins folder ready to compile. Copy and paste the plug-in you need in this folder to the Desktop.
Compile the plugin.
Open the add-in folder that you copied to the desktop with the terminal and run the following commands respectively. Do not forget to update the directory part of the LAMP installation.
./configure --with-php-config=The directory where the LAMP installation took place/php/bin/php-config
Copy the compiled add-in between LAMP add-ins.
The ready-to-use plug-in can be found in the modules folder in the folder where you applied the commands. Copy the .so extension plug-in file to the php/lib/php/extensions path in the directory where the LAMP installation occurs.
Define the add-in in the php.ini file.
Open the php.ini file located in the php/etc path in the directory where the LAMP installation takes place. Type the name of the add-in that you copied in the previous step without a semicolon. extension = extensionname.so
Restart LAMP, you can now use it easily.
If you need more information about Linux, please do not hesitate to ask questions.