Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

PHP function imageline on localhost works, but on VPS cloud hosting doesn't. I guess I have download something, but I don't know what. Could you give me a hand?

P.S. PHP GD is already downloaded.

share|improve this question

Downloaded or installed?

It isn't enough to just download it, you need to install and enable it. You didn't provide what OS is there on your VPS, so I can't say how exactly. In CentOS/RHEL/Fedora you can do it by using yum install php-gd (which will also add an INI file in /etc/php.d), restarting your web server and making sure that GD is now listed as enabled in phpinfo().

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.