Nakiami / mellivora

Mellivora is a CTF engine written in PHP
GNU General Public License v3.0
440 stars 171 forks source link

No connection to database #132

Closed Unaim1 closed 4 years ago

Unaim1 commented 4 years ago

Hi,

I followed your tutorial in LAMP (https://github.com/Nakiami/mellivora/blob/master/install/lamp/README.md)

I didn't have any problem, until I visited the website after this step:

vim /var/www/mellivora/include/config/db.inc.php

I imported successfully the db and it's working, but the file has the correct db name, user and pass and I still get "Caught exception connecting to database" on the website.

image

Unaim1 commented 4 years ago

I saw the easy fix in another post, in my case was php7.1-mysql (you should add it to the tutorial) https://github.com/Nakiami/mellivora/issues/82

Hi, I also tried to install mellivora on a Rasperry PI (raspbian image) and had the same issue. The fix for this is quite simple. The driver for php mysql is not installed, so just install it with:

sudo apt install php7.0-mysql

After that, restart the web server with:

sudo /etc/init.d/apache2 restart

Everything works fine for me now.