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


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,


Owner of

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

Tags: , , , , , , , | Posted under Linux Server Admin, Linux Usability | RSS 2.0

Author Spotlight

Richi González

I started programming when I was 12. I'm a Developer and have been working with the Clip-Bucket script since it came out. I'm the Liaison between Arvixe and Clip-Bucket, so anything you need regarding Clip-Bucket or any particular computer-related subject you need, let me know so I can assist you.

Leave a Reply

Your email address will not be published. Required fields are marked *