LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 05-09-2004, 05:52 AM   #1
Maarten_Holland
Member
 
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
--with-mysql=/usr/
--with-apache=../apache_1.3.29
--with-jpeg-dir=/usr/lib
--enable-short-tags
--disable-magic_quotes
--disable-memory-limit (see question 3)
# make
# make install
# cp php.ini-dist /usr/local/lib/php.ini
# cd ../apache_1.3.27
# ./configure
--activate-module=src/modules/php4/libphp4.a
--enable-module=php4
--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!

Cheers,

Maarten
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:08 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
Open Source Consulting | Domain Registration