Obsolete Releases > SME 8.x Contribs
odd error with garbage in phpMyAdmin configuration file
wdepot:
I've suddenly run into a strange problem with my /etc/phpMyAdmin/config.inc.php file in SME 8. After a recent server update suddenly phpMyAdmin won't start because of an error message due to garbage in the very beginning of the config.inc.php file. I can't figure out where the garbage comes from. I've checked all of the related template files and none of them contains the garbage that is showing up. The stock e-smith templates folder for the file contains template-begin, template-end (both empty) and 10config which I've checked and confirmed is free of garbage. The templates-custom folder for the file contains only 20user-config which contains the information I had to add for phpMyAdmin to use the database configuration settings that was new to version 3 and again this file is free of garbage.
When the template for the config.inc.php is being expanded (either with expand-template or by server reconfigure) somehow the garbage is being added to the file essentially between template-begin and 10config. Does anyone have any ideas why this could be happening or, more importantly, how to prevent it? Sure I can edit the garbage out of the config file after every server update so I can run phpMyAdmin but I would sure prefer to prevent the problem in the first place.
Stefano:
what about sharing the config file here?
piran:
--- Quote from: wdepot on May 10, 2013, 12:17:21 AM ---I can't figure out where the garbage comes from.
--- End quote ---
Ditto what Stefano says but also what editing
mechanism are you using to generate/edit your file?
PostEdit: -ph +f
wdepot:
I originally used TextEdit (Mac OSX 10.4) in text mode to create the 20user-config templates-custom file and then tried Microsoft Word saving in Western ASCII to see if that made any difference. The file in the templates folder are what were installed by smeserver-phpmyadmin. The expanded file ends up looking like this:
--- Code: ---???Bud1????????????%?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? ??????@??????????????????????????????????????? ??????@????????????????????????????????????????? ??????@????????????????????????????????????????? ??????@???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????E???%???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????DSDB?????????????????????????????`?????????????????????????????????????????????? ??????@????????????????????????????????????????? ??????@????????????????????????????????????????? ??????@??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????<?php
/*
* Generated configuration file
* Generated by: phpMyAdmin 2.9.0.2 setup script by Michal ÄihaÅ <michal@cihar.com>
* Version: $Id: setup.php,v 1.36.2.3.2.1 2006/10/03 13:11:08 nijel Exp $
* Date: Thu, 12 Oct 2006 16:17:17 GMT
*/
/* Servers configuration */
$i = 0;
/* Server localhost (config:root) [1] */
$i++;
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'edited out';
/* End of servers configuration */
?>
<?php
/* User used to manipulate with storage */
$cfg['Servers'][$i]['controlhost'] = 'localhost';
$cfg['Servers'][$i]['controluser'] = 'pma';
$cfg['Servers'][$i]['controlpass'] = 'edited out';
/* Storage database and tables */
$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]['table_uiprefs'] = 'pma_table_uiprefs';
$cfg['Servers'][$i]['tracking'] = 'pma_tracking';
$cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords';
$cfg['Servers'][$i]['userconfig'] = 'pma_userconfig';
$cfg['Servers'][$i]['recent'] = 'pma_recent';
$cfg['ShowPhpInfo'] = true;
$cfg['ShowServerInfo'] = true;
$cfg['ShowStats'] = true;
?>
--- End code ---
Since the garbage all appears at the very beginning of the file I would think it would come either from the template-begin file, but that it totally empty, or the 10config file, but when I check that file it contains nothing but the code that generates the section between and including the first <?php and ?> pair.
wdepot:
I did just figure out a way to isolate the garbage so it won't cause problems. In the templates-custom folder for this file I created a template-begin file containing:
--- Code: ---<?php /*
--- End code ---
and an 01a file containing:
--- Code: ---*/ ?>
--- End code ---
When I expand the template now the garbage is still in the config file but now it appears as a strange looking PHP comment as it now gets inserted between the begin and end comment code.
I would still like to know if anyone has any ideas where the garbage is coming from. As far as I know the expanded config.inc.php file is the only templated file to get garbage inserted into it but with the occasional sudden unexplained slowdowns our web server has been experiencing lately I wonder if something else could be ending up with some garbage in it.
Navigation
[0] Message Index
[#] Next page
Go to full version