Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Register

Elastix 4 installation on CentOS 7 VPS

ValentineValentine Administrator
edited May 2017 in Various Tutorials

Elastix is an unified communications server software that brings together IP PBX, email, IM, faxing and collaboration functionality. It has a Web interface and includes capabilities such as a call center software with predictive dialing.

The Elastix functionality is based on open source projects including Asterisk, FreePBX, HylaFAX, Openfire and Postfix. Those packages offer the PBX, fax, instant messaging and email functions, respectively.

Elastix is free software, released under the GNU General Public License.

The tutorial was prepared with our "CentOS 7" template and is meant to work on our self-managed virtual private servers.

0. Preliminary requirements:
"CentOS 7 64-bit" template installed on server.

1. Downloading install scripts:
wget -O Elastix4onCentos7vz.tar.gz --no-check-certificate

tar zxvf Elastix4onCentos7vz.tar.gz --strip-components=1

2. Installation process
The first script you have to launch is:


After installation process you have to reboot your server. Now you can launch the second installation script:


In this step you will be asked to setup MySQL password and your Elastic admin user password. And after this setup you have to reboot your server once again.

And that's it. Now you can login to your Elastic web interface with password you have entered and manage your Elastix instance:



  • Hi Valentine,

    It is a very easy and useful tutorial. Although in my case I have CentOS 6.8 on a VPS, what changes should I do for installing Elastix? I already tried with this procedure and after some mistakes downloading the iPerfex repomd.xml the installation was not complete. I checked the url and is not available for CentOS 6, only 5 and 7. I will appreciate any help with this.

    Is Elastix 4 ok for CentOS 6.8 or do you think is better to go for a former version (i.e. Elastix 3).

    Thanks in advance
  • ValentineValentine Administrator

    unfortunately you won't be able to install Elastix 4 on CentOS 6. We recommend to go with Elastix 4 + CentOS 7 because you will be managing newest versions.
  • I got it, I will check if I can upgrade the VPS CentOS version. In case I cannot install Elastix 4, do you have any set of tips of procedures for Elastix 3 with CentOS 6?

  • ValentineValentine Administrator
    Elastix 3 is now called Elastix MT. Unfortunately at the moment we do not have any tips on that installation. However if there is a need in future we will try to make tutorial as well.
  • OK thanks again for the information. One last question, do Elastix has any functional problem if running on the same server with glassfish, mysql, jasperserver and Java own developed applications?

  • ValentineValentine Administrator
    edited September 2016
    We haven't tested Elastix in this kind of server setup, but it should be possible. However for stability we would recommend different instance.
  • Good Morning Valentine . After doing the procedure, elastix is not reached . How can I fix the problem? Thank you
  • ValentineValentine Administrator
    Could you provide us with more information? Have you installed Elastix on freshly installed CentOS 7?
  • thanks for the reply . The installation I made on
    and I made a new installation of centos 7
  • ValentineValentine Administrator
    isottina said:

    thanks for the reply . The installation I made on
    and I made a new installation of centos 7

    As mentioned in tutorial it is meant to work on our self-managed virtual private servers. If you are facing issues running it on VPSZ servers you have to contact them. It could be an issue of firewall rules.
  • I finished installation on AWS, but can't visit web-GUI via public IP, also open http and https on security group, anything wrong?
  • ValentineValentine Administrator
    OLO said:
    I finished installation on AWS, but can't visit web-GUI via public IP, also open http and https on security group, anything wrong?

    This tutorial was tested and is meant to work on our self-managed virtual private servers. If you are following this instructions and installing Elastix 4 elsewhere you could face issues that we are not aware of.
  • idyahiaidyahia Member
    edited December 2016
    Hi Valentine, thank you for this amazing script, i tested it a week ago and it was perfect, i liked it and now i wanted to use it for good, i ordred a vps from Time4vps with an amazing price, but when i try to run the script it says :

    Cannot find a valid baseurl for repo: commercial-addons/x86_64
    Failed to set locale, defaulting to C
    Loaded plugins: fastestmirror, langpacks
    LowayResearch                                                                                                                                                                        |  951 B  00:00:00    
    base                                                                                                                                                                                 | 3.6 kB  00:00:00    
    Could not retrieve mirrorlist error was
    14: curl#6 - "Could not resolve host:; Name or service not known"

     One of the configured repositories failed (Unknown),
     and yum doesn't have enough cached data to continue. At this point the only
     safe thing yum can do is fail. There are a few ways to work "fix" this:

    Seems like some mirros are broken, please help !

    PS: it's a fresh Centos 7 installation

    Thank you in advance

  • ValentineValentine Administrator
    idyahia said:
    Seems like some mirros are broken, please help !
    Glad to hear that you find it helpful, however due to legal issues Elastix temporary discontinued distribution on Elastix 4 & MX. You can find more information about this in:
  • Hello,

    yes i tested also elastix 5 combined with 3CX, what a shame, it only give you 1 sip trunk and if you want more you need to buy an edition 275 EURO, please valentine, could you create a script that install ASTERISK NOW on remote server ?

    Thank you
  • Hi,

    AsteriskNow is custom distribution based on CentOS. Unfortunately it is not possible to install custom ISO on our servers.
Sign In or Register to comment.

Learn how to install a web and database server, email, FTP client or other applications. Discover and share information on server security or optimization recommendations.
Feel free to join our constantly expanding community, participate in discussions, strengthen your knowledge on Linux and Windows server management!
© 2013 - 2021 Time4VPS. All rights reserved.

Get In Touch