These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Unable to use run php via (f)cgi after changing location of home directory on the new forum.
Operating system is a fresh install of CentOS 7.
I want to host a website out of /websites/MYDOMAIN. I create MYDOMAIN.NAME under virtualmin and can access http://MYDOMAIN.NAME/phpinfo.php with no issues. Then, I use Server Configuration->Change Domain Name to move the folder to /websites/MYDOMAIN. After virtualmin does its thing, I get a 500 error visiting http://MYDOMAIN.NAME/phpinfo.php unless I use mod-php to handle php (as opposed to FastCGI or CGI).
If I use Server Configuration->Change Domain Name to move the folder back to /home/MYDOMAIN, I can use (Fast)CGI to render php again.
What's gone wrong here?