I have a server running OS X 10.8.2. I wanted to install PhpMyAdmin, so I have installed MySQL and PHP (through MacPorts) too. Then I put the PhpMyAdmin folder in the root of my webserver, but when I surf to http://SERVERADDRESS/PhpMyAdmin on any web browser on any device I get the source code of the index.php file instead of the page loaded (see screenshot). I have already uncommented out the line
in the file httpd.conf and added the following lines:
. I have also configured the file php.ini so I can't really understand what I'm doing wrong. (Note: I have obviously restarted Apache after changing the files.) Can you help me please?
Code:
#LoadModule php5_module libexec/apache2/libphp5.so
Code:
AddHandler php5-script .php
AddType text/html .php