I have a new AWS lightsail LAMP image. I have a php site that is setup and working when I go out of root: example.com If I try to go to a subfolder that has the staff side of the site example.com/staff I run into php errors.
The problem is such:
In the root there is a file main.inc.php which includes bootstrap.php. When going to example.com/index.php it requires main.inc.php which requires bootstrap.php. Both are invoked correctly and everything works.
When I go to example.com/staff/index.php it invokes ../main.inc.php which then invokes bootstrap.php. However, it errors out as it can't see bootstrap.php. Both main.inc.php and bootstrap.php live in the same spot (root web folder).
I'm hoping this is just a noob issue and I'm missing something obvious. I'm a low time web admin as I've spent most my life on the code side and never really setup a server from scratch. I've tried about everything I can find in bitnami docs. I have tried hosting this both out of the apache2/htdocs and within apps/appname/htdocs folder structure.
This code base works fine on godaddy hosting which we are migrating away from.
error from error_log:
PHP Fatal error: Class 'Bootstrap' not found in /opt/bitnami/apps/tickets/htdocs/main.inc.php on line 24