php gd support problem

I just tried to add some php to a site, and there is an error message that reads “GD Support not detected! GD required for this script.”

A quick search on Google led to this solution:

$ sudo apt-get install php5-gd

But one of the messages that came up on install suggests a conflict, i.e.:

dpkg: libgd2-noxpm: dependency problems, but removing anyway as you request:
webalizer depends on libgd2-noxpm (>= 2.0.33) | libgd2-xpm (>= 2.0.33); however:
Package libgd2-noxpm is to be removed.
Package libgd2-xpm is not installed.

I guess that I can live without Webalizer anyway. But always a worry when these things happen!

UPDATE – that problem has been quickly superceded by the message on the webpage:

Warning: session_start() [function.session-start]: Cannot send session cookie – headers already sent by (output started at /var/www/contact.html:6) in /var/www/formmailer.php on line 1

Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /var/www/contact.html:6) in /var/www/formmailer.php on line 1

If you know how to fix this, please let me know!

Leave a Reply

Your email address will not be published. Required fields are marked *