GD library installed - should I be editing my php.ini file?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
GD library installed - should I be editing my php.ini file?
Sorry for the dumb question, I've searched and could find an answer.
I have a dedicated Linux server with CentOS 5.x 32-bit + Plesk v9.x
I am running some wordpress sites that need to run timthuumb.php script to manage thumbnail images. The script is not running properly as I beleiev I need to have the GD library installed on my server.
If you used your package manager to install pph-gd, it should have taken care of php.ini and the other relevant php config files.
Anyway, if you want to edit php.ini, you can use vim, nano, or gedit, whatever editor you're familiar with
If you used your package manager to install pph-gd, it should have taken care of php.ini and the other relevant php config files.
Anyway, if you want to edit php.ini, you can use vim, nano, or gedit, whatever editor you're familiar with
Regards
thanks @bathory, but maybe you've misunderstood, I am not familiar with any editor.
I was looking for specific instructions on how to open my php.ini file so I could edit it (specifically to comment out
extension=php_gd2.dll)in puTTY which I believe is the issue I have. (as timthumb.php functionality does not run)
problem being that I run a dedicated server without support, so can't open a ticket to request doing it, so step be step instructions would be most helpful
As I've told you, if you used yum (Centos package manager) to install the php-gd package, there is no need to worry about php.ini.
You can run from the putty terminal
Code:
php -i|grep GD
to verify if the gd library is installed
Note that you need to restart your webserver (I guess it's apache) to enable php-gd.
Anyway if you insist to edit php.ini, make a backup first and then use nano, that is easier than vi. Write (as root) in putty
Code:
nano php.in
You'll see at the bottom the various keys that you can use. For more details take a look at this tutorial
thanks again for your reply... I tried your first suggestion and ran
# php -i|grep GD
from the root
I then restarted the server (you're correct it is apache) but I can't see any evidence that it has done anything other than my website which still does not show the thumbnails that should appear with GD support?
I ran the yum install, and got the following, I won't pretend I know what it means, but there maybe an issue with missing dependencies?
any advice would be much appreciated, thanks
Code:
]# yum install php-gd
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* epel: mirror01.th.ifl.net
* extras: mirror.sov.uk.goscomb.net
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-gd.i386 0:5.1.6-32.el5 set to be updated
--> Processing Dependency: php-common = 5.1.6-32.el5 for package: php-gd
--> Finished Dependency Resolution
php-gd-5.1.6-32.el5.i386 from base has depsolving problems
--> Missing Dependency: php-common = 5.1.6-32.el5 is needed by package php-gd-5.1.6-32.el5.i386 (base)
Error: Missing Dependency: php-common = 5.1.6-32.el5 is needed by package php-gd-5.1.6-32.el5.i386 (base)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
Huh. I guess you've installed php (php-common) from a different repository than the one you're trying to install php-gd.
You can uninstall the packages related to php and then use yum to install them all together along with php-gd
OK, don't uninstall anything. I guess this happening because of plesk.
Take a look at the last post here. If it doesn't help on your situation, go into their forums and ask for support.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.