jueves, 15 de octubre de 2015

PHPMYADMIN remote conection



by default php conect to localhost and not using port change it to the IP a nd restart apache



nano /etc/phpmyadmin/config.inc.php


if (!empty($dbname)) {
    /* Authentication type */
    $cfg['Servers'][$i]['auth_type'] = 'cookie';
    /* Server parameters */
    if (empty($dbserver)) $dbserver = '5.149.226.16';
    $cfg['Servers'][$i]['host'] = $dbserver;

    if (!empty($dbport) || $dbserver != '5.149.226.16') {
        $cfg['Servers'][$i]['connect_type'] = 'tcp';
        $cfg['Servers'][$i]['port'] = $dbport;
    }



/etc/init.d/apache2  restart

No hay comentarios:

Publicar un comentario