Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 11-21-2003, 07:51 PM   #1
LQ Newbie
Registered: Nov 2003
Posts: 1

Rep: Reputation: 0
Question Apache with PHP in Slackware 9.0

I did a full installation of Slackware 9.0 and I'm trying to get the PHP module to work with Apache. So far, no matter what I do, the php tags (such as <?php phpinfo(); ?>) are visible in the output to the browser.

When I restart Apache, a notice is added to the error_log file, saying PHP is configured. This leads me to believe that PHP is actually running, and just not recognizing the tags.

The mod_php.conf file is being included from httpd.conf, so the LoadModule and AddType lines are being included, and I've tried putting those lines in different places within the httpd.conf file with no results. The php files have read and execute permissions set so this shouldn't be an access problem, either.

The exact lines are:

LoadModule php4_module libexec/apache/
AddType application/x-httpd-php .php

The original versions were Apache 1.3.27 and PHP 4.something. I've reinstalled them a dozen times, including from source, and now am running Apache 1.3.29 and PHP 4.3.3 (installed from the current distribution's packages). I've gotten the same results each time.

If anyone has any ideas on what might be wrong, it would be greatly appreciated.

Old 11-22-2003, 02:30 AM   #2
LQ Newbie
Registered: Nov 2003
Location: Socal
Distribution: Slackware, RedHat
Posts: 13

Rep: Reputation: 0
I don't know if this will help but I had a similar problem before. It turns out I forgot to copy php.ini-dist to /usr/local/lib/ as php.ini

So make sure you have a /usr/local/lib/php.ini
Old 11-22-2003, 04:16 AM   #3
Registered: Dec 2002
Location: California
Distribution: Slackware & LFS
Posts: 799

Rep: Reputation: 33
Does your mod_php.conf also have the following line?

AddModule mod_php4.c

--- Cerbere

[edit] BTW the php.ini file is in /etc/apache on my Slack 9.0 install. Don't remember where install from source puts it. [/edit]

Last edited by Cerbere; 11-22-2003 at 04:20 AM.
Old 09-28-2004, 01:41 PM   #4
LQ Newbie
Registered: Oct 2003
Posts: 3

Rep: Reputation: 0
Hmm wonder if the user ever figured this out?


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, apache and PHP from .tgz - problems with PHP szymon Slackware 2 09-06-2004 05:57 PM
Slackware 9.0 / MySQL /PHP/Apache ..? MikeFoo1 Linux - Newbie 2 05-04-2004 12:49 AM
Apache/PHP Help on Slackware wenberg Linux - Software 7 01-03-2004 11:04 PM
php and apache and slackware 9 joel112 Linux - Software 4 07-10-2003 01:44 PM
slackware-current apache/php problem hjles Slackware 3 03-10-2003 01:34 PM

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration