View Single Post
Old 15th December 2012, 20:07
kendel kendel is offline
HowtoForge Supporter
Join Date: Aug 2010
Posts: 132
Thanks: 4
Thanked 1 Time in 1 Post

One problem I am trying to figure out. Or rather a few problems:

I have my phpmyadmin on my db1 server running an apache instance.
I wish to make ispconfig on the panel server connecter to the phpmyadmin on the db server, how can I do that. one method I tried was:

First removing the /phpmyadmin from ispconfig server configuration then.
Using ssh to open the panel server that has the ispconfig web shell
nano /usr/local/ispconfig/interface/web/sites/database_phpmyadmin.php

    if($global_config['phpmyadmin_url'] != '') {
        $phpmyadmin_url = $global_config['phpmyadmin_url'];
        $phpmyadmin_url = str_replace('[SERVERNAME]',$serverData['server_name'],$phpmyadmin_url);
    } else {
        isset($_SERVER['HTTPS'])? $http = 'https' : $http = 'http';
        $http = 'http'; : just insert this line exactly here.
        if($web_config['server_type'] == 'nginx') {
            header('location:' . $http . '://' . $serverData['server_name'] . ':8081/phpmyadmin');
        } else {
            header('location:' . $http . '://' . $serverData['server_name'] . '/phpmyadmin');
I added the $http = 'http'; then I created an A record for db1 to the internal IP address of the database server which was called

That of course did not work internally on the network or externally.

How can I correct this?
Reply With Quote