php files show as text (revisited)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux