Can't get PHP to work with Apache
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Can't get PHP to work with Apache

From: <"B>
Date: Mon Jul 25 2005 - 22:29:06 CEST

I've having a problem getting PHP to work with Apache. I've just
installed Apache and on a Fedora core3 system. The installs were
pretty painless, just as expected. Then I pointed to a simple web
site with a simple PHP script. But I only get a listing of the
files in the directory that contains the website, it never executes
the PHP script.

Typically, when I see this sort of problem, I'd say "read the docs".
I've been over the PHP tutorial, the PHP manual. Also been through
the Apache FAQ and several sites dealing with bugs. They all
pretty much say: PHP will just work. Alas, it's just not.

Here are the details:

    Fedora core 3, Apache 2.0.54, PHP 4.4.0, Firefox browser

I checked the httpd.conf, and Apache is finding the PHP module where
it expects it, and is loading it. And the footer of the brower says

   Apache /2.0.54 (Unix)DAV/2 PHP/4.4.0 Server at 127.0.0.1 Port 80

And the browser can display static html just fine.

The file editor in the browser knows the .php file is a PHP script,
and I tried some pretty simle scripts, like "hello world" and
phpinfo(). And the PHP files work on my ISP.

I set the httpd.conf error log to "debug" and have check the
error_log, and access_log. I'm not getting any 404's, or any
other errors about not being able to read or access files.
It looks like Apache just won't interpret the .php files as
scripts.

Thanks in advance for any help. (Which might include a suggestion
for a better newsgroup to post this question.)

B Squared

__________________________________________________________________
******************************************************************
Like the ski resort of girls looking for husbands and husbands
looking for girls, the situation is not as symmetrical as it might
seem. -- Alan McKay
Received on Mon Oct 17 21:18:07 2005