LinuxQuestions.org
Help answer threads with 0 replies.
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 11-21-2003, 06:51 PM   #1
traveldanimal
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/libphp4.so
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.

Thanks!
 
Old 11-22-2003, 01:30 AM   #2
miyake
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, 03:16 AM   #3
Cerbere
Member
 
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

Enjoy!
--- 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 03:20 AM.
 
Old 09-28-2004, 12:41 PM   #4
dokks
LQ Newbie
 
Registered: Oct 2003
Posts: 3

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


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

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

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