httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Evan Platt <>
Subject [users@httpd] php files show as text (revisited)
Date Thu, 22 Mar 2007 04:43:41 GMT
So I had everything up and running.. Then I had a issue with PHP, so 
reinstalled PHP from source. AFAICT, PHP is running fine.

# php -v
PHP 5.2.2-dev (cli) (built: Mar 21 2007 10:20:00)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

# apachectl -v
Server version: Apache/2.2.4 (Unix)
Server built:   Mar 14 2007 13:39:49

in my httpd.conf
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
AddHandler php-script   php
AddType text/html       php

and two lines:

LoadModule php4_module        modules/
LoadModule php5_module        modules/

If I leave them both uncommented, it works. If I comment out 4 and 
just leave 5 in, php files display as text.

# ls -al /Library/Apache2/modules/
14544 -rwxr-xr-x 1 root admin 14892824 Mar 21 10:21 

What am I doing wrong?



The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message