Enable GD library for php?

how do i enable GD library for php?
thanks

neorf

You probably just need to install the PHP GD module.

How to do that differs depending on what distro you’re using, but on CentOS/RHEL, it’s something like:

yum install php5-gd

i’m on ubuntu, done with apt-get install php5-gd, and now? how to load?
thanks

ok i’ve restarted apache2, all good thanks.
1 question: how if i do /etc/init.d/apache2 restart, many times i get:
<<<

  • Starting web server apache2
    (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
    no listening sockets available, shutting down
    Unable to open logs
    <<<
    but if i normal stop and start, waiting 5 seconds, all is good?
    Thanks

the restart is sending a HUP signal, graceful restart, used to apply only if you changed a configuration. It’s like reloading the config.
To my best knowledge the “error” can be ignored

stop will disconnect and reconnect with start.

This is a buggy behavior in Ubuntu’s initscript (the Ubuntu folks “improved” the initscript a few months ago; and as is often the case with Ubuntu improvements, it broke things). The Ubuntu folks make a fine desktop OS, but methinks they don’t have a lot of experience on the server, and it shows. :wink:

You’ll want to stop/start until they fix it.

It leads to hung apache processes that don’t respond.

I have same question? I install php7.0-gd but I can not available …
thanks

Victor, this post was from 2009. Start a new thread rather than reviving ancient ones.

You haven’t told us your distro or version so I’ll guess CentOS 7.

# yum install rh-php70-php-gd