How to use phpMyAdmin

Discuss Applications

How to use phpMyAdmin

Postby Basher52 » Sat Dec 20, 2008 4:14 pm

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
Basher52
guru
guru
 
Posts: 881
Joined: Wed Oct 22, 2003 5:57 am
Location: .SE

Postby Void Main » Sat Dec 20, 2008 6:39 pm

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: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby Void Main » Sat Dec 20, 2008 9:18 pm

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
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby Basher52 » Mon Dec 22, 2008 12:26 pm

How can it expose this directory when it's the /var/www/html that is the web root.
User avatar
Basher52
guru
guru
 
Posts: 881
Joined: Wed Oct 22, 2003 5:57 am
Location: .SE

Postby Void Main » Mon Dec 22, 2008 2:01 pm

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
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby Basher52 » Tue Dec 23, 2008 4:13 am

yeah I see that, but I always thought that it's what httpd.conf has as its DocumentRoot that decides this.
User avatar
Basher52
guru
guru
 
Posts: 881
Joined: Wed Oct 22, 2003 5:57 am
Location: .SE

Postby Void Main » Tue Dec 23, 2008 9:43 am

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
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby Basher52 » Wed Dec 24, 2008 8:31 am

DOH!!

I should have thought of that :P
User avatar
Basher52
guru
guru
 
Posts: 881
Joined: Wed Oct 22, 2003 5:57 am
Location: .SE


Return to Applications

Who is online

Users browsing this forum: No registered users and 1 guest