VMDashboard / vmdashboard

web-based open source virtualization management interface for QEMU and KVM virtual machines
https://vmdashboard.org
Other
68 stars 40 forks source link

HTTP 500 Error #2

Closed Shackelford-Arden closed 6 years ago

Shackelford-Arden commented 6 years ago

Hello!

Just tried installing this. After getting to the first form where it asks for the database information, I click Get Started and then I get the error. All the information is correct as I had it when I created the user & DB.

Any thoughts? I checked the logs directory and it seems they're not being written to.

Shackelford-Arden commented 6 years ago

Aha! I was looking in the wrong places for logs. I went and checked the web server logs. It seems php-mysql wasn't installed. Checking your documentation, it seems that it's not included in the list of packages required to run.

After getting that installed, I got further. Now I'm getting the following:

Connection failed: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution

In the last field (Database host) I'm simply entering localhost.

matthewalanpenning commented 6 years ago

Hello Arden, What Linux distribution are you running and what version of PHP are you using? Using localhost as the database host is correct.

Shackelford-Arden commented 6 years ago

@matthewalanpenning ,

I'm on Ubuntu 18.04 with PHP 7.2 installed.

vm@vm:~$ apt-cache policy php
php:
  Installed: 1:7.2+60ubuntu1
matthewalanpenning commented 6 years ago

@Shackelford-Arden , It may be an issue with the use of the file() function in PHP. It was being used to check to see if there was an update on the github repository. I commented out the code. Try doing a "sudo git pull" in the openVM directory and see if that fixes the issue.

Shackelford-Arden commented 6 years ago

That resolved the issue for me. I've got another thing I'm running into but might be better suited via another issue.