Error no vendor files #2260

Closed
opened 2026-02-05 03:29:14 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @planesticud on GitHub (May 22, 2021).

Regards

I'm installing BookStack in a EC2 instance, when i pulled the git, i do not found a vendor carpet and in the step "php artisan key:generate" it show this error

[ec2-user@ip-172-29-0-181 BookStack-release]$ php artisan key:generate
PHP Warning: require(/var/www/html/BookStack-release/vendor/autoload.php): failed to open stream: No such file or directory in /var/www/html/BookStack-release/artisan on line 18
PHP Fatal error: require(): Failed opening required '/var/www/html/BookStack-release/vendor/autoload.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/BookStack-release/artisan on line 18
[ec2-user@ip-172-29-0-181 BookStack-release]$

What could i do to solve this error if the git don't have this files?

image

Originally created by @planesticud on GitHub (May 22, 2021). Regards I'm installing BookStack in a EC2 instance, when i pulled the git, i do not found a vendor carpet and in the step "php artisan key:generate" it show this error [ec2-user@ip-172-29-0-181 BookStack-release]$ php artisan key:generate PHP Warning: require(/var/www/html/BookStack-release/vendor/autoload.php): failed to open stream: No such file or directory in /var/www/html/BookStack-release/artisan on line 18 PHP Fatal error: require(): Failed opening required '/var/www/html/BookStack-release/vendor/autoload.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/BookStack-release/artisan on line 18 [ec2-user@ip-172-29-0-181 BookStack-release]$ What could i do to solve this error if the git don't have this files? ![image](https://user-images.githubusercontent.com/38005888/119240495-74031b00-bb15-11eb-8711-9755f2821d80.png)
Author
Owner

@ssddanbrown commented on GitHub (May 23, 2021):

Hi @planesticud,
You'll need to get a copy of composer then use it to install the dependencies.

Assuming a Ubuntu machine (May work on other linux systems):

# Install composer globally
wget https://getcomposer.org/download/2.0.14/composer.phar
chmod +x composer.phar
sudo mv composer.phar /usr/local/bin/composer

# Run composer from within your BookStack install dir
composer install --no-dev

I see that you've put the files within /var/www/html. Be sure that nothing it setup on the machine to serve /var/www/html by default, You only want to expose the BookStack's public folder as the web-root otherwise you could end up with an insecure setup.

@ssddanbrown commented on GitHub (May 23, 2021): Hi @planesticud, You'll need to get a copy of [composer](https://getcomposer.org/download/) then use it to install the dependencies. Assuming a Ubuntu machine (May work on other linux systems): ```bash # Install composer globally wget https://getcomposer.org/download/2.0.14/composer.phar chmod +x composer.phar sudo mv composer.phar /usr/local/bin/composer # Run composer from within your BookStack install dir composer install --no-dev ``` I see that you've put the files within `/var/www/html`. Be sure that nothing it setup on the machine to serve `/var/www/html` by default, You only want to expose the BookStack's `public` folder as the web-root otherwise you could end up with an insecure setup.
Author
Owner

@ssddanbrown commented on GitHub (May 26, 2021):

Will therefore close this off.

@ssddanbrown commented on GitHub (May 26, 2021): Will therefore close this off.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#2260