How do I enable PHP "gd" extension

ricklach
Posts: 19
Joined: Sat Mar 19, 2011 1:53 pm

How do I enable PHP "gd" extension

Postby ricklach » Wed Jan 04, 2012 6:49 pm

I need to have the gd extension enabled in PHP and it seems that it is not enabled by default in the Amahi setup. Can someone tell me how to enable this extension or add the necessary library?

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: How do I enable PHP "gd" extension

Postby bigfoot65 » Wed Jan 04, 2012 7:53 pm

Via command line as root user, do:

Code: Select all

yum install php-gd
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

ricklach
Posts: 19
Joined: Sat Mar 19, 2011 1:53 pm

Re: How do I enable PHP "gd" extension

Postby ricklach » Wed Jan 04, 2012 9:16 pm

OK I did a bad bad thing - I uninstalled and then reinstalled php and of course lost my ability to communicate with Amahi. Is there a way to re-install php with the amahi code that was removed?

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: How do I enable PHP "gd" extension

Postby bigfoot65 » Thu Jan 05, 2012 5:50 am

Yes, reinstall Amahi. If it was me, I would reinstall Fedora and then Amahi. Lesson #1, never uninstall anything you did not install unless you are prepared for the consequences :)
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

ricklach
Posts: 19
Joined: Sat Mar 19, 2011 1:53 pm

Re: How do I enable PHP "gd" extension

Postby ricklach » Wed Jan 18, 2012 12:58 pm

One final question before I take the dramatic step of reinstalling everything. Since it was only the php portion of amahi that I destroyed I figure that I could reconstitute the destroyed packages of php by looking at the original installation script and plucking those parts that created the php.ini file from the installation script and then running them to se if I can return to where it was that I started. Since, worst case I will have to reinstall everything it seems that I should at least try to recreate what I have undone from the installation script before I kill the patient.. Can you tell me where the original installation script is located or how I can get my hands on it to review it and make the necessary changes?

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: How do I enable PHP "gd" extension

Postby bigfoot65 » Wed Jan 18, 2012 3:06 pm

Don't believe that is possible. The installation is done via various parts and pieces, so not just one simple script to look at.

You can try reinstalling PHP and see if that works. Otherwise, I am afraid you are better off reinstalling.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Who is online

Users browsing this forum: No registered users and 22 guests