LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 05-28-2003, 02:33 PM   #1
raypen
Member
 
Registered: Jun 2002
Location: Midwest
Distribution: Slackware
Posts: 365

Rep: Reputation: 30
Apache+php problem in Slack 9.0


Trying to get php working with Apache 1.3.27 in Slackware
9.0. Everything is setup correctly according to the install
instructions:

php.conf ( in /etc/apache ) contains:
#
# mod_php - PHP Hypertext Preprocessor module
#

LoadModule php4_module libexec/libphp4.so
AddModule mod_php4.c

# Tell Apache to feed all *.php files through the PHP module
AddType application/x-httpd-php .php

# This will display PHP files in colored syntax form. Use with caution.
#AddType application/x-httpd-php-source .phps

I don't have to uncomment the httpd.conf line:

Include /etc/apache/mod_php.conf

If I do I get the error message:

module mod_php4.c is already added, skipping

However, phptest.php will still not display anything ( <?php phpinfo(); ?> )

This works fine in Slack 8.0 which contains this very setup except that the
Include /etc/apache/mod_php.conf in httpd.conf is uncommented.

I have read that the contents of php.conf should be included in httpd.conf
so I tried that and it did work.

Does anyone know why this works this way and not with the standard setup?

TIA
 
Old 06-04-2003, 11:00 PM   #2
labr@
Member
 
Registered: May 2003
Location: Dallas, TX
Distribution: Slackware. (There are others?)
Posts: 46

Rep: Reputation: 16
I had the same problem...

For the [warn] open mod_php.conf and comment-out the AddModule mod_php4.c (it is already added) then apachectl stop| apachectl start
 
Old 06-05-2003, 04:27 PM   #3
Astro
Member
 
Registered: Jan 2003
Location: Ballston Lake, NY
Distribution: Slackware, Debian
Posts: 665

Rep: Reputation: 30
I've posted on here before how to install apache with php support that works flawlessly... it's different from the regular way Slack installs it though, if you'd like this info just ask and I'll be happy to post it.
 
  


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
slack apache and php zuessh Slackware 4 04-23-2005 07:40 PM
Cannot See info.php in Apache 1.3.33 Slack 10 grimlaur Slackware 3 02-05-2005 03:27 PM
Strange apache trailing / problem - Slack-current, apache 1.3.33 vamp Linux - Networking 1 01-30-2005 07:28 PM
Slack 9.1 apache + php Greg21 Slackware 2 01-23-2004 12:22 PM
Apache php index.php problem neurotic Linux - Software 3 11-18-2003 06:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:03 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