Ubuntu - solving captcha problem
18 December 2008 by oxyk
Apache/php installation on Ubuntu works out of the box. However, some features not available and must be installed manually.
If you had a chance to develop captchas or other image rotating related pages, you may notice that on Ubuntu the images are not visible. Phpinfo () have records about installed GD, but…
Here’s the way how i’ve solved this ussue with my Ubuntu 8.04.
In terminal:
sudo apt-get install php5-gd
The following extra packages will be installed:
libgd2-xpm libt1-5
Suggested packages:
libgd-tools
The following packages will be REMOVED:
libgd2-noxpm
The following NEW packages will be installed:
libgd2-xpm libt1-5 php5-gd
...
dpkg: libgd2-noxpm: dependency problems, but removing anyway as you request:
libgraphviz4 depends on libgd2-noxpm (>= 2.0.35.dfsg) | libgd2-xpm (>= 2.0.35.dfsg); however:
Package libgd2-noxpm is to be removed.
Package libgd2-xpm is not installed.
Please notice, that we switched packages libgd2-noxpm and libgd2-xpm during installation.
Last step is restart Apach with
sudo /etc/init.d/apache2 restart
Now generated images should be visible.

