LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-08-2004, 03:08 PM   #1
Seventh
Member
 
Registered: Dec 2003
Location: Boston, MA
Distribution: Redhat / Debian
Posts: 269

Rep: Reputation: 30
Apache not running php scripts


I updated my PHP to 4.3.4, system is running it correctly, but Apache loads .php files as plain text.

Where is this configured?
 
Old 01-08-2004, 03:34 PM   #2
cypercop
LQ Newbie
 
Registered: Nov 2003
Distribution: unstable/testing sarge 2.6.0-test-11
Posts: 3

Rep: Reputation: 0
Hello Seventh ,
look in httpd.conf for
LoadModule /your/path/to/your/modules/libphp4.so

greetings
cypercop
 
Old 01-08-2004, 04:19 PM   #3
Kovacs
Member
 
Registered: Jul 2003
Distribution: FreeBSD 8.2 RELEASE
Posts: 607

Rep: Reputation: 32
In addition to the above, add these lines to httpd.conf, if you search down the file you will see where the right place to put them is:

AddModule mod_php4.c
AddType application/x-httpd-php .php
 
Old 01-08-2004, 08:35 PM   #4
little_ball
Member
 
Registered: Oct 2003
Location: teddy bears Land
Distribution: Slackware 10
Posts: 176

Rep: Reputation: 30
I have that same problem before, what i did i search /etc/apache/httpd.conf and look this:

# ==> mod_php configuration settings <==
#
# PACKAGES REQUIRED: openssl-solibs (A series) and/or openssl (N series),
# mysql (AP series), gmp (L series), and apache (N series)
#
#Include /etc/apache/mod_php.conf

# ==> mod_ssl configuration settings <==
#
# PACKAGES REQUIRED: apache (N series) and openssl (N series)
#
#Include /etc/apache/mod_ssl.conf

I uncomment this # in the 2 Lines:

Include /etc/apache/mod_php.conf

Include /etc/apache/mod_ssl.conf

And stop my apache, and start it again, then it loads the new modules. And i could now install any php stuff. instead of trying to download a text file like before.
 
  


Reply



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
Running scripts on apache Aziz Programming 1 11-16-2005 09:29 AM
Running PHP Scripts in SuSe Linux 9.3 w/o a server. elliotfuller Linux - Software 3 06-18-2005 06:27 PM
Need help to configure Apache TO EXECUTE PHP SCRIPTS mgrapr Linux - Hardware 2 01-21-2004 09:23 AM
running perl scripts une mdk9.l and apache clefler Linux - Software 4 11-15-2003 12:35 PM
[apache] running user scripts. yapp Linux - Software 0 10-03-2003 05:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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