LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 10-06-2003, 05:37 PM   #1
WiWa
Member
 
Registered: Aug 2003
Distribution: Redhat 9.0, Fedora Core, Suse 9.1, Mandrake
Posts: 82

Rep: Reputation: 15
compiling PHP


Hi all,

I have recently installed PHP/Apache/MySQL. I have also compiled the package cURL so that it works together with Apache and PHP. This all works fine.

Now, I want to add some packages to Apache and PHP, but I have tried so many suggestions and nothing seems to do the job.
I would like to have support zlib, jpeg6b, libpng, t1lib, freetype and especially GD.

I unpacked all these packages into /usr/local and then did:

cd apache_1.3.28
./configure --prefix=/usr/local/apache

cd php-4.2.3
./configure --with-mysql=/usr \
--with-xml --with apache=../apache_1.3.28 \
--with-curl=../curl\
--with-jpeg-dir=/usr/local/jpeg-6b \
--with-png-dir=/usr/local \
--with-freetype-dir=/usr/local \
--with-ttf \
--with-t1lib \
--with-tiff-dir=/usr/local \
--with-gd=/usr/local \
--enable-gd=/usr/local \
--enable-sockets \
--with zlib

make
make install

cp php.ini-recommended /usr/local/lib/php.ini

cd apache-1.3.28
make
make install


It looks like it did not do anything as my phpinfo() gives exactly the same output as before.

Can anyone point me to a REAL good tutorial that explains me how I can add modules and packages to an already installed Apache/PHP/MySQL environment.

Thanks in advance!!!
 
Old 10-06-2003, 05:57 PM   #2
simplico
Member
 
Registered: Jul 2003
Location: Orlando, FL
Distribution: mandrake 10
Posts: 62

Rep: Reputation: 15
what distro do u use? i use mdk and it comes with zlib, jpeg, freetype2, png, etc. just go to install software and search for zlib, jpeg, etc and install them.

here is my config for php: (with apache 2.0.47, not sure if it will work with apache 1.3 but worth a try)

./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-gd --with-gd-dir=/usr/include --with-freetype --with-freetype-dir=/usr/include --with-jpeg --with-jpeg-dir=/usr/include --with-png --with-png-dir=/usr/include --with-zlib --with-zlib-dir=/usr/include --enable-ftp --with-xml

just copy and paste at the command prompt in the php directory and you should be good to go. **change the -dir to fit wherever you have the files installed.
 
Old 10-06-2003, 06:04 PM   #3
simplico
Member
 
Registered: Jul 2003
Location: Orlando, FL
Distribution: mandrake 10
Posts: 62

Rep: Reputation: 15
this url might help too:

http://forums.devshed.com/t31954/s.html
 
Old 10-07-2003, 03:26 AM   #4
WiWa
Member
 
Registered: Aug 2003
Distribution: Redhat 9.0, Fedora Core, Suse 9.1, Mandrake
Posts: 82

Original Poster
Rep: Reputation: 15
Thanks, the problem is I don't know whether I need to recompile (./configure ; make ; make install) Apache again after using your PHP configure command.

I'm afraid to screw up my existing installation.
 
Old 10-07-2003, 10:16 AM   #5
simplico
Member
 
Registered: Jul 2003
Location: Orlando, FL
Distribution: mandrake 10
Posts: 62

Rep: Reputation: 15
it shouldn't. i recompile things before with php and they were still there after i added stuff. give it a try. nothing to be afraid of.
 
  


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
Compiling PHP on Debian j@ckrabbit Debian 1 10-28-2005 03:43 PM
Problem Compiling php-4.3.4 kaplan71 Programming 1 05-17-2004 06:02 PM
Re-compiling PHP lumux Linux - Software 1 01-12-2004 02:25 PM
compiling PHP 4.3.4 bmw5002 Linux - Software 2 12-27-2003 03:01 PM
Compiling PHP Risen Linux - Software 3 10-13-2003 01:28 PM


All times are GMT -5. The time now is 07:41 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