Unable to use run php via (f)cgi after changing location of home directory

1 post / 0 new
#1 Sat, 01/02/2016 - 15:26
cheem

Unable to use run php via (f)cgi after changing location of home directory

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?