separate web and database configuration

Hi,
I'm building a setup where web server and database server is separated. According to some tutorials I managed to progress.. However I'm not sure if this is the only things I need to do.
Web
1. edit /var/www/agc/dbconnect.php and /var/www/vicidial/dbconnect.php with your credentials on the external DB.
AGC (/var/www/agc/dbconnect.php)
#defaults for DB connection
#defaults for DB connection
$VARDB_server = 'externaldbipaddress';
$VARDB_port = '3306';
$VARDB_user = 'dbuser';
$VARDB_pass = 'dbpassword';
$VARDB_database = 'dbname';
$WeBServeRRooT = '/var/www';
VICIDIAL (/var/www/vicidial/dbconnect.php)
#defaults for DB connection
$VARDB_server = 'externaldbipaddress';
$VARDB_port = '3306';
$VARDB_user = 'dbuser';
$VARDB_pass = 'dbpass';
$VARDB_database = 'dbname';
$WeBServeRRooT = '/var/www';
Questions:
1. Is $VARDB_pass the dbuser password?
2. Is $VARDB_database the database name?
2. Edit /etc/astguiclient.conf
# The IP address of this machine
VARserver_ip => webserverip
# Database connection information
VARDB_server => externaldbip
VARDB_database => externaldatabase
VARDB_user => dbuser
VARDB_pass => dbpass
VARDB_port => 3306
DB
1. edit my.cnf to allow remote connections
2. grant permissions to root and cron to allow remote connections.
Time (configured with NTP):
1. Go to the Web Server and check the timezone.
2. Go to the DB Server and check the timezone. Both of them should have the same.
Questions:
1. After doing this, do I still need to configure something in the VICIDIAL Admin panel?
2. Do I still need to configure something in the WEB Server console (perl scripts)?
Regards,
Lui
I'm building a setup where web server and database server is separated. According to some tutorials I managed to progress.. However I'm not sure if this is the only things I need to do.
Web
1. edit /var/www/agc/dbconnect.php and /var/www/vicidial/dbconnect.php with your credentials on the external DB.
AGC (/var/www/agc/dbconnect.php)
#defaults for DB connection
#defaults for DB connection
$VARDB_server = 'externaldbipaddress';
$VARDB_port = '3306';
$VARDB_user = 'dbuser';
$VARDB_pass = 'dbpassword';
$VARDB_database = 'dbname';
$WeBServeRRooT = '/var/www';
VICIDIAL (/var/www/vicidial/dbconnect.php)
#defaults for DB connection
$VARDB_server = 'externaldbipaddress';
$VARDB_port = '3306';
$VARDB_user = 'dbuser';
$VARDB_pass = 'dbpass';
$VARDB_database = 'dbname';
$WeBServeRRooT = '/var/www';
Questions:
1. Is $VARDB_pass the dbuser password?
2. Is $VARDB_database the database name?
2. Edit /etc/astguiclient.conf
# The IP address of this machine
VARserver_ip => webserverip
# Database connection information
VARDB_server => externaldbip
VARDB_database => externaldatabase
VARDB_user => dbuser
VARDB_pass => dbpass
VARDB_port => 3306
DB
1. edit my.cnf to allow remote connections
2. grant permissions to root and cron to allow remote connections.
Time (configured with NTP):
1. Go to the Web Server and check the timezone.
2. Go to the DB Server and check the timezone. Both of them should have the same.
Questions:
1. After doing this, do I still need to configure something in the VICIDIAL Admin panel?
2. Do I still need to configure something in the WEB Server console (perl scripts)?
Regards,
Lui