The PHP source code is displayed when I open the PHP page in my localhost. It seems strange to me. I am using PHP 5.3.1 on Mac OS X Snow Leopard.
$ php
I am running the default httpd web server on my machine. The file / etc / apache 2 / httpd.conf has the following line for loading the php module:
LoadModule php5_module libexec/apache2/libphp5.so
The syntax of the httpd.conf file is fine.
$ httpd -t Syntax OK
Am I missing something? Please suggest!
Thanks!
php apache macos
heapzero
source share