LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-27-2005, 08:13 PM   #1
waynejkruse10
Member
 
Registered: May 2005
Posts: 56

Rep: Reputation: 15
apache config files and php


in httpd.conf you need to add the line which states to load the php4 module on startup so apache renders the php pages rather than just try to "save as" which it is doing now. I made a thread on it earlier but i cant find it. I am using Ubuntu and ive used the LAMP guide on Ubuntu's wiki. What is the line i need to add to the httpd.conf to load the module and parse the php, phps extension.

Wayne
 
Old 11-27-2005, 09:57 PM   #2
lucktsm
Member
 
Registered: May 2004
Location: Atlanta, GA USA
Distribution: Redhat ES4, FC4, FC5, slax, ubuntu, knoppix
Posts: 155

Rep: Reputation: 30
You need these lines:

LoadModule php4_module modules/libphp4.so

AddType application/x-httpd-php .php
 
Old 11-28-2005, 02:09 AM   #3
waynejkruse10
Member
 
Registered: May 2005
Posts: 56

Original Poster
Rep: Reputation: 15
thanks, ill fix it up tomorow.

Wayne
 
Old 11-28-2005, 05:57 PM   #4
waynejkruse10
Member
 
Registered: May 2005
Posts: 56

Original Poster
Rep: Reputation: 15
i get this:

Cannot load /etc/apache2/modules/libphp4.so into server: /etc/apache2/modules/libphp4.so: cannot open shared object file: No *ch file or directory
 
Old 11-29-2005, 06:00 AM   #5
lucktsm
Member
 
Registered: May 2004
Location: Atlanta, GA USA
Distribution: Redhat ES4, FC4, FC5, slax, ubuntu, knoppix
Posts: 155

Rep: Reputation: 30
Looks like you need to re-compile.
Take a look at the www.apache.org site for the compile details.
 
Old 11-29-2005, 01:43 PM   #6
waynejkruse10
Member
 
Registered: May 2005
Posts: 56

Original Poster
Rep: Reputation: 15
no, actually i dont.

I installed libphp for apache not apache 2.

I have installed a complete LAMP server without any of this recompiling crap before so i dunno where everyone gets that idea from.
 
Old 12-02-2006, 02:51 PM   #7
jonwatson
Member
 
Registered: Jun 2004
Location: Nova Scotia, Canada!
Distribution: Ubuntu
Posts: 170

Rep: Reputation: 30
Quote:
Originally Posted by waynejkruse10
no, actually i dont.

I installed libphp for apache not apache 2.

I have installed a complete LAMP server without any of this recompiling crap before so i dunno where everyone gets that idea from.
Laff, no kidding eh? Recompile the kernel because there's a file missing on the system? Bad advice.

If you haven't sorted this out yet, the package you likely need is libapache2-mod-php4
 
Old 12-05-2006, 12:24 PM   #8
lucktsm
Member
 
Registered: May 2004
Location: Atlanta, GA USA
Distribution: Redhat ES4, FC4, FC5, slax, ubuntu, knoppix
Posts: 155

Rep: Reputation: 30
Hmm did I say recompile the kernel? I was referring to Apache. I had that problem, I recompiled and it fixed it. So, anyway there is more than one way to solve a problem and I got mine working without a post...
 
Old 12-05-2006, 09:40 PM   #9
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally Posted by heatsink
Laff, no kidding eh? Recompile the kernel because there's a file missing on the system? Bad advice.
Just for this you kick a one year old thread. I think that TS has solved his issue by now.
 
  


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
Apache 2, PHP 5, SuSE 9.2 - cannot run php files dickohead Linux - Networking 6 06-28-2006 10:25 AM
Apache config for PHP (not working) Thanotos Slackware 2 11-30-2005 12:52 AM
help with apache php mysql config slinky2004 Linux - General 3 03-22-2005 07:36 PM
PHP and Apache -- Config question j0217995 Slackware 4 11-05-2004 10:09 AM
php or apache config problem mattkat Linux - Software 2 04-30-2003 06:25 PM


All times are GMT -5. The time now is 05:27 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration