httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Evan Platt <e...@espphotography.com>
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/libphp4.so
LoadModule php5_module        modules/libphp5.so

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/libphp5.so
14544 -rwxr-xr-x 1 root admin 14892824 Mar 21 10:21 
/Library/Apache2/modules/libphp5.so*

What am I doing wrong?

Thanks.

Evan


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message