LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 02-01-2004, 12:57 PM   #1
chrisx
LQ Newbie
 
Registered: Feb 2004
Distribution: Slackware
Posts: 2

Rep: Reputation: 0
Question PHP & Apache on Slackware 8.1 not working


I recently installed Slackware 8.1 on an old Pentium I . I'm trying to get the typical LAMP (Linux, Apache, MySQL, PHP) configuration running. I got MySQL working (finally). But Apache won't serve up a PHP file properly. That is, each time I browse to test.php, the browser asks if I want to download the file.

I've added the following lines to my httpd.conf file:

AddType appliation/x-httpd-php .php
AddType appliation/x-httpd-php-source .phps

So here's my question... Does the stock Apache/PHP installation on Slackware 8.1 work? Or am I going to have to download Apache and PHP and build the LAMP setup from scratch? If the stock installation does work, please tell me what I'm missing.
 
Old 02-01-2004, 02:14 PM   #2
Misel
Member
 
Registered: Mar 2003
Location: Berlin
Distribution: Slackware current
Posts: 310

Rep: Reputation: 30
have you activated the mod_php in the http.conf ?
 
Old 02-01-2004, 04:07 PM   #3
chrisx
LQ Newbie
 
Registered: Feb 2004
Distribution: Slackware
Posts: 2

Original Poster
Rep: Reputation: 0
When I uncomment the mod_php and mod_ssl lines at the end of the httpd.conf file, then kill and restart httpd, I get the following warnings

[warn] module mod_php4.c is already added, skipping
[warn] module mod_ssl.c is already added, skipping

I'm not sure what the warnings are for, but PHP works now.

Thanks!

Last edited by chrisx; 02-01-2004 at 05:53 PM.
 
Old 02-02-2004, 03:49 AM   #4
Misel
Member
 
Registered: Mar 2003
Location: Berlin
Distribution: Slackware current
Posts: 310

Rep: Reputation: 30
Quote:
Originally posted by chrisx
When I uncomment the mod_php and mod_ssl lines at the end of the httpd.conf file, then kill and restart httpd, I get the following warnings

[warn] module mod_php4.c is already added, skipping
[warn] module mod_ssl.c is already added, skipping

I'm not sure what the warnings are for, but PHP works now.

Thanks!
actually, I don't know either why these warnings appear but they happen on my Slackware as well.

Anyone care to clear it up for the rest of us?
 
  


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
DISCUSSION: Slackware guide for AMP Apache MySQL and PHP xushi LinuxAnswers Discussion 12 09-23-2007 02:32 PM
Slackware guide for AMP Apache MySQL & PHP xushi Slackware 35 05-11-2006 12:18 PM
Slackware 10.0 - original apache & php MeGoesSlack Slackware 14 01-21-2005 08:51 AM
[9.1 pro] Apache, MySQL & PHP ... not working! Dannyarr Suse/Novell 5 10-17-2004 03:42 PM
slackware, apache and PHP from .tgz - problems with PHP szymon Slackware 2 09-06-2004 05:57 PM


All times are GMT -5. The time now is 03:41 AM.

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