Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-09-2004, 05:52 AM   #1
Registered: Sep 2003
Location: Holland
Distribution: SuSE 9.2
Posts: 39

Rep: Reputation: 15
Questions about recompiling Apache and PHP (static)

Hi all,

I've just installed Apache with PHP as a static part of Apache (not a DSO) on SuSE Linux 9.0, using the following commands. First of all, I’ve saved the two tarballs in /usr/src/packages/SOURCES.

# cd /usr/src/packages/SOURCES
# tar xvfz php-4.3.4.tar.gz
# tar xvfz apache_1.3.29.tar.gz
# cd apache_1.3.29
# ./configure --prefix=/usr/local/apache --enable-module=so (see question 2)
# cd ../php-4.3.4
# ./configure
--disable-memory-limit (see question 3)
# make
# make install
# cp php.ini-dist /usr/local/lib/php.ini
# cd ../apache_1.3.27
# ./configure
--prefix=/usr/local/apache (see question 4)
# make
# make install

The following questions occured to me:

1) Is it true that I can clear the directory /usr/src/packages/SOURCES after this or are there parts in there that are being used by Apache or PHP?

2) Is it correct that I’ve installed PHP as a static module but I can use other DSO’s because I compiled Apache using ‘—enable-module=so’?

3) Unfortunately I’ve forgotten several parameters for the PHP configure. I like to add these to my PHP installation. Can I just rerun from the PHP configure and follow the rest of the steps or should I uninstall Apache/PHP and reinstall from scratch? If so: How can I remove the programs?

4) Is it needed to add ‘--prefix=/usr/local/apache’ since I added that line above already?

I hope that anyone is willing to answer my questions, so I can continue improving my new Linuxsystem. Thanks in advance!




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
recompiling php arichardson Fedora 2 11-21-2005 07:17 AM
Apache, MySQL, PHP, a couple simple questions. The_Messiah Linux - Software 3 04-09-2005 05:17 PM
recompiling php kris-nz Linux - Software 1 11-30-2004 10:52 PM
Installing PHP from source on RedHat 9 with Apache -- few questions? Bungo2000 Linux - Software 1 06-05-2003 03:41 PM
recompiling php question j-ray Linux - Software 5 07-20-2002 04:10 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:13 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration