Enable an extension in Window environment is easy. Open php.ini file and remove the ; before the module and restart the server. But, to enable an extension in LINUX, it is not so easy. Steps are below:
1. open synaptic with admin controls...
sudo synaptic
2. Search your extension which you want to load using search tool
3. Select extension(s) from the list.
4. Click on apply. Selected extension(s) will be installed
;for windows environment, use .dll
extension=newextension.dll
;for LINUX environment, use .so
extension=newextension.so
For example, to install curl,ffmpeg and json
extension=php_curl.dll
extension=ffmpeg.so
extension=json.so
6. Save the file and restart the apache by writing following line in terminal window.
sudo /etc/init.d/apache2 restart
The most easiest way to install an extension in ubuntu flavor is below:
Open Applications > Accessories > terminal
write sudo apt-get install extension1 extension2 extension3.
For example, to install curl extension, command should be like this
sudo apt-get install curl libcurl3 libcurl3-dev php-curl