Koozali.org: home of the SME Server

upgrading to newer version of phpMyAdmin

Offline brunp

  • *
  • 13
  • +0/-0
upgrading to newer version of phpMyAdmin
« on: February 14, 2014, 07:22:23 PM »
So, I following the phpMyAdmin specifics from the php 5.3 to 5.5 thread (copied below) and I am unable to perform an expand-template (it fails with an error: ERROR: No templates were found for /etc/phpmyadm/config.inc.php.) and I get  "Error #1045: Can not log in to My SQL Server". if I try to log in through the website.

What am I missing??

This is copied from the original thread:

To make phpMyAdmin usable:
1) Create a new ibay specifically for phpMyAdmin (I would suggest calling it phpmyadmin) and set it with the appropriate access permissions being sure to enable dynamic content (i.e. PHP). Then delete the index.html file from the html folder of this new ibay.
2) Load the complete phpMyAdmin file set you've just downloaded into the html folder of the new ibay. The root directory for phpMyAdmin should be the ibay's html folder so load the entire CONTENTS of the phpMyAdmin folder you've downloaded into it and not the phpMyAdmin folder itself.
3) Create a new folder in /etc called phpMyAdmin and set permissions on it to at least 775.
4) Create a folder in /etc/e-smith/templates-custom named phpMyAdmin and then inside that create a folder named config.inc.php
5) Inside the new /etc/e-smith/templates-custom/phpMyAdmin/config.inc.php folder create three files, an EMPTY file named template-begin, an EMPTY file named template-end and one other file (I used the "10config" name used by the smeserver-phpmyadmin contribution where this comes from) containing the following:
Code: [Select]
<?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']        = '{
open (PW, "/etc/openldap/ldap.pw")
        || die "Could not read LDAP password.\n";
my $pw = <PW>;
chomp ($pw);
close PW;
$OUT .= "$pw";
}'
;
/* End of servers configuration */

?>



6) expand-template /etc/phpMyAdmin/config.inc.php
7) You should now have a config.inc.php inside the /etc/phpMyAdmin folder you created. If can figure out how to get your phpMyAdmin to directly access this file you are set to go. Otherwise, do like I did and just copy the password from the file and then log in to phpMyAdmin as root using this password. In that case the very first thing to do is create a new user with all privileges and a password you can remember to use for all future access to phpMyAdmin which you will access as http://server_url/phpmyadmin_ibay_name/

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: upgrading to newer version of phpMyAdmin
« Reply #1 on: February 15, 2014, 01:43:02 AM »
brunp

Quote
...I am unable to perform an expand-template (it fails with an error: ERROR: No templates were found for /etc/phpmyadm/config.inc.php.)..
What am I missing??

Perhaps you misspelt the name, &/or you did not capitalize correctly.
In Linux phpmyadmin is different to phpMyAdmin (which is also different to phpmyadm).

What you typed above (/etc/phpmyadm/....) is spelt differently to what the instructions say, maybe that's a typo entering it to the forum, or maybe that's a problem on your server due to wrong spelling and/or wrong capitalisation ??
Check everything you did again, carefully !

If you cannot expand the template correctly, then access to phpMyAdmin will not work, so the URL access error is not greatly relevant at this time, fix the template issue first.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline brunp

  • *
  • 13
  • +0/-0
Re: upgrading to newer version of phpMyAdmin
« Reply #2 on: March 01, 2014, 04:59:48 AM »
well....turns out there was a slight mistake in the instructions provided for the template creation.

The location of those config files have to be here:

/etc/e-smith/templates-custom/etc/phpMyAdmin/

not

/etc/e-smith/templates-custom/phpMyAdmin/

This allows for the expand-template command to work correctly. Well, this was the case in my opinion.

Paul

Offline brunp

  • *
  • 13
  • +0/-0
Re: upgrading to newer version of phpMyAdmin
« Reply #3 on: March 01, 2014, 03:24:29 PM »
It was in reply 11, of this thread made by wdepot. It could have been a simple typo....

Offline MarkR

  • ***
  • 56
  • +0/-0
Re: upgrading to newer version of phpMyAdmin
« Reply #4 on: July 11, 2014, 10:51:58 AM »
Hi,

I have followed the above instructions but i am unable to login to phpmyadmin, using the password in the expanded template,

any ideas?

many thanks
mark
...