You are not logged in.

#1 2011-03-24 08:07:27

gattu_marrudu
Member
Registered: 2008-03-29
Posts: 32

phpMyAdmin ignores config file

Hi there,
I am trying to customize my phpMyAdmin installation, but the file in /etc/webapps/phpmyadmin/config.inc.php is completely ignored.

I followed the steps in the phpmyadmin guide and somewhere on this forum. I succeeded in creating a new config file, fixed the permissions, put it back to /etc/webapps/phpmyadmin and deleting the temporary config folder. I still see the phpmyadmin main page requesting a blowfish passphrase, using mysql instead of mysqli extension and more aspects that I have changed in my config file.

The file was autogenerated so I doubt there are any wrong parameters.
I have rebooted the system completely since I made the changes.

This is my etc/webapps/phpmyadmin/config.inc.php:

<?php
/*
 * Generated configuration file
 * Generated by: phpMyAdmin 3.3.10 setup script by Piotr Przybylski <piotrprz@gmail.com>
 * Date: Wed, 23 Mar 2011 09:05:54 +0100
 */

/* Servers configuration */
$i = 0;

/* Server: localhost [1] */
$i++;
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = false;
$cfg['Servers'][$i]['bs_garbage_threshold'] = 50;
$cfg['Servers'][$i]['bs_repository_threshold'] = '32M';
$cfg['Servers'][$i]['bs_temp_blob_timeout'] = 600;
$cfg['Servers'][$i]['bs_temp_log_threshold'] = '32M';
$cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
$cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';
$cfg['Servers'][$i]['relation'] = 'pma_relation';
$cfg['Servers'][$i]['table_info'] = 'pma_table_info';
$cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';
$cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';
$cfg['Servers'][$i]['column_info'] = 'pma_column_info';
$cfg['Servers'][$i]['history'] = 'pma_history';
$cfg['Servers'][$i]['tracking'] = 'pma_tracking';

/* End of servers configuration */

$cfg['blowfish_secret'] = 'mybusiness';
$cfg['LoginCookieValidity'] = 32400;
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
$cfg['DefaultLang'] = 'en-utf-8';
$cfg['ServerDefault'] = 1;
?>

Any help would be greatly appreciated.
gm

Offline

#2 2011-03-26 12:10:22

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: phpMyAdmin ignores config file

Are you using the installation from /usr/share, or did you manually download and deploy it elsewhere? What does ls -al /usr/share/webapps/phpMyAdmin/config.inc.php show, is the symlink still intact?

Offline

#3 2011-03-26 12:46:20

gattu_marrudu
Member
Registered: 2008-03-29
Posts: 32

Re: phpMyAdmin ignores config file

All my PhpMyAdmin files are in /usr/share/webapps/phpMyAdmin, except config files which are in /etc/webapps/phpmyadmin.
/usr/share/webapps/phpMyAdmin/config.inc.php is symlinked to /etc/webapps/phpmyadmin/config.inc.php.

I'm running apache on localhost, and I have a virtual root (phpmyadmin.webserver) pointing to a symlink to /usr/share/webapps/phpMyAdmin. All other virtual roots in my webserver work.

Offline

#4 2011-05-27 10:56:31

MickST
Member
Registered: 2010-02-26
Posts: 54

Re: phpMyAdmin ignores config file

Same thing here, did you manage to fix it?

EDIT: Seems to be caused by the symlink to the config file. I'm using lighttpd and even though I enabled the setting to follow symlinks it's not doing it.

Is there anyone who has a similar setup and got it working without removing the symlink?

Last edited by MickST (2011-05-27 11:32:12)

Offline

#5 2011-12-28 05:23:12

Malakin
Member
From: Chile
Registered: 2007-04-29
Posts: 36
Website

Re: phpMyAdmin ignores config file

In case someone still has this problem. Remember to update open_basedir in /etc/php/php.ini and add "/usr/share/webapps/" and "/etc/webapps/".

open_basedir = /srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/etc/webapps/

Maybe that will solve your problem.

Offline

Board footer

Powered by FluxBB