LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 01-01-2010, 03:31 PM   #1
bobb.harley
LQ Newbie
 
Registered: Sep 2008
Posts: 5

Rep: Reputation: 0
PHP on Slackware 13 64


Hello,
I am trying to get PHP5 working on Apache 2.2.13. When loading the PHP file in the web browser, the server does not appear to be passing the php off to the interpreter. Instead, the browser just treats the first command as an HTML comment and displays the rest to the user.


Relevant lines from httpd.conf:
LoadModule php5_module lib64/httpd/modules/libphp5.so
AddType text/html .php
#AddType application/x-httpd-php .php
AddHandler php-script .php

The second AddType is commented out because it causes Firefox to try to download the php instead of displaying it.

Output from httpd -M:
Loaded Modules:
core_module (static)
mpm_prefork_module (static)
http_module (static)
so_module (static)
php5_module (shared)
.
.
.
.

Does it sound correct to think that there is some type of disconnect between Apache and the PHP interpreter?
 
Old 01-02-2010, 04:34 AM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,783
Blog Entries: 1

Rep: Reputation: 413Reputation: 413Reputation: 413Reputation: 413Reputation: 413
You might be missing an Include statement in your httpd.conf. At least on my rig (Slackware, not Slackware64) there is this:
Code:
Include /etc/httpd/mod_php.conf
Most of what you have in httpd.conf appears to be in mod_php.conf along with some other configurations and it could be that something is missing from your config.
 
  


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
Slackware and PHP gawain Slackware 5 02-09-2007 10:48 AM
Slackware and PHP animeresistance Slackware 7 03-26-2005 09:05 AM
slackware, apache and PHP from .tgz - problems with PHP szymon Slackware 2 09-06-2004 04:57 PM
PHP with Slackware fuelinjection Linux - General 3 06-09-2004 07:08 AM


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