Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autoload.php missing #498

Open
Strizz02 opened this issue Jan 5, 2021 · 3 comments
Open

Autoload.php missing #498

Strizz02 opened this issue Jan 5, 2021 · 3 comments

Comments

@Strizz02
Copy link

Strizz02 commented Jan 5, 2021

Hello,
I try to install COPS on a Proxmox-LXC with Debian. Although I chose 'the easiest way' for the installation described in the manual I did not succeed in getting COPS to run. My problem is the following error message in the error.log:

2021/01/05 09:43:13 [error] 1932#1932: *3 FastCGI sent in stderr: "PHP message: PHP Warning: require_once(/var/www/ebooks/vendor/autoload.php): failed to open stream: No such file or directory in /var/www/ebooks/config.php on line 9PHP message: PHP Fatal error: require_once(): Failed opening required '/var/www/ebooks/vendor/autoload.php' (include_path='.:/usr/share/php') in /var/www/ebooks/config.php on line 9" while reading response header from upstream, client: 192.168.178.105, server: ebooks., request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.3-fpm.sock:", host: "ebooks."

I know there where other users who had the same problem, but they installed COPS 'from sources'. Therefore the proposals are not quite practical for me. I downloaded the first zip-file of the assets (cops-1.1.3.zip) and extracted it in my web folder. Correct?
Where can I find the autoload.php file? Where does it come from?

Any Idea how I can solve the problem?

@marioscube
Copy link

In a terminal type:

ls -l /var/www/ebooks/vendor

Then post the output here

@Strizz02
Copy link
Author

Strizz02 commented Jan 6, 2021

@marioscube: I have no folder /ebooks/vendor! Obviously I mixed something up. There are two files named cops-1.1.3.zip under assets. I don't know why but must have chosen the 2nd one (source code). This zip-file does not contain a folder vendor. Therefore the error message. I will make a second try with the first zip-file.
Thank you very much for your help.

@wikiped
Copy link
Contributor

wikiped commented Feb 20, 2021

The vendor folder is not part of repository therefore only available when you download zip file from releases page. If you clone repository or download master.zip as suggested in README.md the error is WILL appear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants