LinuxQuestions.org
Review your favorite Linux distribution.
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 02-19-2002, 03:16 AM   #1
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
new apache/php


Hi! I'd like to get myself a new version of apache and php but don't know how to compile and install it. Is it a difficult thing or rather easy? Are there some docs for it somewhere? I wouldn't like to crash my running system. Any help much appreciated. Jens
 
Old 02-19-2002, 10:31 PM   #2
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
I think that best docs for installing php/apache are in the php source directory. The file INSTALL has detailed instructions on how to compile php for apache as a module or staticly linked. Just download the source for both. Extract them, then follow the INSTALL file.

It's easy...
 
Old 02-20-2002, 09:22 AM   #3
Syncrm
Member
 
Registered: Aug 2001
Location: Lansing, Michigan
Distribution: slackware8+
Posts: 472

Rep: Reputation: 30
get the tarballs for both, available at their respective sites, and unpack them both into the /usr/src/ dir and create symlinks like so:

ln -s apache-1.x.xx apache
ln -s php-4.1.xx php

in the apache src dir:

./configure --prefix=/your/apache/path
(my apache path is /usr/local/apache) but it can be whatever you want

then cd into your php src dir (/usr/src/php) and do this:

./configure --with-apache=/usr/src/apache \
--enable-track-vars \
--with-zlib

there are also some additional steps you'll want to take if you compile apache with mysql (which i highly recommend). now do the following:

make
make install
cd ../apache
./configure --prefix=/usr/local/apache \
--activate-module=src/modules/php4/libphp4.module
make
make install

now you should be ready to run apache with php. there are some various issues i ran into (like the php module not being in the httpd.conf file, which you may need to add). plus errors when i tried to build apache with php. this can get pretty in depth though, so i'll refer you to this site which should be able to walk you through the rest:

http://www.rocketry.org/~tim/tutorials/mysql.php

good luck! :-)

Last edited by Syncrm; 02-20-2002 at 09:24 AM.
 
Old 02-20-2002, 01:41 PM   #4
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Original Poster
Rep: Reputation: 145Reputation: 145
you're great! thanks a lot
 
Old 02-20-2002, 05:00 PM   #5
Syncrm
Member
 
Registered: Aug 2001
Location: Lansing, Michigan
Distribution: slackware8+
Posts: 472

Rep: Reputation: 30
heh... no problem. i was a little bored at work. :-)
 
  


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
Apache 2, PHP 5, SuSE 9.2 - cannot run php files dickohead Linux - Networking 6 06-28-2006 10:25 AM
php apache or php cgi - php learner rblampain Linux - Security 3 12-17-2004 11:10 PM
slackware, apache and PHP from .tgz - problems with PHP szymon Slackware 2 09-06-2004 04:57 PM
reinstalled apache, php, still no php support SuSE 8.2 hindenbergbaby Linux - Software 1 10-14-2003 01:42 PM
php-nuke with apache php mysql c0c0deuz Linux - Software 0 03-30-2003 06:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:52 AM.

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
Open Source Consulting | Domain Registration