danic21 / restifydb

Expose your databases as REST web services in minutes
GNU Affero General Public License v3.0
6 stars 2 forks source link

500 error on RestifyDB installation #2

Open charlesb87 opened 3 years ago

charlesb87 commented 3 years ago

Morning @danic21 ,

I try to install RestifyDB on a fresh Ubuntu 18.04 Server. I'm facing 500 errors when browsing http://website/api/admin/.

What I did :

Please note that the local documentation page (/api/documentation) are working just fine... I'm starting to be out of idea.

Do you have any hints to share?

Regards,

CB

danic21 commented 3 years ago

Hello @charlesb87 ,

Could you please also check if you have the pdo_sqlite extension enabled and configured in PHP? This is needed for storing the configuration. I need to update the documentation to reflect this.

Also, if the problem persists, I encourage you to change restify/bootstrap.php in order to enable error reporting. Just replace error_reporting(0); with error_reporting(E_ALL); and refresh the page.

Let me know if this helps.

Br, Daniel

charlesb87 commented 3 years ago

Hello @danic21 ,

I updated restify/bootstrap.php accordingly, which leads me to an error:

[Wed Jan 13 17:29:49.557868 2021] [php7:error] [pid 26694] [client W.X.Y.Z:50192] PHP Fatal error: require(): Failed opening required '/var/www/html/api/restify/../vendor/autoload.php' (include_path='.:/usr/share/php') in /var/www/html/restifydb/restify/bootstrap.php on line 22

I just check, I don't have any 'vendor' folder on the root of /var/www/html/api/.

Thanks for your time.

Charles

danic21 commented 3 years ago

Oh, I understand now. You are trying to use the alpha version. Please note this is under development, so not at all stable. The available releases are here.

However, if you want to stick to this version, please note you will need composer in order to manage project's dependencies. After installing it, please run php composer.phar update to bring the needed dependencies into the project (and so, the vendor directory will be created and populated).

Hope this helps.

Br, Daniel