Link to home
Start Free TrialLog in
Avatar of jeff_zucker
jeff_zucker

asked on

php showing as text

I installed postfixadmin on a new AWS instance.  When I go to http://<IP address>/postfixadmin/setup.php I see the text of the file instead of it working as a php file.

I have the following code in my httpd.conf and have verified that AWS has php installed:
<FilesMatch "\.ph(p[2-6]?|tml)$">
    SetHandler application/x-httpd-php
</FilesMatch>

Open in new window


What could be wrong here?
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Most recent installs of Apache with PHP have a separate 'conf' file to enable PHP.  Try removing that code and reboot the server and see if you can run 'phpinfo();'.
<?php
phpinfo();
?>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of jeff_zucker
jeff_zucker

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jeff_zucker
jeff_zucker

ASKER

This is what worked.