LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 02-23-2002, 08: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,

Simon
 
Old 02-24-2002, 06: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/libphp4.so

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

Simon
 
Old 02-24-2002, 10:21 PM   #3
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,823

Rep: Reputation: 120Reputation: 120
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, 01:22 AM   #4
Syncrm
Member
 
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...
 
  


Reply


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


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