Change phpMyAdmin directory?

A32

Verified User
Joined
Oct 1, 2005
Messages
23
Hi,

I'm trying to change my phpMyAdmin directory to something more obscure. Lets just say "phpMyAdmin_HSHUGSDHFD" .. But when I rename it, it's no longer available .. Apache says it doesn't exist.. My question:

What things do I need to do in order to change my phpMyAdmin directory name and also tell DA where it's at too.

Thanks!
 
Sure! I can help you out.

You'll need to find your httpd.conf file. After that it's a breeze as far as accessing your newly renamed phpMyAdmin directory. From what I can figure you can't access the /var/www/html/* directories by itself so you have to make aliases.. These aliases are located in the httpd.conf file. Just change them to whatever you want like..

nano /etc/httpd/conf/httpd.conf

Find the line that says:

#Start DirectAdmin Settings

and you'll see the Aliases there..

After you change what you want, save & restart Apache. NJow you can at least directly access phpMyAdmin from your chosen directory.. If they can't find it, they can't use it.

Now if I could only figure out how to change the link in DA.

Thanks for the awesome help guys.
 
Hello,

Does anybody actually knows how to change the directory of phpmyadmin? I want to rename it to something else.

Thanks
 
LOL! I just got a notification that someone replied to my post from 2007! Forum posts are timeless.

I've since stopped using DA and moved on to something a little easier to deal with (and cheaper): my fingers and a bash shell :-)
 
actually the file i had to edit was :

/etc/httpd/conf/extra/httpd-alias.conf

Thanks
 
Back
Top