Re: Apache not running php



On Fri, 17 Nov 2006 22:49:18 +0000, Terry A Haimann wrote:

On Fri, 17 Nov 2006 15:56:10 +0100, Jos wrote:

On Fri, 17 Nov 2006 14:36:46 +0000, Terry A Haimann wrote:
I have added the following lines to my /etc/httpd/conf/httpd.conf file:

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

Did you add to httpd.conf
DirectoryIndex index.html index.html.var index.php
^^^^^^^^^
I do not have these AddType commands in my httpd.conf ...

No I hadn't, but that still wasn't it.

All the references to php in the config file are as follows:

LoadModule php5_module modules/libphp5.so DirectoryIndex index.html
index.html.var index.php AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps AddType text/html php
AddHandler php5-script php

Have I forgotten anything
No, that's not it. What system are you using. I read Win4Lin:
<quote>
System Linux pegasus.oldboy.com 2.6.11-Win4Lin #1 Tue Jul 18 14:16:14 CDT
</quote>
for PHP whereas you write fc4

Check this out as well (note users and permissions):
http://stanton-finley.net/fedora_core_4_installation_notes.html#PHP

Can you get html to display properly?
I assume logs are empty?
--
Jos

http://www.jojedo.nl/
.



Relevant Pages

  • Re: Apache, php?
    ... on the command line doing `php index.php` works. ... The only difference is that I'm using 1.3 and not 2.x of Apache. ... DirectoryIndex index.php index.php3 index.html ... AddType application/x-httpd-php .php ...
    (freebsd-questions)
  • Re: Apache, php?
    ... on the command line doing `php index.php` works. ... The only difference is that I'm using 1.3 and not 2.x of Apache. ... DirectoryIndex index.php index.php3 index.html ... AddType application/x-httpd-php .php ...
    (freebsd-questions)
  • mod_php5 does not configure Apache httpd.conf
    ... The FreeBSD handbook says if you install mod_php5 it should modify the httpd.conf file to enable support for php5, ... DirectoryIndex index.php index.php3 index.html index.htm ... AddType application/x-httpd-php .php ...
    (freebsd-questions)
  • Re: phpmyadmin requesting to download a php file...
    ... DirectoryIndex index.html index.cgi index.pl index.php index.xhtml ... AddHandler application/x-httpd-php .php ...
    (Ubuntu)
  • Re: Browser do not understand php?
    ... AddType application/x-httpd-php .html ... that way my php scripts work with the .wml, html and htm files... ... upload to the server directory where you want php to operate... ...
    (comp.lang.php)