Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-10-2004, 12:41 AM   #1
Registered: Jun 2003
Location: Southern US
Distribution: Ubuntu 5.10
Posts: 206

Rep: Reputation: 30
grrr... LAMP install went fine until I tried to use the GD module of PHP...

Drivin me nuts I tell ya!

I compiled/installed all the components for a LAMP setup on my FC2 machine. Apache 2 is running fine. MySQL is running fine. PHP appears to be running fine.

My problem is that when I compiled PHP, I configured with --with-gd
AFAIK, that *should* have installed with the bundled gd (PHP v. 4.3.9).

Quick check of php_info() shows that indeed, GD IS installed...

GD Support enabled
GD Version bundled (2.0.28 compatible)
GIF Read Support enabled
GIF Create Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled

quick check in term ( php -m ):

[root@mother modules]# php -m
[PHP Modules]

[Zend Modules]

However, I installed Coppermine image gallery to try some stuff out, and have found that I cannot upload any images. The installation keeps telling me that GD is NOT installed on my machine.

So i figure I better check more carefully at the root of the problem.

quick call to gd_info() yields absolutely nothing on the page

This is quite vexing, and I was wondering if anyone else has had this problem?

was there something I was missing in a .ini or .conf file somewhere?
other PHP pages show up with little to no problem. ( hence getting results from php_info() ).

someone please help save my hair before it all ends up on the floor!

Last edited by pld; 11-10-2004 at 12:43 AM.
Old 11-10-2004, 07:58 AM   #2
Registered: Jun 2003
Location: Southern US
Distribution: Ubuntu 5.10
Posts: 206

Original Poster
Rep: Reputation: 30

nobody has had this problem putting a lamp together?
Old 11-10-2004, 10:57 AM   #3
Registered: Jun 2003
Location: Southern US
Distribution: Ubuntu 5.10
Posts: 206

Original Poster
Rep: Reputation: 30
Where did everyone go?

Finally figured out my problem.

If anyone else is considering setting up a LAMP system, here are the lessons I've learned.

Im on FC2.

downloaded and installed MySQL no problem (refer to other tut's for that info).
downloaded and installed Apache/2.0.52

when installing PHP, think carefully about what you would like to do in the future.
for instance, i wanted the ability to create photo albums on my site. figured i would play with coppermine for a while just to keep in touch with family and friends.

the options you need for PHP to be able to handle image manipulation are GD (unless you wanna use ImageMagick).

So, configuring PHP is where the problem was. In my case, I didn't have JPEG support compiled into the GD module.
AND i didnt have a clear understanding of how PHP handled images (a day or so on the site fixed that up a little).

Long story short. if you want GD to handle image manipulation on your site, you'll need to pay careful attention to 2 things.

1. JPEG support. You'll want to install jpeg-6b from

when you compile jpeg-6b, be sure to check your ./configure --help options. in your case you'll want ./configure --enable-shared.
(This is the part that had me pulling hair out for a full day).

2. When compiling PHP, again check your ./configure --help. In my case, it was:
./configure --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql/ --with-zlib --with-bz2 --with-xml --enable-exif --with-gd --with-jpeg --with-jpeg-dir=/usr/local/lib

that should get you going.

Also, as a side note. Coppermine does NOT allow .gif files when using the GD libraries (with good reason, use .png instead). This is yet another case of being impatient and not reading the documentation fully before embarking on a frustrating adventure!

Hope this helps somebody out somewhere...


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting Up LAMP: Getting Linux, Apache, MySQL, and PHP Working Together rhythmking Slackware 2 06-08-2005 04:05 AM
LAMP(Linux,Apache,MySql,PHP) and other info hamtavs General 1 01-25-2005 03:54 AM
HTML/PHP problem, using LAMP AntWarrior Programming 2 11-27-2004 08:49 AM
LAMP(Linux, Apache, MySQL, PHP) Problem gamehack Slackware 7 08-17-2004 02:52 PM
php static module & dynamic module install. eye Linux - Software 0 10-18-2003 12:16 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:33 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration