Author Topic: Changing PhpMyadmin URL - modifying the php code of CWP for link?  (Read 18112 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Hello There,
    I tried searching for this but couldn't get anything concrete.

So as we all know, phpmyadmin is currently using its default URL structure which is ip/phpMyAdmin , which in my opinion is not a good practice. So if I change the default URL from phpmyadmins configuration file, how would I replicate the new link in CWP's client side interface?

In short, where are the CWP design codes located in order to change the URL that clients see in their panel.

Thanks.

Offline
*
Re: Changing PhpMyadmin URL - modifying the php code of CWP for link?
« Reply #1 on: February 07, 2015, 04:40:05 PM »
I am curious about this as well. I am runnind an AWS instance with a private internal IP and a static external one. Being able to update this link would allow for more convenience in using the interface without a manual link correction whenever I navigate. Not a big issue, just nice clean up for future improvement. I noticed that the interface for the PHPMyAdmin link is still using my internal IP rather than pulling from the shared IP or hostname so that my public IP can be used for access. BUMP.

Offline
*
Re: Changing PhpMyadmin URL - modifying the php code of CWP for link?
« Reply #2 on: February 08, 2015, 05:11:22 PM »
I think I somewhere read about the CWP front-end design / code files being in /usr/local. So I guess it would be relatively easy just to modify the link in the code. OR if you are just using the server yourself, there is no need to modify the link since you already now its new path that you set.

Edit -- Here it is /usr/local/cwpsrv/htdocs/admin/design/

Offline
*
Re: Changing PhpMyadmin URL - modifying the php code of CWP for link?
« Reply #3 on: March 10, 2015, 02:18:10 AM »
now with the new versions you can access phpMyAdmin by using any domain, eg.

domain.com/phpMyAdmin
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
***
Re: Changing PhpMyadmin URL - modifying the php code of CWP for link?
« Reply #4 on: May 21, 2016, 10:15:44 AM »
Hi, have a good day !
I'm looking for solution to change default phpmyadmin login URL
http://yourdomain.com/phpmyadmin

I don't want anybody public out there able to guess it, perharps change it to something like http://yourdomain.com/dbadminlogin

How can i do that? please help.



Offline
*****
Re: Changing PhpMyadmin URL - modifying the php code of CWP for link?
« Reply #5 on: May 21, 2016, 12:17:29 PM »
1st - you need to rename the phpmyadmin directory ( location of phpmyadmin "/usr/local/apache/htdocs" )
2nd- then navigate to /usr/local/apache/conf.d open "domain-redirects.conf" and delete all entries for phpmyadmin (you can delete all)

after this add the Alias to "domain-redirects.conf"

Code: [Select]
RewriteEngine on
Alias /your desired name  /usr/local/apache/htdocs/phpmyadmin directory name

eg : Alias /dbadminlogin  /usr/local/apache/htdocs/phpmyadmin directory name

restart apache
« Last Edit: May 21, 2016, 12:22:16 PM by Sandeep »