Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

httpd not loading php?

[lazarus:/usr/local] root# php -v
PHP 4.4.4 (cli) (built: Jan 19 2007 19:18:59)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

[lazarus:/usr/local] root# httpd -V
Server version: Apache/1.3.33 (Darwin)
Server built: Mar 20 2005 15:08:27
Server's Module Magic Number: 19990320:16
Server compiled with....
-D EAPI
-D HAVE_MMAP
-D USE MMAPSCOREBOARD
-D USE MMAPFILES
-D HAVE FCNTL_SERIALIZEDACCEPT
-D HAVE FLOCK_SERIALIZEDACCEPT
-D SINGLE LISTEN_UNSERIALIZEDACCEPT
-D DYNAMIC MODULELIMIT=64
-D HARD SERVERLIMIT=2048
-D HTTPD_ROOT="/usr"
-D SUEXEC_BIN="/usr/sbin/suexec"
-D DEFAULT_PIDLOG="/var/run/httpd.pid"
-D DEFAULT_SCOREBOARD="/var/run/httpd.scoreboard"
-D DEFAULT_LOCKFILE="/var/run/httpd.lock"
-D DEFAULT ERRORLOG="/var/log/httpd/errorlog"
-D TYPES CONFIGFILE="/etc/httpd/mime.types"
-D SERVER CONFIGFILE="/etc/httpd/httpd.conf"
-D ACCESS CONFIGFILE="/etc/httpd/access.conf"
-D RESOURCE CONFIGFILE="/etc/httpd/srm.conf"

[lazarus:/usr/local] root# httpd -L | grep php
[[nothing]]

[lazarus:/usr/local] root# cat /etc/httpd/httpd.conf | grep php
LoadModule php4_module libexec/httpd/libphp4.so
AddModule mod_php4.c
<IfModule mod_php4.c>
# If php is turned on, we repsect .php and .phps files.
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
# Since most users will want index.php to work we
# also automatically enable index.php
DirectoryIndex index.html index.php
[[So, it's not commented out, and not fighting with PHP5.]]

What am I missing?

dafydd

Powerbook G4, Mac OS X (10.4.10)

Posted on Aug 21, 2007 4:16 PM

Reply
2 replies

Sep 12, 2007 11:35 AM in response to dafydd

Man, that was a poor description. The problem turns out to be with httpd.conf not invoking php for .htm or .html extensions. I took the easy way out, and created an index.php, which works fine. A better solution would be to include .html and .htm in the appropriate lines in httpd.conf to ID them as potential php files, but I haven't experimented with that.

httpd not loading php?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.