LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-06-2003, 12:34 AM   #1
Astro
Member
 
Registered: Jan 2003
Location: Ballston Lake, NY
Distribution: Slackware, Debian
Posts: 660

Rep: Reputation: 30
Exclamation Ifmonitor/GD/PHP4 help


Has anyone ever installed GD with PHP4 and got it to work in slack with apache? I can't seem to get it to pick up anything :-\ no matter how I install the php/gd. I am getting this error right now...

Fatal error: Call to undefined function: imagecreate() in /usr/local/apache/web/ifmon/include/chart.php on line 28

Which gives me the imperssion that the latest way I tried to install gd/hp didn't work at all. the other errors I was getting were about the ImageCreatepng or something, which also had to do with GD/PHP...

Here are the steps I am using to compile/install apache and php4... keep in mind gd 2 is already installed on the system, and either way if I keep the --with-gd or if I use --with-gd=/dir/to/gd it does the same thing. Can anyone shed some light on this?

1. gunzip apache_1.3.27.tar.gz
2. tar xvf apache_1.3.27.tar
3. gunzip php-4.3.1.tar.gz
4. tar xvf php-4.3.1.tar
5. cd apache_1.3.27
6. ./configure --prefix=/usr/local/apache
7. cd ../php-4.3.1
8. ./configure --with-apache=../apache_1.3.27 --with-mysql=/usr/local/mysql --enable-track-vars --with-gd
9. make
10. make install
11. cp libs/libphp4.a ../apache_1.3.27/src/modules/php4/
12. cd ../apache_1.3.27
13. ./configure --activate-module=src/modules/php4/libphp4.a
14. make
15. make install
 
Old 05-20-2003, 04:00 PM   #2
M.W
LQ Newbie
 
Registered: May 2003
Posts: 2

Rep: Reputation: 0
Re: Ifmonitor/GD/PHP4 help

Quote:
Originally posted by Astro
Has anyone ever installed GD with PHP4 and got it to work in slack with apache? I can't seem to get it to pick up anything :-\ no matter how I install the php/gd. I am getting this error right now...

Fatal error: Call to undefined function: imagecreate() in /usr/local/apache/web/ifmon/include/chart.php on line 28

Which gives me the imperssion that the latest way I tried to install gd/hp didn't work at all. the other errors I was getting were about the ImageCreatepng or something, which also had to do with GD/PHP...

Here are the steps I am using to compile/install apache and php4... keep in mind gd 2 is already installed on the system, and either way if I keep the --with-gd or if I use --with-gd=/dir/to/gd it does the same thing. Can anyone shed some light on this?

1. gunzip apache_1.3.27.tar.gz
2. tar xvf apache_1.3.27.tar
3. gunzip php-4.3.1.tar.gz
4. tar xvf php-4.3.1.tar
5. cd apache_1.3.27
6. ./configure --prefix=/usr/local/apache
7. cd ../php-4.3.1
8. ./configure --with-apache=../apache_1.3.27 --with-mysql=/usr/local/mysql --enable-track-vars --with-gd
9. make
10. make install
11. cp libs/libphp4.a ../apache_1.3.27/src/modules/php4/
12. cd ../apache_1.3.27
13. ./configure --activate-module=src/modules/php4/libphp4.a
14. make
15. make install
I'm having problems to run ifmonigor @ Slackware too...
Did you solve your problem?

Regards,
M.W
 
Old 05-20-2003, 07:17 PM   #3
Astro
Member
 
Registered: Jan 2003
Location: Ballston Lake, NY
Distribution: Slackware, Debian
Posts: 660

Original Poster
Rep: Reputation: 30
Not as of yet I havnt solved them. It seems as if I don't have the GD installed with all the proper graphics libraries.... I'm still working on the problem and hope to have it resolved soon after I get home from school for the summer.
 
Old 05-20-2003, 08:01 PM   #4
M.W
LQ Newbie
 
Registered: May 2003
Posts: 2

Rep: Reputation: 0
Quote:
Originally posted by Astro
Not as of yet I havnt solved them. It seems as if I don't have the GD installed with all the proper graphics libraries.... I'm still working on the problem and hope to have it resolved soon after I get home from school for the summer.
Well...

Keep me informed

Regards,
M.W
 
  


Reply


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
Help loading php4-gd with php4 already installed. (Debian) sdduuuude Linux - Software 3 10-24-2005 06:13 AM
Enabling PHP4 Doug.Gentry Linux - General 5 04-02-2005 12:17 AM
PHP4 help!! kman2045 Linux - Software 1 01-21-2004 09:30 AM
php4.3 orco77 Linux - Software 17 05-15-2003 08:06 PM
ifmonitor installation problems Astro Slackware 3 04-30-2003 01:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:55 PM.

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