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

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.


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

Author Spotlight

Richi González

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 *


8 × = 64

You may use these HTML tags and attributes: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>