CentOS

phpmyadmin gives Function get_magic_quotes_gpc() is deprecated

JJ
Jobin Joseph · Founder and CEO
·Published 29 March 2021·1 min read

Hello Folks,

Today I was installing PHPMyAdmin and I was getting the below error while accessing http://IP/phpmyadmin page. The error was repeating even after logging in.

I have gone through the Google search results, but I couldn’t find any quick results. Most of the links were talking about reinstalling the php-gettext package and restarting the service but it was not fixing the issue. Some other websites were talking about disabling the error reporting in the PHP.ini file. So thought of posting a solution here so it may help someone.

The solution was to add the below line in the phpMyadmin Configuration file. Please note that if you don’t have this line in your phpMyadmin configuration you just need to add this line as it is.

vi /etc/phpMyAdmin/config.inc.php

Add the below line just above the “?>” closing line.

$cfg['SendErrorReports'] = 'never';

Once the line is added, save and exit the file and restart the httpd service.

systemctl restart  httpd

I hope this was helpful.:)

Jobin Joseph
Jobin Joseph, Founder and CEO
5x AWS Certified, ISO 27001:2022 Lead Implementer, 17+ years building cloud infrastructure for regulated industries.
About Jobin →

Reading this because your AWS bill or uptime is a problem?

30 minutes, direct with the founder, no sales pitch: one specific recommendation for your AWS workload.

Book a free 30-minute review
30 min Free Consultation →