Visit Jeremy's Blog.
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 02-23-2002, 07:17 AM   #1
Simon W
LQ Newbie
Registered: Feb 2002
Location: London, England
Distribution: Slackware 8.0
Posts: 18

Rep: Reputation: 0
Configuring PHP4 to run with Apache..

I'm setting up Slackware Linux 8.0 (2.2.19 kernel), MySQL, PHP4 and Apache.

MySQL is running fine.

I use the following configure command for PHP:

./configure --with-mysql=/usr/local/mysql --with-xml --with-apache=../apache_1.3.23 --enable-track-vars

and I use the following configure command for Apache:

./configure --activate-module=src/modules/php4/libphp4.a --enable-module=php4 --prefix=/usr/local/apache

When I examine the httpd.conf file I cannot see any entries (even commented out) for PHP4. Any ideas why I am not seeing this? I know it may mean that the php module is not installed correctly. If this is the case what have I done wrong?

Thanks in advance,

Old 02-24-2002, 05:34 PM   #2
Simon W
LQ Newbie
Registered: Feb 2002
Location: London, England
Distribution: Slackware 8.0
Posts: 18

Original Poster
Rep: Reputation: 0
No-one have any comments on this? Basically, I have no entries for anything php related in my httpd.conf file after installing php. I should have the following in there commented out.

AddType application/x-httpd-php .php

LoadModule php4_module libexec/

I suppose I can just manually add the lines but it concerns me that these entries are not there atall.

Old 02-24-2002, 09:21 PM   #3
Senior Member
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
When you reinstall Apache the conf file will not be overwritten. You could either try deleting the current and reinstalling or add the lines by hand.
Old 02-25-2002, 12:22 AM   #4
Registered: Aug 2001
Location: Lansing, Michigan
Distribution: slackware8+
Posts: 472

Rep: Reputation: 30
when i installed apache, php, mysql on my slack8 box, apache didn't put the php modules in my httpd.conf file, i had to add them myself.

you might wanna try that...


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
Can php4 and php5 run simultaneously on apache2? tisource Linux - Software 1 09-14-2005 11:53 PM
php4 & apache installed but will not run web pages with scripts oberon-ken-obi Linux - Newbie 5 07-06-2004 08:00 AM
Configuring Apache 1.37 for PHP4 dogn00dles Linux - Networking 7 07-20-2003 02:46 AM
Apache2 and php4 problems configuring linoob Linux - General 2 07-01-2003 05:21 AM
Configuring the Apache2 config file to use PHP4 mindstormsguy Linux - Software 3 05-29-2003 12:59 PM > Forums > Linux Forums > Linux - Software

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