opencats / OpenCATS

Applicant Tracking System (maintained code base)
http://www.opencats.org
Other
476 stars 236 forks source link

Installation resulting in ERROR 500 #562

Closed tatdig closed 2 years ago

tatdig commented 2 years ago

Expected behavior and actual behavior.

Expected site up and running. Site is producing error 500

Steps to reproduce the problem.

Follow the steps in manual - https://opencats-documentation.readthedocs.io/en/latest/Install-Ubuntu-16.04.html#install-the-opencats-software

What version of opencats are you running?

Used git clone, so it is newest

Release or downloaded from Git?

Yes

WAMP or LAMP?

LAMP

What version of PHP and MySQL are you running

Not applicable

attach appropriate error logs. Please attach [apache/mysql] error/access logs as needed.

AH01071: Got error 'PHP message: PHP Warning: include_once(./vendor/autolo ad.php): failed to open stream: No such file or directory in ...

mselavarasan commented 2 years ago

The vendor directory in a composer-generated codebase is one level up from the docroot. And it is needed to run the application. It's true that only docroot needs to be served by the webserver, but the vendor and autoloader still need to be accessible to the application.

Check that the include directive in PHP is file-system based

RussH commented 2 years ago

It appears as though you have not downloaded the '-FULL' archive at https://github.com/opencats/opencats/releases

As @mselavarasan comments, you can run composer to pull in the dependencies, or grab the -FULL package. If you want to pull in the dependencies, run composer installin the root directory.