PBX server is elastix-1.6.2-7.
Last week i updated FreePBX from freePBX-2.5.2-2rc to freePBX-2.5.2-5rc via yum. The RPM was retrieved from the Elastix repository.
Install failed, message was:
Connecting to database..FAILED
Try running ./install_amp --username=user --password=pass (using your
own user and pass)
[FATAL] Cannot connect to database
Noticed that the update had overwritten the config file /etc/amportal.conf. Updated that file, then ran install_amp manually. That script changed the owner and group of every file on the filesystem to be asterisk:asterisk. It also cleared the setuid and setgid flags on every file.
By everything i mean /proc, /dev, /bin, /usr, /var, everything.
I spent an entire day fixing the damage caused by the install_amp script.
So there are two issues here:
1) the upgrade overwrote the config file /etc/amportal.conf
2) the install_amp script changed the owner and group and cleared setuid and setgid flags on every file on the server.
I have added FreePBX to the exclude list in yum.conf for the time being, so we do not have the same issues on our other Elastix servers.
I understand that we are not running the latest version of FreePBX, but we have to install the versions that exist in the Elastix repositories.
Apologies if there is an open ticket for this already, i searched and could not find one.