I changed “public_html” to “public_html/public” in ‘Website documents sub-directory’ within the “Website Options” page in Virtualmin (because CodeIgniter 4’s public directory is in ‘public’ where the index.php file lives). And I’m getting a 500 Internal Server Error. I made sure it wasn’t the actual CodeIgniter 4 installation itself and narrowed it down to the Virtualmin server.
The server works just fine if I have a normal index.html file inside, but for some reason won’t work when a Codeigniter 4 app is installed.