Apache2 config problem and phpmyadmin problem

This is a VPS system running Ubuntu 16.04.1. Virtualmin was installed this morning

Operating system Ubuntu Linux 16.04.1
Webmin version 1.892 Usermin version 1.741
Virtualmin version 6.03

It started as phpmyadmin failing to allow me to login as root. I can log in on the command line as root but not using phpmyadmin. I checked the config.php.ini for phpmyadmin and AllowRoot was set to true.

/**

  • whether to allow root login
  • @global boolean $cfg[‘Servers’][$i][‘AllowRoot’]
    */
    $cfg[‘Servers’][$i][‘AllowRoot’] = true;

So I thought I’d restart apache just for kicks and it won’t start with the following error message:

Sep 29 09:04:01 ezsched apache2[21786]: * The apache2 configtest failed.
Sep 29 09:04:01 ezsched apache2[21786]: Output of config test was:
Sep 29 09:04:01 ezsched apache2[21786]: AH00526: Syntax error on line 36 of /etc/apache2/sites-enabled/0-kk4gq.org.conf:
Sep 29 09:04:01 ezsched apache2[21786]: Invalid command ‘php_admin_value’, perhaps misspelled or defined by a module not in
Sep 29 09:04:01 ezsched apache2[21786]: Action ‘configtest’ failed.
Sep 29 09:04:01 ezsched apache2[21786]: The Apache error log may have more information.

The offending line at 36 was:

php_admin_value engine Off

When I commented that line out, the restart gave me the similar results with this line

Sep 29 09:05:26 ezsched apache2[21833]: Invalid command ‘php_value’, perhaps misspelled or defined by a module not included

Commenting that line simple complained about the next line with php_value.

What the heck is going on?

Thanks,
Jim.

OK so I think I found the apache2 problem. I had restored via, virtualmin restore, some sites that were dumped from another server. That server was running Centos 6. Once I commented out all the syntax error lines, service apache2 restart worked.

I sill can’t log in as root on phpmyadmin however.

mysqli_real_connect(): (HY000/1698): Access denied for user ‘root’@‘localhost’