PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, January 12, 2022

[FIXED] Enable mysqli on Linux AMI EC2 Instance for phpMyAdmin 5.0.2 install

 January 12, 2022     linux, mysqli, php, phpmyadmin     No comments   

Issue

I am trying to enable the mysqli php extension on my Linux AMI EC2 Instance so I can access phpMyAdmin 5.0.2. The current version of php that was installed is 7.2. When I go to access try to access phpMyAdmin console, it says it is missing the mysqli extension. I ran the following command to check to see if it is enabled and it just comes out blank:

php -m | grep mysqli

So, I successfully installed mysqli by running:

sudo su yum install yum install php72-mysqli -y

I then successfully restarted the Apache server using the following command:

sudo su service httpd restart

I then ran the php -m | grep mysqli to see if mysqli was enabled and the command does not produce anything showing it is enabled.

Can anyone help me enable the mysqli php extension?


Solution

I was able to enable mysqli by restarting the mysqld daemon by inputting:

sudo su service mysqld restart

The phpMyAdmin page came up properly.



Answered By - sonicspark
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing