Enable GD library for php?

8 posts / 0 new
Last post
#1 Fri, 06/19/2009 - 22:28
neorf

Enable GD library for php?

how do i enable GD library for php? thanks

neorf

Fri, 06/19/2009 - 22:36
andreychek

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

Sat, 06/20/2009 - 07:18
neorf

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

Sat, 06/20/2009 - 07:22
neorf

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

Sat, 06/20/2009 - 11:01 (Reply to #4)
Joe
Joe's picture

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. ;-)

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

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

--

Check out the forum guidelines!

Sat, 06/20/2009 - 08:14
ronald
ronald's picture

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.

Tue, 09/12/2017 - 09:47
victornewman

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

Victor

Tue, 09/12/2017 - 23:41 (Reply to #7)
Joe
Joe's picture

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

--

Check out the forum guidelines!

Topic locked