Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 06-05-2003, 02:50 PM   #1
Registered: Mar 2002
Location: San Francisco, CA
Distribution: Redhat 9
Posts: 35

Rep: Reputation: 15
Arrow Installing PHP from source on RedHat 9 with Apache -- few questions?

I'm trying to install PHP 4.3.2 from source on a RedHat 9.1 web/mail server running Apache 2.0.46 (also compiled from source).

I'm a bit confused as to what options I should use with ./configure for PHP.

With Apache I used the RedHat layout, but PHP doesnt seem to have one, though it does have a GNU layout option. I want PHP to be a module for Apache. In fact, I only want to use PHP for squirrelmail! I'm just very confused as to where stuff should be installed to. Redhat RPMs install with a very specific scheme, but I guess it doesnt actually really matter where I put stuff.

Do I need to specifcy the location of my Apache files, or will it automatically find them, or does it not even need them. If it doesn't need them, how will I get PHP working with Apache?

Also, if I just install a RedHat PHP RPM, will this cause a problem because my Apache was installed from source? Can RPMs automatically find correct flie paths?

Also, what's the deal with 'uninstalling' things compiled from source? My Apache source didnt have an uninstall option, and from what I can see, this PHP one wont have one either. Shouldn't I simply be able to 'make uninstall' ? If not, whats the best way to uninstall something installed from source?

Sorry for being so vague, just some clarifications would be really nice

Thanks a lot!
Old 06-05-2003, 04:41 PM   #2
LQ Newbie
Registered: Jun 2003
Posts: 5

Rep: Reputation: 0
Regarding compiling php to work with apache, you'll want to run the php ./configure like so:
./configure --with-apxs=/usr/local/apache/bin/apxs (or wherever apxs is). The apxs script will compile php as a loadable module for use with apache.

After that just add this line (if it wasn't automatically added)
to your httpd.conf:

LoadModule php4_module libexec/

Then, add

application/x-httpd-php php

to your mime.types file and reload apache.


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
Open source IDE for PHP, MySQL, Apache, Red Hat 9 lothario Red Hat 2 06-02-2010 03:27 AM
Problems installing Apache/PHP from source minorgod Mandriva 0 09-11-2004 08:45 PM
Questions about recompiling Apache and PHP (static) Maarten_Holland Linux - Newbie 0 05-09-2004 06:52 AM
Help Installing MySql, Apache and PHP for RedHat 8 rmedina Linux - Newbie 2 10-18-2003 06:36 PM
Installing PHP with Apache on redhat linux 8 darrrth Linux - Distributions 1 06-13-2003 04:12 AM > Forums > Linux Forums > Linux - Software

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