HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   Update software repository (http://www.howtoforge.com/forums/showthread.php?t=61267)

davide.seo 2nd April 2013 17:56

Update software repository
 
Hi all, I've installed ispconfig3 on centos as tutorial: http://www.howtoforge.com/perfect-se...ispconfig-3-p3

but know I'm interested to update software .
As tutorial, I configured [epel] field with priority=10 ( very low ) but now update software tells me that:
Package phpmyadmin-2.11.11.3-2.el6.rf.noarch
is the latest version while on the official site 3.5.7 is the latest.

How can I update software avoiding problem with ispconfig ?
thanks

SunnyD 3rd April 2013 22:07

use the following:

Code:

yum install phpMyAdmin
Please note the case. If you install phpMyAdmin, it will install 3.5.7. If you install phpmyadmin (all lowercase), it will install 2.11.xx.

Also note: phpMyAdmin requires PHP 5.2 and MySQL 5, so if you plan on running with older version or allowing multiple versions of PHP, the newer version of phpMyAdmin may not work for you.

Hairy 4th April 2013 08:54

Quote:

Originally Posted by SunnyD (Post 295299)
use the following:

Code:

yum install phpMyAdmin
Please note the case. If you install phpMyAdmin, it will install 3.5.7. If you install phpmyadmin (all lowercase), it will install 2.11.xx.

Also note: phpMyAdmin requires PHP 5.2 and MySQL 5, so if you plan on running with older version or allowing multiple versions of PHP, the newer version of phpMyAdmin may not work for you.

Also, note that the configuring phpMyAdmin is different than phpmyadmin. To setup phpMyAdmin follow these steps:

Code:

yum -y install phpMyAdmin
cp /usr/share/phpMyAdmin/config.sample.inc.php /usr/share/phpMyAdmin/config.inc.php
vim /usr/share/phpMyAdmin/config.inc.php

Then, make sure to change 'cookie' to 'http' like the following:

Code:

$cfg['Servers'][$i]['auth_type'] = 'http';
Then, edit the phpMyAdmin.conf file. Type the following line in your SSH Terminal Window:

Code:

vim /etc/httpd/conf.d/phpMyAdmin.conf
Then, comment out the /usr/share/phpmyadmin block as folows:

Code:

# phpMyAdmin - Web based MySQL browser written in php
#
# Allows only localhost by default
#
# But allowing phpMyAdmin to anyone other than localhost should be considered
# dangerous unless properly secured by SSL

Alias /phpMyAdmin /usr/share/phpMyAdmin
Alias /phpmyadmin /usr/share/phpMyAdmin

#<Directory /usr/share/phpMyAdmin/>
#  <:IfModule mod_authz_core.c>
#    # Apache 2.4
#    <RequireAny>
#      Require ip 127.0.0.1
#      Require ip ::1
#    </RequireAny>
#  </IfModule>
#  <IfModule !mod_authz_core.c>
#    # Apache 2.2
#    Order Deny,Allow
#    Deny from All
#    Allow from 127.0.0.1
#    Allow from ::1
#  </IfModule>
#</Directory>

<Directory /usr/share/phpMyAdmin/setup/>
  <IfModule mod_authz_core.c>
    # Apache 2.4
    <RequireAny>
      Require ip 127.0.0.1
      Require ip ::1
    </RequireAny>
  </IfModule>
  <IfModule !mod_authz_core.c>
    # Apache 2.2
    Order Deny,Allow
    Deny from All
    Allow from 127.0.0.1
    Allow from ::1
  </IfModule>
</Directory>

# These directories do not require access over HTTP - taken from the original
# phpMyAdmin upstream tarball
#
<Directory /usr/share/phpMyAdmin/libraries/>
    Order Deny,Allow
    Deny from All
    Allow from None
</Directory>

<Directory /usr/share/phpMyAdmin/setup/lib/>
    Order Deny,Allow
    Deny from All
    Allow from None
</Directory>

<Directory /usr/share/phpMyAdmin/setup/frames/>
    Order Deny,Allow
    Deny from All
    Allow from None
</Directory>

# This configuration prevents mod_security at phpMyAdmin directories from
# filtering SQL etc.  This may break your mod_security implementation.
#
#<IfModule mod_security.c>
#    <Directory /usr/share/phpMyAdmin/>
#        SecRuleInheritance Off
#    </Directory>
#</IfModule>

Then, restart httpd with the following:

Code:

/etc/init.d/httpd restart
I Hope that helps someone!


All times are GMT +2. The time now is 23:42.

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