Linux en Syn-3 Forum

Syn-3 Nederland => Syn-3 voiceserver / Asterisk => Topic gestart door: elger op December 26, 2007, 12:17:19



Titel: freepbx FATAL ERROR Access denied for user
Bericht door: elger op December 26, 2007, 12:17:19
Als ik deze pagina open:
https://<my ip address>/syn3/freepbx/admin/config.php
Krijg ik deze melding:

FATAL ERROR
[nativecode=Access denied for user 'root'@'localhost' (using password: YES)] ** mysql://root:amp109@localhost/asterisk


Oplossing: ff de Mysql user toevoegen; rechten geven; rechten inladen;

Code:
# mysql
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 5 to server version: 4.1.22

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>GRANT ALL PRIVILEGES ON asteriskcdrdb.* TO asteriskuser@localhost IDENTIFIED BY 'amp109';
Query OK, 0 rows affected (0.00 sec)

mysql> GRANT ALL PRIVILEGES ON asterisk.* TO asteriskuser@localhost IDENTIFIED BY 'amp109';
Query OK, 0 rows affected (0.00 sec)

mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.01 sec)

mysql> quit
Bye

Misschien is het trouwens slim om niet deze standaard naam/ww combi te gebruiken ...

Nu nog deze gegevens in de freepbx tovoegen. De config file staat in:
/etc/amportal.conf
Code:
# AMPDBUSER: the user to connect to the database named 'asterisk'
AMPDBUSER=asteriskuser

# AMPDBPASS: the password for AMPDBUSER
AMPDBPASS=amp109

Je kunt nu inloggen op https://<my ip address>/syn3/freepbx/admin/config.php met de standaard naam / password admin/admin