Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 24th June 2013, 12:51
phibrz phibrz is offline
Junior Member
 
Join Date: Apr 2013
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post
Exclamation old phpmyadmin2 need update to phpmyadmin3

Hi!
Im using the guide:
http://www.howtoforge.com/perfect-se...ot-ispconfig-3


BUT it say on Page 5 (http://www.howtoforge.com/perfect-se...ispconfig-3-p5)
that "yum install phpmyadmin"
this is an old phpmyadmin version 2.X
"yum install phpmyadmin3" should be correct because if you run "yum update" after installation and then try to use phpmyadmin
you get errors like:
Deprecated: Function Eregi() Is Deprecated In /usr/share/phpmyadmin/libraries/select_lang.lib.php

with is fixed with:
http://www.travolto.com/posts/deprec..._lang-lib-php/

and when this is fixed and you login you get errors like:
/usr/share/phpmyadmin/libraries/check_user_privileges.lib.php on line 34 Deprecated: Function ereg() is deprecated in /usr/share/phpmyadmin/libraries/check_user_privileges.lib.php


All of these errors are because its version 2.X of phpmyadmin version 3.X have these issues solved.

So why is ISPconfig not using phpmyadmin3 and if i install it will it break the system or even work?

RGDS Phi
Reply With Quote
Sponsored Links
  #2  
Old 24th June 2013, 18:13
dclardy dclardy is offline
Senior Member
 
Join Date: Sep 2009
Location: Dallas, TX
Posts: 347
Thanks: 10
Thanked 47 Times in 28 Posts
Default

ISPConfig can use whatever version you want to use. Your system is installing the older package because CentOS has 2.X related to that command. If you install the new version, you will see no issues.
Reply With Quote
  #3  
Old 25th June 2013, 16:30
phibrz phibrz is offline
Junior Member
 
Join Date: Apr 2013
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post
Default

Ok, so a simple yum erase phpmyadmin
and then yum install phpmyadmin3 should work?
Reply With Quote
The Following User Says Thank You to phibrz For This Useful Post:
john_tuby8 (22nd July 2013)
  #4  
Old 25th June 2013, 17:06
dclardy dclardy is offline
Senior Member
 
Join Date: Sep 2009
Location: Dallas, TX
Posts: 347
Thanks: 10
Thanked 47 Times in 28 Posts
Default

That should take care of it for you.
Reply With Quote
  #5  
Old 26th June 2013, 04:08
tahunasky tahunasky is offline
Member
 
Join Date: Jul 2012
Location: Buenos Aires
Posts: 84
Thanks: 1
Thanked 8 Times in 8 Posts
Default

Or you can just download the latest version from phpmyadmin site:

http://www.phpmyadmin.net/home_page/downloads.php

remove old version first, then:

extract phpMyAdmin-4.0.4-english.7z dir/files and then copy directory to the opt dir on server. eg:

/opt/phpmyadmin-4.0.4

then add a redirect to apache. Create a file called:

/etc/apache2/conf.d/phpmyadmin.conf

or on centos it might be:

/etc/httpd/conf.d/phpmyadmin.conf


add the following to phpmyadmin.conf:

Alias /phpmyadmin /opt/phpMyAdmin-4.0.4
Alias /phpMyAdmin /opt/phpMyAdmin-4.0.4
Alias /pma /opt/phpMyAdmin-4.0.4

<Directory /opt/phpMyAdmin-4.0.4>
Options +FollowSymLinks
Order allow,deny
allow from all
</Directory>


If you want ssl add the following also:

RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

Restart apache or reboot server:

/etc/init.d/apache restart

or centos might be..

/etc/init.d/httpd restart

and you should be able to access from:
domain.tld/phpmyadmin
or
domain.tld/phpMyAdmin
or
domain.tld/pma
Reply With Quote
The Following User Says Thank You to tahunasky For This Useful Post:
john_tuby8 (22nd July 2013)
  #6  
Old 26th June 2013, 05:54
phibrz phibrz is offline
Junior Member
 
Join Date: Apr 2013
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi!
Thanks!
Removed the old version 2 of phpmyadmin
and did yum update
then yum install phpMyAdmin
now i got phpMyAdmin-4.0.4-1.el6.remi.noarch

BUT since im using the guide with nginx on centos instead of apache (http://www.howtoforge.com/perfect-se...ispconfig-3-p5)
the alias that is in /etc/httpd/conf.d/phpMyAdmin.conf
Code:
Alias /phpMyAdmin /usr/share/phpMyAdmin
Alias /phpmyadmin /usr/share/phpMyAdmin
donīt work for me and now i just get
403 Forbidden
nginx/1.0.15

when i try to access
http://myhostname.com:8081/phpmyadmin/
or http://myhostname.com:8081/phpMyAdmin/

been trying for several hours to find the solution, so if anyone can help i will be happy.
Thanks!
Reply With Quote
  #7  
Old 22nd July 2013, 10:39
phibrz phibrz is offline
Junior Member
 
Join Date: Apr 2013
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post
 
Default

anyone got a solution for the 403 error i got?

itīs strange cause i renamed the old phpmyamin folder that contained only config.inc.php.rpmsave to phpmyadmin_old
and then renamed the folder that phpMyAdmin-4.0.4-1.el6.remi.noarch created /usr/share/phpMyAdmin to /usr/share/phpmyadmin and it worked.

i belive iīve read it checks both folders in /usr/share/php* or?

Last edited by phibrz; 22nd July 2013 at 11:25.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
My Centos is terribly slow Galled Server Operation 9 7th December 2010 15:31
Vhosts...conf not synced to changes crypted General 50 24th April 2010 00:54
The system is currently updating the configuration files. warlock General 8 21st February 2009 18:15
High Availability Samba cluster - DRBD + Heartbeat djalex Server Operation 58 25th May 2007 19:38
HotSaNIC domino Tips/Tricks/Mods 23 6th November 2006 05:19


All times are GMT +2. The time now is 00:20.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.