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
Code:
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);
header('Location:'.$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 db1.domain_name.com
That of course did not work internally on the network or externally.
How can I correct this?
Recent comments
1 day 25 sec ago
1 day 5 hours ago
1 day 9 hours ago
1 day 11 hours ago
2 days 1 hour ago
2 days 1 hour ago
2 days 6 hours ago
2 days 13 hours ago
2 days 14 hours ago
2 days 15 hours ago