SETTING FILE PERMISSIONS…Done
Removing any dangling symlinks
Dangling symlinks removed
/var/lib/asterisk/bin/freepbx_engine: line 734: syntax error near unexpected token (' /var/lib/asterisk/bin/freepbx_engine: line 734: Usermanager Specific Operations (requires root) (Type ‘amportal a userman’ to see more)’
Untaring..Done
Module callrecording successfully downloaded PHP Fatal error: Cannot redeclare callrecording_destinations() (previously declared in /tmp/freepbx/amp_conf/htdocs/admin/modules/callrecording/functions.inc.php:16) in /var/www/html/admin/modules/callrecording/functions.inc.php on line 29
This is a development setting. You are confusing the system by running this when not in development mode, Which is why you are having the Fatal error, because you have half symlinked files and half copied files.
--skip-module-install
Not sure why set this flag then later run through installing them manually each one-by-one. Just dont set this flag and get rid of your “ma installs”
@tm1000 thanks a lot for the feedback, i will make those changes you suggested, after a bit more playing last night i got the docker file to build successfully haven’t had time to test it yet though.
I am getting there slowly, i want to tidy up the docker file by specifying some mount points.
If i want the freepbx setup/config to survive between containers i need to map some folders to be external of the container. My question is what folders are important to freepbx as regards to setup/config, so i can mnt external folders to those points and have the freepbx config external to the container.
I have tried to run the container and i have hit a problem asterisk is running no probs but i have no web interface running amportal reload produces an error complaining /etc/asterisk doesnt exist when it does see below:
Please wait…
/usr/local/sbin/amportal: line 49: [FATAL]: command not found
/var/lib/asterisk/bin/freepbx_engine: line 100: [FATAL]: command not found
**** WARNING: ERROR IN CONFIGURATION ****
astrundir in ‘/etc/asterisk’ is set to but the directory
does not exists. Attempting to create it with: 'mkdir -p ’
mkdir: missing operand
Try ‘mkdir --help’ for more information.
**** ERROR: COULD NOT CREATE ****
Attempt to execute 'mkdir -p ’ failed with an exit code of 1
You must create this directory and the try again.
root@lucy-Laptop:/etc/asterisk#
anyone have an idea why it would think it doesn’t exist when it does?
rather than opening up 10000 ports i was hoping to edit rtp conf to reduce the amount of ports to a hundred as it will be for home use / testing maybe even further down the road get the docker file to edit rtp.conf whilst building the image.
so i have freepbx running in a docker container and it seems happy now, i had a couple of errors on first login to freepbx but they were easy to resolve i didn’t make a note of the actual errors i will next time i run the container but in summary they were:
Issue 1, - complaining of access…
FIX:
vi /etc/apache2/sites-enabled/000-default" and hit Return / Enter.
At Directory /var/www/ you’ll see a line like the following:
“AllowOverride None” - change this to “AllowOverride ALL”.
then press esc
type
:wq
press enter
ISSUE 2, - issue with framework modified…
FIX:
amportal a ma update framework
Issue 3, unsigned module
FIX:
amportal chown
amportal a ma refreshsignatures
amportal a reload
Are these common warnings to get? Any suggestions on how i can prevent them?
If you would like to try just install docker if dont already have it and run from the host cmd line: