PHP gallery2:

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
^rooker
Site Admin
Posts: 1484
Joined: Fri Aug 29, 2003 8:39 pm

PHP gallery2:

Post by ^rooker »

[PROBLEM]
Installing gallery2 on Ubuntu Hardy 64, support for GD (graphic stuff) was missing:
Critical GD functions are not available. Please ask your system
administrator for help.
[SOLUTION]
- Install the package "php5-gd" (or php4-gd if you're using php4)
- Reload apache's configuration

Here's the 2 commandlines for that:

Code: Select all

apt-get install php5-gd
/etc/init.d/apache2 reload
[TROUBLESHOOTING]
In case GD should still be unavailable, make sure that it was really loaded by looking at the output of "phpinfo()":

1) Create a file called "info.php"
2) put the following code into it:

Code: Select all

<?php phpinfo(); ?>
3) Open the URL pointing to this info.php and look at its content.

You should see some row labeled:
additional .ini files parsed
containing a reference to:
/etc/php5/apache2/conf.d/gd.ini
If that's the case, php's gd module was successfully loaded.
Post Reply