Download your favorite Linux distribution at LQ ISO.
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 05-29-2003, 12:11 PM   #1
Registered: May 2003
Posts: 32

Rep: Reputation: 15
Question Configuring the Apache2 config file to use PHP4

Well, the subject title sais most of it. I have apache2 installed successfully, and php4 installed (successfully, i think). I know i have to add a line or two to the apache config file to get it to use php. Could anyone tell me exactly what these lines are?

(i'm rinning mandrake 9.1, and i installed apache and php with the default options.) (i didn't intsall the versions that came with drake, i got the latest versions off the net)

Old 05-29-2003, 12:16 PM   #2
Senior Member
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
are you using apache 2.0.46 ? it's important that you use the latest version of it for security reasons.

regarding php4 check the INSTALL file in the source tree of php. it contains detailed instructions. be sure to use php 4.3.2 BTW!
Old 05-29-2003, 12:46 PM   #3
Registered: May 2003
Posts: 32

Original Poster
Rep: Reputation: 15
yes, i'm using apache 2.0.46 and php 4.3.2. what you said kind of helped. i'm supposed to put a line in that sais "LoadModule php4_module libexec/". apache reports an error when i try to load it now, apparently "libexec/" doesn't exist. i tried searching for "" and it doesn't seem to be on my drive anywhere.
Old 05-29-2003, 12:59 PM   #4
Registered: May 2003
Posts: 32

Original Poster
Rep: Reputation: 15
i decided i might have messed something up while installing php, i'm doing it again. i think omitting --with-apxs was a bad idea. i dont even know what the heck it does


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
where is the apache2 config file dev_mohamed Linux - Software 2 06-20-2005 08:21 PM
apache2 + php4 atheist Linux - Software 6 10-25-2004 03:12 PM
Apache2: which config file to alter? hamish Linux - General 10 06-16-2004 05:12 PM
Apache2 and php4 problems configuring linoob Linux - General 2 07-01-2003 05:21 AM
Debian, apache2 and php4 Pasi Linux - Distributions 1 03-20-2003 07:28 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:57 PM.

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