First, you need to make sure that PMA is accessible from outside the DA GUI (set to 'yes'):
1)
Code:
grep phpmyadmin_public /usr/local/directadmin/custombuild/options.conf
2) Then, you would need to add your custom alias to the PMA aliases, which are currently set like so:
Code:
/etc/httpd/conf/extra/httpd-alias.conf:Alias /phpMyAdmin /var/www/html/phpMyAdmin
/etc/httpd/conf/extra/httpd-alias.conf:Alias /phpmyadmin /var/www/html/phpMyAdmin
/etc/httpd/conf/extra/httpd-alias.conf:Alias /pma /var/www/html/phpMyAdmin
3) To add your alias so that Apache will retain the changes:
Code:
cd /usr/local/directadmin/data/templates/custom
cp ../virtual_host2*.conf .
4) Add the following near the bottom of the file /usr/local/directadmin/data/templates/custom/virtual_host2.conf beneath |CUSTOM4|
Code:
Alias /pmadb /var/www/html/phpMyAdmin
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue
/usr/local/directadmin/dataskq d
service httpd restart
Note that the link displayed in the panel for PMA may not work anymore (I haven't tested this). Did I miss something ?
For 1) - 2), I already have this inside both options.conf and httpd-alias.conf.
From number 4, I think you mean just to add the first line of code because the other 3 lines I think it supposed to run via terminal right? So, beneath |CUSTOM4| in virtual_host2.conf there I put the first line of configuration
Alias /pmadb /var/www/html/phpMyAdmin like below:
Then I run this via terminal:
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue
/usr/local/directadmin/dataskq d
service httpd restart
Then, I clear the browser cache, but I don't see the URL is shown for the phpMyAdmin Icon. I even restarted the server. and also I have run the following command:
cd /usr/local/directadmin/custombuild
./build rewrite_confs
and the url is not updated.
===
Just to give more details what my aim is (i forgot to actually include this picture in the first post), actually I want the phpmyAdmin icon above to have a url like
http://server.test.com:2222/pmadb , but if i change the value route to any other value it will become base URL:
http://server.test.com:2222 , so does your code creating a custom route to this icon ?