ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Building Elastix 4 via RPM Repo

    IT Discussion
    asterisk centos centos 7 elastix elastix 4 linux pbx voip
    15
    184
    124.6k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller
      last edited by

      Doing a second build using these instructions. I put it all together in one script and it ran right through, rebooted and the setup screen came up for Elastix on the console. So far so good.

      1 Reply Last reply Reply Quote 0
      • scottalanmillerS
        scottalanmiller
        last edited by

        Updated the script to be a bit more robust, seems to work now. The one step you have to manually edit one of the files that has errors in it. Details in another script. Basically the entire section dealing with "acl_user" has to be commented out.

        nickN 1 Reply Last reply Reply Quote 1
        • ailton.cardozoA
          ailton.cardozo
          last edited by

          @scottalanmiller said:

          At this point you have to log in via a console (which rules out doing this on platforms like AWD and Azure that lack the console option without a lot more work.) This has been tested in the past on Rackspace and in this particular case on Digital Ocean. On the console you will need to fill out the necessary settings to allow the system to configure passwords and the like.

          reply

          Hello Scott. I've tried on Azure/CentOS7.1 but when step "yum -y install elastic-framework" is done, the root privilege are removed because the instruction inside elastix-framework-4.0.0-1.noarch.rpm to change /etc/sudoers file. That situation on Azure is killing because the root users are disable by default. Do you have any workaround idea? I've tied to rebuild the rpm but it didn't work. I really appreciate any help you can provide.

          1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller
            last edited by

            The issue there is Azure and some other providers modifying CentOS and not using either CentOS itself (in the case of the first provider changing out the kernel itself!) and Azure modifying default behaviour. Likely you could work around this on Azure by enabling root.

            I would recommend testing out Digital Ocean or Rackspace. I would avoid Azure for PBX usage. PBXs are very sensitive to latency and performance and Azure is not on par with Amazon, Rackspace, DO, etc.

            1 Reply Last reply Reply Quote 1
            • scottalanmillerS
              scottalanmiller
              last edited by

              On Azure have you tried running with "sudo" if you are not the root user? Or have you tried sudo -i su to get to root?

              ailton.cardozoA 1 Reply Last reply Reply Quote 0
              • ailton.cardozoA
                ailton.cardozo @scottalanmiller
                last edited by

                @scottalanmiller I did with sudo.

                1 Reply Last reply Reply Quote 0
                • scottalanmillerS
                  scottalanmiller
                  last edited by

                  @ailton-cardozo welcome to the community, by the way!

                  ailton.cardozoA 1 Reply Last reply Reply Quote 0
                  • scottalanmillerS
                    scottalanmiller
                    last edited by

                    I have not used CentOS 7 on Azure, does sudo -i su not allow you to become root, even with it disabled?

                    ailton.cardozoA 1 Reply Last reply Reply Quote 0
                    • ailton.cardozoA
                      ailton.cardozo @scottalanmiller
                      last edited by

                      @scottalanmiller Thanks for listening.

                      scottalanmillerS 1 Reply Last reply Reply Quote 0
                      • scottalanmillerS
                        scottalanmiller @ailton.cardozo
                        last edited by

                        @ailton.cardozo said:

                        @scottalanmiller Thanks for listening.

                        No problem!

                        1 Reply Last reply Reply Quote 0
                        • ailton.cardozoA
                          ailton.cardozo @scottalanmiller
                          last edited by

                          @scottalanmiller Unfortunately not. But I will try on Amazon.

                          1 Reply Last reply Reply Quote 0
                          • scottalanmillerS
                            scottalanmiller
                            last edited by

                            Wow, that's so weird. How does Azure modify CentOS to that degree, and why?

                            I suspect no issues on Amazon, they use Xen the same as Rackspace. Digital Ocean uses KVM.

                            ailton.cardozoA 1 Reply Last reply Reply Quote 1
                            • ailton.cardozoA
                              ailton.cardozo @scottalanmiller
                              last edited by

                              @scottalanmiller Before starting the script I saw that it's possible to renable root user based in our discussion. Now i think It will work.

                              1 Reply Last reply Reply Quote 0
                              • scottalanmillerS
                                scottalanmiller
                                last edited by

                                Oh good, that makes more sense that it is only off by default, not removed completely!

                                1 Reply Last reply Reply Quote 0
                                • nickN
                                  nick
                                  last edited by

                                  Got this installed except for the same error I see here (http://mangolassi.it/topic/6319/elastix-4-install-errors-with-sqlite-unable-to-update-admin-password/6) Any resolution to this?

                                  The database asterisk is there with a table called "ampusers" where it looks like passwords are stored in a field called "password_sha1".

                                  I had no luck with UPDATE (ing) that table and setting password_sha1=SHA1("newpassword") WHERE user="admin"

                                  Feels so close.

                                  1 Reply Last reply Reply Quote 1
                                  • nickN
                                    nick @scottalanmiller
                                    last edited by

                                    @scottalanmiller tried removing this section, but then no password is set for the admin account. I seem installed, but cannot log in.0_1455624120651_capture.PNG . Am trying on digitalocean as well with centOS 7.

                                    Also, the line "systemctl enable httpd.server" produces file not found error.

                                    scottalanmillerS rialejoR 2 Replies Last reply Reply Quote 1
                                    • scottalanmillerS
                                      scottalanmiller @nick
                                      last edited by

                                      @nick what does rpm -qa | grep httpd return?

                                      1 Reply Last reply Reply Quote 0
                                      • rialejoR
                                        rialejo @nick
                                        last edited by

                                        @nick Hello, i´m too in the same part of problem... please if you have any update, let me know. regards!

                                        1 Reply Last reply Reply Quote 0
                                        • rialejoR
                                          rialejo
                                          last edited by

                                          I get that request:

                                          [root@78 ~]# rpm -qa | grep httpd
                                          httpd-2.4.6-40.el7.centos.x86_64
                                          httpd-tools-2.4.6-40.el7.centos.x86_64

                                          scottalanmillerS nickN 2 Replies Last reply Reply Quote 0
                                          • scottalanmillerS
                                            scottalanmiller @rialejo
                                            last edited by

                                            @rialejo said:

                                            I get that request:

                                            [root@78 ~]# rpm -qa | grep httpd
                                            httpd-2.4.6-40.el7.centos.x86_64
                                            httpd-tools-2.4.6-40.el7.centos.x86_64

                                            So systemctl enable httpd.server doesn't work but systemctl start httpd.server does?

                                            rialejoR 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 9
                                            • 10
                                            • 1 / 10
                                            • First post
                                              Last post