LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Install phpMyAdmin on Linux Centos 6.2 without EPEL repo (https://www.linuxquestions.org/questions/linux-software-2/install-phpmyadmin-on-linux-centos-6-2-without-epel-repo-935003/)

rewards 03-17-2012 05:43 PM

Install phpMyAdmin on Linux Centos 6.2 without EPEL repo
 
Hello all,

Is there a way to install phpMyAdmin latest version on a 64bit Centos 6.2 without installing EPEL repository? I have install led rpmforge on the system and I am trying to avoid conflict between different repositories.

Thank you

TB0ne 03-17-2012 06:07 PM

Quote:

Originally Posted by rewards (Post 4629383)
Hello all,

Is there a way to install phpMyAdmin latest version on a 64bit Centos 6.2 without installing EPEL repository? I have install led rpmforge on the system and I am trying to avoid conflict between different repositories.

Thank you

Yes, download and install it from source.

rewards 03-17-2012 09:43 PM

Hi,

I have downloaded and uncompressed the file. How can I install it? The file is located in /tmp directory.

John VV 03-18-2012 01:01 AM

Quote:

I have install led rpmforge on the system and I am trying to avoid conflict between different repositories.
so you are NOT fallowing the advice/instructions on the CentOS wiki
http://wiki.centos.org/AdditionalResources/Repositories
and you DID NOT install the recommended "yum-priorities" or "yum-ProtectBase"
AS THE WARNING instructs you to do

install yum-priorities
http://wiki.centos.org/PackageManagement/Yum/Priorities

then CONFIGURE IT!!!!!!!!!!!
set rpmforge higher than EPEL
but lower than cent and cent-updates

1= highest
99= is the default lowest

cent 1
cent update 2
rpmforge 3
epel 4

lithos 03-18-2012 03:30 AM

Quote:

Originally Posted by rewards (Post 4629487)
Hi,

I have downloaded and uncompressed the file. How can I install it? The file is located in /tmp directory.

Well, first thing would be you need to "move" the package file (i.e. phpMyAdmin-3.5.0-rc2-all-languages.tar.gz )
to the directory in which you want to access it (e.g. /var/www/html/ )

Then you unpack it with
Code:

tar xzf phpMyAdmin-3.5.0-rc2-all-languages.tar.gz
and you will get a subdirectory with the name
Code:

/var/www/html/phpMyAdmin-3.5.0-rc2-all-languages
you can rename it to something else, let's say to access it easier:
Code:

mv phpMyAdmin-3.5.0-rc2-all-languages phpmyadmin
and copy the configuration file
Code:

cp config.sample.inc.php config.inc.php
then edit it ( vim config.inc.php ):
Code:

a simple configuration may look like
        this:

        <?php
        $cfg['blowfish_secret'] = 'ba17c1ec07d65003';  // use here a value of your choice

        $i=0;
        $i++;
        $cfg['Servers'][$i]['auth_type']    = 'cookie';
        ?>

        Or, if you prefer to not be prompted every time you log in:

        <?php

        $i=0;
        $i++;
        $cfg['Servers'][$i]['user']          = 'root';
        $cfg['Servers'][$i]['password']      = 'cbb74bc'; // use here your password
        $cfg['Servers'][$i]['auth_type']    = 'config';
        ?>

Then you can access it through the web address pointing at your directory /var/www/html/phpmyadmin
like:
Code:

http://www.example.com/phpmyadmin
I don't know how your domains in Apache are configured, but change the directory paths according to it.

It's easy.


good luck

rewards 03-18-2012 05:29 AM

Hi,

John. I have looked at the link on Centos Wiki http://wiki.centos.org/AdditionalResources/Repositories. The link has general information about all repositories but I did not see specifically how to twist multiple repositories and their priorities. You mentioned
cent 1
cent update 2
rpmforge 3
epel 4

Did you mean to put priority for the cent 1 and cent update 2, in CentOS-Base.repo file?

[root@phpfox yum.repos.d]# ls
CentOS-Base.repo CentOS-Media.repo epel-testing.repo mirrors-rpmforge-extras rpmforge.repo
CentOS-Debuginfo.repo epel.repo

Here are the repositories on my system with priority set. Are they configured correctly? Thank you.

# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
priority=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
priority=2
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

### Name: RPMforge RPM Repository for RHEL 6 - dag
### URL: http://rpmforge.net/
[rpmforge]
name = RHEL $releasever - RPMforge.net - dag
baseurl = http://apt.sw.be/redhat/el6/en/$basearch/rpmforge
mirrorlist = http://apt.sw.be/redhat/el6/en/mirrors-rpmforge
#mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge
enabled = 1
priority = 3
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
gpgcheck = 1

[rpmforge-extras]
name = RHEL $releasever - RPMforge.net - extras
baseurl = http://apt.sw.be/redhat/el6/en/$basearch/extras
mirrorlist = http://apt.sw.be/redhat/el6/en/mirrors-rpmforge-extras
#mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge-extras
enabled = 0
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
gpgcheck = 1

[rpmforge-testing]
name = RHEL $releasever - RPMforge.net - testing
baseurl = http://apt.sw.be/redhat/el6/en/$basearch/testing
mirrorlist = http://apt.sw.be/redhat/el6/en/mirrors-rpmforge-testing
#mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge-testing
enabled = 0
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
gpgcheck = 1

[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
enabled=1
priority=4
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

[epel-debuginfo]
name=Extra Packages for Enterprise Linux 6 - $basearch - Debug
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch/debug
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1

[epel-source]
name=Extra Packages for Enterprise Linux 6 - $basearch - Source
#baseurl=http://download.fedoraproject.org/pub/epel/6/SRPMS
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1

rewards 03-21-2012 03:51 PM

Hello all,

I appreciate your thoughts on this. Thank you


All times are GMT -5. The time now is 04:52 AM.