First, sorry for my poor english!
I have a Asterisk / A2b / FreePBX Enviroment Cenario Works Good for me.
My problem is…I dont run my freepbx if database is putted on different machine. All config are IGNORED by freepbx, trying to connect only with local mysql
All password and adress of my structure in files listed below are replaced, ok?
To maximize performace, i have putted this is 2 machines, with distinct services…
Machine 01 -
Java JRE (For OpenFire)
Running Services - In this machine, i have my A2b, All Databases, Munim Server, Openfire Server, all works ok and interact with asterisk via Manager
My asterisk is on Realtime mode, and all databases (asterisk and CDR) are in this machine,
Apache (Only for FreePBX)
Running Cenario - My FreePBX ignore all configuration putted on amportal.conf or freepbx.conf, both on /etc, as default installation.
If i put databases running on local machine, all works ok, But in other machine, is ignored.
My Files to Inspect…
freepbx.conf<?php $amp_conf['AMPDBUSER'] = 'freepbxuser'; $amp_conf['AMPDBPASS'] = 'My_Password'; $amp_conf['AMPDBHOST'] = 'Host or IP - None Diference'; $amp_conf['AMPDBNAME'] = 'asterisk'; $amp_conf['AMPDBENGINE'] = 'mysql'; $amp_conf['datasource'] = ''; //for sqlite3 require_once('/usr/share/freepbx/admin/bootstrap.php'); amportal.conf AMPDBHOST=My IP AMPDBENGINE=mysql AMPDBNAME=asterisk AMPENGINE=:asterisk AMPDBUSER=freepbxuser (Custom User, tested via PHPMyAdmin) AMPDBPASS=My Password All i have on log is this... /var/log/apache.error.log [error] Connection error: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) If i put this to work, is good for me. In future, i will try to run in the BEST cenario for me. If i put my FreePBX on APP Machine (Machine 01_ and disable my Apache on asterisk Server, comunicate all data via Manager, is my dream goal... Thanks for any help or time reading this JCQ