FOP2 Upgrade on FreePBX HA
-
-
I have just find out why settings do not persist, the fop2settings.db must be copied to /etc/asterisk/fop2 and you will have to modify the file /var/www/html/fop2/admin/pagebs.fop2settings.php and modify the location there to:
$db2 = new dbcon('sqlite:/etc/asterisk/fop2/fop2settings.db');
By the way, you must copy all *.sh scripts.
-
With each upgrade I have to copy the *.sh scripts? Also the sh.~1~, sh.~2~ files?
As well as modify pagebs.fop2settings.php with each new upgrade?I modified pagebs.fop2settings.php, and now the changes on manager don't get applied on manager itself. When I hit submit changes it reverts back to what it was before.
How do I make sure my fop2settings file is owned by Asterisk and Asterisk can write to it?
Would this be?:
chown asterisk.asterisk /etc/asterisk/fop2/fop2settings.db
chmod g+w /etc/asterisk/fop2/fop2settings.db -
Only .sh scripts. The other ones are backups from previous versions. If you upgrade fop2manager, you will have to modify the full path of the fop2settings.db for now. I will see if I can update it so it checks the -c option to use the proper directory.
As for permissions, you might need to change group for the /etc/asterisk/fop2 directory to the "asterisk" users also (apart for permissions on the fop2settings.db file).
chgrp asterisk /etc/asterisk/fop2
chmod g+rwx /etc/asterisk/fop2 -
-
-
Permissions for /etc/asterisk/fop2:
drwxrwxr-x 3 asterisk asteriskWhenever I set permission for /etc/asterisk/fop2/fop2settings.db to include executable rights for asterisk user and group, they revert back to -rw-rw-rw-, once I make a change in fop2 manager settings and hit submit changes.
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login