Installing 3CX on Linux

Discussion in '3CX Documentation' started by Bianca, Jan 26, 2017.

  1. Bianca

    3CX Support

    Joined:
    Dec 9, 2015
    Messages:
    49
    Likes Received:
    10
  2. Sopock

    Sopock Member

    Joined:
    Jul 11, 2012
    Messages:
    448
    Likes Received:
    20
    Click on Network, Adapter 1, Confirm that the network adapter checkbox is enabled and set the “Attached to:” dropdown to “Bridged Adapter”. Confirm that the network card name is set to the correct network interface.
    Similar post is also needed for Workstation Pro/Player?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. craigreilly

    craigreilly Well-Known Member

    Joined:
    Feb 1, 2012
    Messages:
    2,969
    Likes Received:
    182
    I see that a Raspberry Pi will not work. But, the Asus Tinker Board is a different beast. Wonder if it would work for a small office... say <10 ppl.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. boomschtick

    Joined:
    Sep 11, 2012
    Messages:
    38
    Likes Received:
    5
    You might want to mention in the blog post that this specifically only works in 64 bit. I was very perplexed when it wouldn't work in x86.
     
  5. FourFusion

    Joined:
    Jul 3, 2017
    Messages:
    2
    Likes Received:
    0
    I am having the following problem with my virtual server on the virtuozzo platform.
    I have Debian 8 64 bit installed.
    The installer crashes on selecting a network interface.
    Code:
    :~# /usr/sbin/3CXWizard --cleanup
    active
    could not change directory to "/root": Toegang geweigerd
    CREATE ROLE
    ALTER ROLE
    ALTER ROLE
    Created symlink from /etc/systemd/system/3CXEventNotificationManager.service to /lib/systemd/system/3CXEventNotificationManager.service.
    Created symlink from /etc/systemd/system/multi-user.target.wants/3CXEventNotificationManager.service to /lib/systemd/system/3CXEventNotificationManager.service.
    Created symlink from /etc/systemd/system/3CXCfgServ01.service to /lib/systemd/system/3CXCfgServ01.service.
    Created symlink from /etc/systemd/system/multi-user.target.wants/3CXCfgServ01.service to /lib/systemd/system/3CXCfgServ01.service.
    Created symlink from /etc/systemd/system/3CXMediaServer.service to /lib/systemd/system/3CXMediaServer.service.
    Created symlink from /etc/systemd/system/multi-user.target.wants/3CXMediaServer.service to /lib/systemd/system/3CXMediaServer.service.
    Created symlink from /etc/systemd/system/3CXPhoneSystemMC01.service to /lib/systemd/system/3CXPhoneSystemMC01.service.
    Created symlink from /etc/systemd/system/multi-user.target.wants/3CXPhoneSystemMC01.service to /lib/systemd/system/3CXPhoneSystemMC01.service.
    Created symlink from /etc/systemd/system/3CXPhoneSystem01.service to /lib/systemd/system/3CXPhoneSystem01.service.
    Created symlink from /etc/systemd/system/multi-user.target.wants/3CXPhoneSystem01.service to /lib/systemd/system/3CXPhoneSystem01.service.
    Created symlink from /etc/systemd/system/3CXIVR01.service to /lib/systemd/system/3CXIVR01.service.
    Created symlink from /etc/systemd/system/multi-user.target.wants/3CXIVR01.service to /lib/systemd/system/3CXIVR01.service.
    Created symlink from /etc/systemd/system/3CXQueueManager01.service to /lib/systemd/system/3CXQueueManager01.service.
    Created symlink from /etc/systemd/system/multi-user.target.wants/3CXQueueManager01.service to /lib/systemd/system/3CXQueueManager01.service.
    Created symlink from /etc/systemd/system/3CXSystemService01.service to /lib/systemd/system/3CXSystemService01.service.
    Created symlink from /etc/systemd/system/multi-user.target.wants/3CXSystemService01.service to /lib/systemd/system/3CXSystemService01.service.
    Created symlink from /etc/systemd/system/3CXTunnel01.service to /lib/systemd/system/3CXTunnel01.service.
    Created symlink from /etc/systemd/system/multi-user.target.wants/3CXTunnel01.service to /lib/systemd/system/3CXTunnel01.service.
    Created symlink from /etc/systemd/system/3CXAudioProvider01.service to /lib/systemd/system/3CXAudioProvider01.service.
    Created symlink from /etc/systemd/system/multi-user.target.wants/3CXAudioProvider01.service to /lib/systemd/system/3CXAudioProvider01.service.
    Created symlink from /etc/systemd/system/3CXHotelModule01.service to /lib/systemd/system/3CXHotelModule01.service.
    Created symlink from /etc/systemd/system/multi-user.target.wants/3CXHotelModule01.service to /lib/systemd/system/3CXHotelModule01.service.
    
    
            _____ _______  __
           |__  // ____/ |/ /
            /_ </ /    |   /
          ___/ / /___ /   |
         /____/\____//_/|_|
    
    Welcome to the 3CX Configuration Tool
    Help https://www.3cx.com
    
    Press ESC to go back.
    
    
    Select how to run the tool:
    (1) Using a Web Browser
    (2) From Command Line
    Enter option: 2
    
    
    DNS names resolved
    
    
    Do you want to create a new install of 3CX Phone System or you have a 3CX Backup you wish to restore?
    (1) Create new install of 3CX Phone System
    (2) Restore an existing backup configuration
    Enter option: 1
    
    
    You can evaluate with another key, but be sure to leave your subdomain of choice free so it will be linked to the key that you will be using.
    Get your free PBX Edition license key from here https://www.3cx.com/voip-ip-pbx/
    Partners and Customers that already have commercial/NFR license key MUST use that key here
    License Key: *-*-*-*
    
    
    Configure a username to access the 3CX Web Management Console. You can change this after.
    Username: admin
    
    
    Configure a password to access the 3CX Web Management Console. You can change this after.
    Password: ***********
    
    
    We detected your Public IP Address as 85.*.*.*.
    (1) Yes my public IP Address is 85.*.*.*.
    (2) No, I want to enter it manually
    Enter option: 1
    
    
    
    
    Is this a STATIC IP (reliable because ISP does not change your IP) or a DYNAMIC IP (unreliable residential connection where ISP may change your IP without warning). If you are not sure ask your Internet Service Provider.
    (1) Static IP
    (2) Dynamic IP
    Enter option: 1
    
    
    Select your default local network interface from the list of network adapters below:
    Removed symlink /etc/systemd/system/3CXQueueManager01.service.
    Removed symlink /etc/systemd/system/3CXIVR01.service.
    Removed symlink /etc/systemd/system/3CXTunnel01.service.
    Removed symlink /etc/systemd/system/3CXHotelModule01.service.
    Removed symlink /etc/systemd/system/3CXPhoneSystem01.service.
    Removed symlink /etc/systemd/system/3CXPhoneSystemMC01.service.
    Removed symlink /etc/systemd/system/3CXCfgServ01.service.
    Removed symlink /etc/systemd/system/3CXSystemService01.service.
    Removed symlink /etc/systemd/system/multi-user.target.wants/3CXQueueManager01.service.
    Removed symlink /etc/systemd/system/multi-user.target.wants/3CXIVR01.service.
    Removed symlink /etc/systemd/system/multi-user.target.wants/3CXTunnel01.service.
    Removed symlink /etc/systemd/system/multi-user.target.wants/3CXHotelModule01.service.
    Removed symlink /etc/systemd/system/multi-user.target.wants/3CXPhoneSystem01.service.
    Removed symlink /etc/systemd/system/multi-user.target.wants/3CXPhoneSystemMC01.service.
    Removed symlink /etc/systemd/system/multi-user.target.wants/3CXCfgServ01.service.
    Removed symlink /etc/systemd/system/multi-user.target.wants/3CXSystemService01.service.
    Removed symlink /etc/systemd/system/multi-user.target.wants/3CXAudioProvider01.service.
    Removed symlink /etc/systemd/system/multi-user.target.wants/3CXMediaServer.service.
    Removed symlink /etc/systemd/system/multi-user.target.wants/3CXEventNotificationManager.service.
    Removed symlink /etc/systemd/system/3CXAudioProvider01.service.
    Removed symlink /etc/systemd/system/3CXMediaServer.service.
    Removed symlink /etc/systemd/system/3CXEventNotificationManager.service.
    active
    :~#

    When i execute ifconfig it shows the following:
    Code:
    :~# ifconfig
    lo        Link encap:Local Loopback
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:65536  Metric:1
              RX packets:1146 errors:0 dropped:0 overruns:0 frame:0
              TX packets:1146 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:406601 (397.0 KiB)  TX bytes:406601 (397.0 KiB)
    
    venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
              inet addr:127.0.0.1  P-t-P:127.0.0.1  Bcast:0.0.0.0  Mask:255.255.255.255
              inet6 addr: ::2/128 Scope:Compat
              UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
              RX packets:5839 errors:0 dropped:0 overruns:0 frame:0
              TX packets:5425 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:524056 (511.7 KiB)  TX bytes:610732 (596.4 KiB)
    
    venet0:0  Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
              inet addr:85.*.*.*  P-t-P:85.*.*.*  Bcast:85.*.*.*  Mask:255.255.255.255
              UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
    
    It has an extra network interface. (I masked the IP addresses)
     
    #5 FourFusion, Jul 3, 2017
    Last edited: Jul 3, 2017
  6. YiannisH_3CX

    YiannisH_3CX Support Team
    Staff Member 3CX Support

    Joined:
    May 10, 2016
    Messages:
    4,443
    Likes Received:
    282
    From the posted configuration i can see that you have a virtual interface on the same physical NIC which is not supported and will cause issues and errors like the one you are getting. You can have 2 physical NIC's but not a virtual interface on the same NIC. Please remove the virtual interface and try again
     
  7. FourFusion

    Joined:
    Jul 3, 2017
    Messages:
    2
    Likes Received:
    0
    Ah, is it a lot of work for you to make it support virtual interfaces? I cannot remove the virtual interface, that is just how it creates the VM..
     
  8. Charles Weinberg

    Joined:
    Sep 28, 2017
    Messages:
    1
    Likes Received:
    0
    I followed the directions but I get some errors,
    running apt-get
    and cant install.

    Code:
    root@localhost:~# apt-get update
    Ign http://http.us.debian.org stable InRelease
    Err http://non-us.debian.org stable/non-US InRelease
    
    Err http://non-us.debian.org stable/non-US Release.gpg
      Could not resolve 'non-us.debian.org'
    Get:1 http://http.us.debian.org stable Release.gpg [2,373 B]
    Get:2 http://http.us.debian.org stable Release [118 kB]
    Get:3 http://downloads.3cx.com  InRelease [2,241 B]
    Get:4 http://http.us.debian.org stable/main amd64 Packages [7,095 kB]
    Get:5 http://downloads.3cx.com  Packages [1,797 B]
    Ign http://downloads.3cx.com  Translation-en_US
    Ign http://downloads.3cx.com  Translation-en
    Ign http://security.debian.org squeeze/updates InRelease
    Ign http://security.debian.org squeeze/updates Release.gpg
    Ign http://security.debian.org squeeze/updates Release
    Ign http://security.debian.org squeeze/updates/main Sources/DiffIndex
    Ign http://security.debian.org squeeze/updates/main amd64 Packages/DiffIndex
    Ign http://security.debian.org squeeze/updates/main Translation-en_US
    Ign http://security.debian.org squeeze/updates/main Translation-en
    Err http://security.debian.org squeeze/updates/main Sources
      404  Not Found [IP: 128.31.0.63 80]
    Err http://security.debian.org squeeze/updates/main amd64 Packages
      404  Not Found [IP: 128.31.0.63 80]
    Get:6 http://http.us.debian.org stable/contrib amd64 Packages [50.9 kB]
    Get:7 http://http.us.debian.org stable/non-free amd64 Packages [77.9 kB]
    Get:8 http://http.us.debian.org stable/contrib Translation-en [45.9 kB]
    Get:9 http://http.us.debian.org stable/main Translation-en [5,393 kB]
    Get:10 http://http.us.debian.org stable/non-free Translation-en [79.2 kB]
    Fetched 12.9 MB in 15s (828 kB/s)
    Reading package lists... Done
    W: There is no public key available for the following key IDs:
    EF0F382A1A7B6500
    W: Failed to fetch http://non-us.debian.org/debian-non-US/dists/stable/non-US/InRelease
    
    W: Failed to fetch http://non-us.debian.org/debian-non-US/dists/stable/non-US/Release.gpg  Could not resolve 'non-us.debian.org'
    
    W: Failed to fetch http://security.debian.org/dists/squeeze/updates/main/source/Sources  404  Not Found [IP: 128.31.0.63 80]
    
    W: Failed to fetch http://security.debian.org/dists/squeeze/updates/main/binary-amd64/Packages  404  Not Found [IP: 128.31.0.63 80]
    
    W: Some index files failed to download. They have been ignored, or old ones used instead.
    root@localhost:~# apt-get install 3cxpbx
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:
    
    The following packages have unmet dependencies:
     3cxpbx : Depends: libcurl3 (< 7.52.1) but 7.52.1-5 is to be installed
    E: Unable to correct problems, you have held broken packages.
     
  9. Greg1122

    Joined:
    Jun 26, 2017
    Messages:
    6
    Likes Received:
    1
    I get the following error when following the instructions step by step


    Code:
    root@3cxtest ~ # wget -O- http://downloads.3cx.com/downloads/3cxpbx/public.key | apt-key add -
    --2017-11-06 16:19:12-- http://downloads.3cx.com/downloads/3cxpbx/public.key
    Resolving downloads.3cx.com (downloads.3cx.com)... 158.69.11.10, 151.80.125.73
    Connecting to downloads.3cx.com (downloads.3cx.com)|158.69.11.10|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 1179 (1.2K) [application/pkcs8]
    Saving to: ‘STDOUT’
    
    - 100%[===================>] 1.15K --.-KB/s in 0s
    
    2017-11-06 16:19:12 (186 MB/s) - written to stdout [1179/1179]
    
    OK
    root@3cxtest ~ # echo "deb http://downloads.3cx.com/downloads/debian stretch main" | tee /etc/apt/sources.list.d/3cxpbx.list
    deb http://downloads.3cx.com/downloads/debian stretch main
    root@3cxtest ~ # apt-get update
    Ign:1 http://mirror.hetzner.de/debian/packages stretch InRelease
    Ign:2 http://deb.debian.org/debian stretch InRelease
    Get:3 http://mirror.hetzner.de/debian/packages stretch-updates InRelease [91.0 kB]
    Get:4 http://deb.debian.org/debian stretch-updates InRelease [91.0 kB]
    Get:5 http://security.debian.org stretch/updates InRelease [63.0 kB]
    Get:6 http://mirror.hetzner.de/debian/packages stretch-backports InRelease [91.8 kB]
    Get:7 http://downloads.3cx.com/downloads/debian stretch InRelease [6,284 B]
    Get:8 http://mirror.hetzner.de/debian/security stretch/updates InRelease [63.0 kB]
    Hit:9 http://deb.debian.org/debian stretch Release
    Hit:10 http://mirror.hetzner.de/debian/packages stretch Release
    Get:11 http://mirror.hetzner.de/debian/packages stretch-updates/main amd64 Packages [5,976 B]
    Get:12 http://mirror.hetzner.de/debian/packages stretch-updates/main Translation-en [3,583 B]
    Get:13 http://deb.debian.org/debian stretch-updates/main Sources [3,564 B]
    Get:14 http://deb.debian.org/debian stretch-updates/main amd64 Packages [5,976 B]
    Get:15 http://deb.debian.org/debian stretch-updates/main Translation-en [3,583 B]
    Ign:16 http://mirror.hetzner.de/debian/packages stretch-backports/main amd64 Packages
    Ign:17 http://mirror.hetzner.de/debian/packages stretch-backports/main Translation-en
    Ign:18 http://mirror.hetzner.de/debian/packages stretch-backports/contrib amd64 Packages
    Ign:19 http://mirror.hetzner.de/debian/packages stretch-backports/non-free amd64 Packages
    Ign:20 http://mirror.hetzner.de/debian/packages stretch-backports/non-free Translation-en
    Get:16 http://mirror.hetzner.de/debian/packages stretch-backports/main amd64 Packages [173 kB]
    Get:17 http://mirror.hetzner.de/debian/packages stretch-backports/main Translation-en [114 kB]
    Get:18 http://mirror.hetzner.de/debian/packages stretch-backports/contrib amd64 Packages [4,360 B]
    Get:19 http://mirror.hetzner.de/debian/packages stretch-backports/non-free amd64 Packages [12.1 kB]
    Get:20 http://mirror.hetzner.de/debian/packages stretch-backports/non-free Translation-en [18.9 kB]
    Get:21 http://mirror.hetzner.de/debian/security stretch/updates/main amd64 Packages [213 kB]
    Get:22 http://mirror.hetzner.de/debian/security stretch/updates/main Translation-en [89.6 kB]
    Get:24 http://deb.debian.org/debian stretch/non-free Sources [79.7 kB]
    Get:25 http://deb.debian.org/debian stretch/main Sources [6,754 kB]
    Get:26 http://mirror.hetzner.de/debian/security stretch/updates/contrib amd64 Packages [1,352 B]
    Get:28 http://deb.debian.org/debian stretch/contrib Sources [44.7 kB]
    Get:29 http://downloads.3cx.com/downloads/debian stretch/main amd64 Packages [2,412 B]
    Get:30 http://security.debian.org stretch/updates/contrib Sources [924 B]
    Get:31 http://security.debian.org stretch/updates/non-free Sources [776 B]
    Get:32 http://security.debian.org stretch/updates/main Sources [80.6 kB]
    Get:33 http://security.debian.org stretch/updates/main amd64 Packages [213 kB]
    Get:34 http://security.debian.org stretch/updates/main Translation-en [89.6 kB]
    Get:35 http://security.debian.org stretch/updates/contrib amd64 Packages [1,352 B]
    Fetched 8,320 kB in 2s (3,922 kB/s)
    Reading package lists... Done
    root@3cxtest ~ # apt-get install 3cxpbx
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:
    
    The following packages have unmet dependencies:
    3cxpbx : Depends: libcurl3 (< 7.52.1) but 7.52.1-5+deb9u2 is to be installed
    E: Unable to correct problems, you have held broken packages.
    root@3cxtest ~ #
     
  10. Greg1122

    Joined:
    Jun 26, 2017
    Messages:
    6
    Likes Received:
    1
    Got this to install by manually installing libcurl3 (From 3CX Repo)

    Code:
    apt-get install libcurl3=7.38.0-4+deb8u5
    Although this looks like is could be from Debian 8 I could not see an updated version from 3cx.

    System installed and working OK
     
  11. Alex.R

    Joined:
    Nov 25, 2017
    Messages:
    2
    Likes Received:
    0
    After 3CX has been installed on Debian 4.9.51-1 (2017-09-28) x86_64, 3CXPhoneSystem01.service can't start:
    Code:
    Nov 25 01:21:43  systemd[1]: Starting 3CX PhoneSystem 01 SIP Server...
    -- Subject: Unit 3CXPhoneSystem01.service has begun start-up
    -- Defined-By: systemd
    -- Support: https://www.debian.org/support
    --
    -- Unit 3CXPhoneSystem01.service has begun starting up.
    Nov 25 01:21:43  kernel: 3CXPhoneSystem[3601]: segfault at 0 ip 0000000000511b7b sp 00007ffd176a3930 error 4 in 3CXPhoneSystem[400000+3
    Nov 25 01:21:43  systemd[1]: 3CXPhoneSystem01.service: Main process exited, code=dumped, status=11/SEGV
    Nov 25 01:21:43  systemd[1]: Failed to start 3CX PhoneSystem 01 SIP Server.
    -- Subject: Unit 3CXPhoneSystem01.service has failed
    -- Defined-By: systemd
    -- Support: https://www.debian.org/support
    --
    -- Unit 3CXPhoneSystem01.service has failed.
    --
    -- The result is failed.
    Nov 25 01:21:43  systemd[1]: 3CXPhoneSystem01.service: Unit entered failed state.
    Nov 25 01:21:43  systemd[1]: 3CXPhoneSystem01.service: Failed with result 'core-dump'.
     
    #11 Alex.R, Nov 25, 2017
    Last edited: Nov 25, 2017
  12. jimbo59

    jimbo59 Member

    Joined:
    Nov 17, 2017
    Messages:
    358
    Likes Received:
    77
    Upgrade to 8 or 9 and try again. You are using an unsupported version of Debian.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    Alex.R likes this.
  13. Alex.R

    Joined:
    Nov 25, 2017
    Messages:
    2
    Likes Received:
    0
    Dear jimbo59,

    Thank you for your interesting opinion.
    4.9.51-1 is not a version of Debian, it is a version of kernel.
     
  14. sip.bg

    sip.bg Active Member

    Joined:
    Nov 7, 2016
    Messages:
    704
    Likes Received:
    219
    How to install 3CX from a .deb package ?
    dpkg -i 3cxpbx.deb or similar?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. Atanas

    Joined:
    Aug 22, 2017
    Messages:
    4
    Likes Received:
    0
    Hi My name is David . My question is after updating 3CX V15.5 Update 2, the conference call does not
    does not auto send email to invited participants. Therefore, obtaining the dial in code is a nightmare. the previous version was auto-sending email with no intervention required.
    With this new update, however sets the conference call has to login to the web version to copy paste the message on email and send manually to to the respective recipients.

    what could be the problem?
     
  16. sip.bg

    sip.bg Active Member

    Joined:
    Nov 7, 2016
    Messages:
    704
    Likes Received:
    219
    I would advise downgrading your PBX to SP1 or wait for SP3 update. There are issues with conference calls in SP2.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  17. Atanas

    Joined:
    Aug 22, 2017
    Messages:
    4
    Likes Received:
    0
    Thanks downgraded
     
  18. Tomaz Vieira

    Joined:
    Jan 19, 2018
    Messages:
    1
    Likes Received:
    0
    You guys should be careful with the instructions you post online. This right here:

    wget -O- http://downloads.3cx.com/downloads/3cxpbx/public.key | apt-key add -

    would add an unverified key to yout apt key store. Since the url uses HTTP instead of HTTPS, there is no guarantee that you won't be man-in-the-middle-ed, get a false key, and start downloading and installing rogue software.