LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   PHP & Apache on Slackware 8.1 not working (http://www.linuxquestions.org/questions/slackware-14/php-and-apache-on-slackware-8-1-not-working-141042/)

chrisx 02-01-2004 11:57 AM

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.

Misel 02-01-2004 01:14 PM

have you activated the mod_php in the http.conf ?

chrisx 02-01-2004 03:07 PM

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!

Misel 02-02-2004 02:49 AM

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? :)


All times are GMT -5. The time now is 02:04 AM.