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

No connection to database #132

Closed
Unaim1 opened this issue Feb 5, 2020 · 1 comment
Closed

No connection to database #132

Unaim1 opened this issue Feb 5, 2020 · 1 comment
Labels

Comments

@Unaim1
Copy link

Unaim1 commented Feb 5, 2020

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
Copy link
Author

Unaim1 commented Feb 5, 2020

I saw the easy fix in another post, in my case was php7.1-mysql (you should add it to the tutorial)
#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.

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

No branches or pull requests

2 participants