I am stumped on this error I am getting when trying to get BookStack up and running on a domain I have hosted with site ground. the full error is as follows:
Fatal error: require(): Failed opening required '/home/customer/www/mydomain/public_html/bookstack/../vendor/autoload.php' (include_path='.:/usr/local/php74/pear') in /home/customer/www/mydomain/public_html/bookstack/index.php on line 34
I created a dir for BookStack, installed composer, configured the .env file, and prepared the database which I created on sitegrounds site tools. I then moved the public folder from the BookStack dir to the public_html folder. The exact path was
cd ~/www/mydomain.com/public_html/bookstack/public
The .htaccess file and index.php files were in the public folder so I moved them back one into the /bookstack/ folder (not sure if that made a difference).
The line 34 in the autoload.php file is:
require __DIR__ . '/../vendor/autoload.php';
I assume something is wrong with the path, but I have never tried installing BookStack on shared hosting and am at a loss. Can someone advise?
Thanks in advance!
source https://stackoverflow.com/questions/70883639/fatal-error-require-failed-opening-required-home-customer-www-vendor-au
No comments:
Post a Comment