My client wants Craft 3 installed in a subdirectory of the main site. So I placed it in http://mainsite.com/subdir.
I'm trying to pull my
index.php out of
/web and into the
/subdir directory by setting a custom
CRAFT_BASE_PATH, but I've tried several different paths to no avail.
The error is simply: "This page isn’t working. mainsite.com is currently unable to handle this request. HTTP ERROR 500"
My directory structure is:
var/www/html/subdir/ ├── craft/ │ └── config, vendor, templates, .env, web etc ├── index.php
But if it would be better if I stuffed
index.php back into
/web and went about this a different way I'm all ears. I'm not the network admin, so if there is a way to set a custom root for a subdirectory on the server or something, I'll have to ask someone else to do it for me, which is fine if that's the best way to do it.