#
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#
LoadModule php5_module modules/libphp5.so
LoadModule php5_module modules/libphp5-zts.so
Cause the PHP interpreter to handle files with a .php extension.
Yeah, it looks like there’s a third party repository enabled on your system there – and pulling in packages from there can cause unusual/unexpected things to happen
What you’d want to do is edit the php.conf file you posted in your second comment above, and comment out this line:
SetHandler application/x-httpd-php
Then, restart Apache with this command:
/etc/init.d/httpd restart
That should fix up the issue you’re seeing… let us know if that does the trick though!
Well, you shouldn’t need that in order to get any website running… so something really unusual is going on
However, the first thing to note is that if it’s working now, that’s fantastic
But what issue are you seeing when it doesn’t work?
What shows up in the browser? And what do you see in the error logs in $HOME/logs/error_log?
Also, in Virtualmin, if you go into Server Configuration -> Website Options for that particular domain, what is the PHP Execution Mode set to?
The issues you’re seeing have come up enough that I decided to write up some documentation regarding it… that’s available here in case you’re interested, it’s titled “Why does PHP / ProFTPd no longer work after performing updates? (I’m using CentOS, and enabled third party repositories)”: