How to Add an Extension to the php.ini Through a Terminal in Linux

Written by Richi González Sunday, 22 July 2012

Hello,

I’ll show you how to easily add an extension to the php.ini with a simple line in a terminal.

1. Open up a terminal or console.

The code is:

echo "extension=extensionname" >> /path/to/php.ini

2. Change path/to/php.ini to yours, and extensionname to the name of your extension.

That’s it, simply execute and restart httpd. You can do it with: service httpd restart. If you have any question or comment, just let me know and I’ll assist you.

Best Regards,

Richi

Owner of Juapo2Services.com

Looking for quality Linux Web Hosting? Try out Arvixe web hosting and you won’t be disappointed.



Leave a Reply






three × = 12