You are not logged in.

#1 2018-02-21 10:51:12

Arch-Hoochie
Member
Registered: 2014-09-23
Posts: 75

Database not available

I do web development using arch usually it is excellent.

I have purchased a new laptop setup my arch but when I try to run something like phpmyadmin I get a error :

phpMyAdmin - Error
The mysqli extension is missing. Please check your PHP configuration. See our documentation for more information.

Also when I try to do a drupal installation I get this message:

Database Support
Disabled
Your web server does not appear to support any common PDO database extensions. Check with your hosting provider to see if they support PDO (PHP Data Objects) and offer any databases that Drupal supports.

I have gone through all the steps for enabling the extenstions in /etc/php/php.ini

Mariadb works from the command line I can login.

I have been trying to figure this out for the last few days I feel like I am missing something really simple and I am going to slap myself when someone tells me.

Also if I install the Drupal package it asks for php71-dg but if I install this I get a GD error.

Thanks for your time
Daniel

Last edited by Arch-Hoochie (2018-02-21 10:58:37)

Offline

#2 2018-02-21 14:39:14

seth
Member
Registered: 2012-09-03
Posts: 51,046

Re: Database not available

pacman -Qs php

Offline

#3 2018-02-21 15:03:43

Arch-Hoochie
Member
Registered: 2014-09-23
Posts: 75

Re: Database not available

That displays this:

local/adminer            4.6.1-1
local/php-apache      7.2.2-1
local/php-gd              7.2.2-1
local/php71               7.1.14-1
local/php71-mcrypt   7.1.14-1

Could the 71 versions be part of the issue?

Offline

#4 2018-02-21 15:11:36

hoerbert
Member
Registered: 2013-04-03
Posts: 87

Re: Database not available

Not necessarily. But if you want to use 7.1, then you should use the 7.1-Version of php-apache. Same for php-gd. They have to match the php-Version you want to use.

Torben

Offline

#6 2018-02-21 16:36:13

robg
Member
Registered: 2015-03-05
Posts: 218

Re: Database not available

Another possible issue:

Arch-Hoochie wrote:

The mysqli extension is missing. Please check your PHP configuration

Did you follow the steps outlined here?

Edit: I missed that you mentioned this in your initial post, please ignore this answer.

Last edited by robg (2018-02-21 16:37:51)

Offline

#7 2018-02-22 16:59:01

Arch-Hoochie
Member
Registered: 2014-09-23
Posts: 75

Re: Database not available

Thanks, hoerbert and Seth I pushed php-gd php-apache back and it just works now.

How would you recommend to do a full backup? While I have used arch for years I think I should probably get more professional about it now lol.

Rsync looks promising.

Offline

Board footer

Powered by FluxBB