Hello,
I have a dedicated server running on Debian 7. I installed Webmin and configure my domain as domaine.com.
I uploaded my Wordpress into the public_html folder on the FTP.
I then created a sub-server to get a subdomain like dev.domain.com or I want to install different or CMS website to get familiar with them.
But I have a problem when executing php files on dev.domain.com address, the files are not interpreted and e I see their contents directly appear in my browser.
Is there by chance a .htaccess file in the public_html folder?
Having a .htaccess file with certain lines in it could cause what you’re describing… if you have one, try renaming it to “htaccess.old” or something like that and see if you continue to observe the same behavior.
I have try a modification on php5.conf in /etc/apache2/mods-available/
When I uncomment SetHandler application/x-httpd-php php work on dev.domain.com but not on domain.com.
I’ve been experiencing this same problem with Virtualmin GPL on a OpenVZ VPS running Debian 7.
The server is not a subserver, but a top level server. I’m pretty familiar with installing Virtualmin, and everything usually works great out of the box, but with this particular install on Debian 7, php scripts aren’t being executed and are being shown as plain text.
The server is using mod_php.
What fixed the problem for me was to add the following lines to /etc/apache2/mods-available/mime.conf :