How to use phpMyAdmin

Discuss Applications
Post Reply
User avatar
Basher52
guru
guru
Posts: 928
Joined: Wed Oct 22, 2003 5:57 am
Location: .SE

How to use phpMyAdmin

Post by Basher52 »

I usually install this by getting a gzip'd file, but now I used yum to install it, but I cant find the web files and I cant find how to start it at all :(
any clues?

oh.. this is in F10
Last edited by Basher52 on Mon Dec 22, 2008 12:37 pm, edited 1 time in total.

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main »

Do an "rpm -qil <packagename>" where packagename is the name of the installed package (phpMyAdmin or whatever it's name is) and it will list the location of all the files.

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main »

I just realized you probably meant phpMyAdmin is now included in the Fedora repository. I originally thought you got it off of the phpMyAdmin download site in RPM format. I have only done the tar install as well. I just yum installed it and it installs the actual files under /usr/share/phpMyAdmin and exposes that same directory off your web root:

http://localhost/phpMyAdmin/

You may have to restart httpd after installing it.

User avatar
Basher52
guru
guru
Posts: 928
Joined: Wed Oct 22, 2003 5:57 am
Location: .SE

Post by Basher52 »

How can it expose this directory when it's the /var/www/html that is the web root.

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main »

Look at its configuration file and you'll see. The config file is /etc/httpd/conf.d/phpMyAdmin.conf. You can actually use either /phpMyAdmin or /phpmyadmin (see the Alias lines).

User avatar
Basher52
guru
guru
Posts: 928
Joined: Wed Oct 22, 2003 5:57 am
Location: .SE

Post by Basher52 »

yeah I see that, but I always thought that it's what httpd.conf has as its DocumentRoot that decides this.

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main »

Any *.conf file in /etc/httpd/conf.d is essentially part of httpd.conf. Those files get included as part of the configuration via this line in httpd.conf:

Code: Select all

Include conf.d/*.conf
It's been that way for quite some time now and really makes things a lot neater by modularizing the config file. All an app such as phpMyAdmin has to do is include a separate *.conf file with it's customizations into that directory rather than having to worry about modifying the existing httpd.conf file.

User avatar
Basher52
guru
guru
Posts: 928
Joined: Wed Oct 22, 2003 5:57 am
Location: .SE

Post by Basher52 »

DOH!!

I should have thought of that :P

Post Reply