Reinstall FREEPBX 14

I accidentally delete /etc/freepbx.conf (stupid me :pensive:) , how can I reinstall freepbx without overwriting my exisiting asterisk configurations ??

[email protected]:/home/jeff# tail -f /var/log/apache2/error.log
[Sun May 03 09:55:18.501500 2020] [:error] [pid 29780] [client 51.39.2.227:1177] PHP Fatal error: Class ‘FreePBX’ not found in /var/www/html/admin/config.php on line 136
[Sun May 03 09:59:51.709142 2020] [:error] [pid 29785] [client 51.39.2.227:2318] PHP Warning: include_once(/etc/freepbx.conf): failed to open stream: No such file or directory in /var/www/html/admin/config.php on line 126
[Sun May 03 09:59:51.709177 2020] [:error] [pid 29785] [client 51.39.2.227:2318] PHP Warning: include_once(): Failed opening ‘/etc/freepbx.conf’ for inclusion (include_path=’.:/usr/share/php:/usr/share/pear’) in /var/www/html/admin/config.php on line 126

Here is what it looked like:

<?php

$amp_conf["AMPDBUSER"] = "freepbxuser";
$amp_conf["AMPDBPASS"] = "mysq_password_for_freepbxuser";
$amp_conf["AMPDBHOST"] = "localhost";
$amp_conf["AMPDBNAME"] = "asterisk";
$amp_conf["AMPDBENGINE"] = "mysql";
$amp_conf["datasource"] = "";

require_once "/var/www/html/admin/bootstrap.php";

You just need to reset your mysql password for the freepbxuser and re-create the file above using the new password.

3 Likes

hi , thank you…this solve my problem, anyway Im trying to enbable webrtc to UCP ,import certificate from letsencryt, open all ports and follow wiki guide , but after doing it I dont have webrtc options under user manager / UCP /

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.