dedicated server with centos 5

Discussion in 'General' started by areid, Oct 9, 2008.

  1. areid

    Joined:
    Apr 11, 2008
    Messages:
    117
    Likes Received:
    0
    we have a remote dedicated server with root acces. it has centos 5 installed. what file do we use to install elastix? how do we install it? I see most of the files are iso images which require burn on a cd and reformats the hard drive.
     
  2. rafael

    Joined:
    May 14, 2007
    Messages:
    1,454
    Likes Received:
    1
    If you do not have physical access to the server you could try CentOS2Elastix 1.2 and the yum update to Elastix 1.3

    Saludos,

    Rafael
     
  3. areid

    Joined:
    Apr 11, 2008
    Messages:
    117
    Likes Received:
    0
    we tried the latest centos2elastix with centos 5.2 and getting errors. kernels. please help. read that the latest centos2elastix can handle centos 5.2. we really need help and I know others with have the same problem.
     
  4. Ichorcom007

    Joined:
    Apr 16, 2008
    Messages:
    52
    Likes Received:
    0
    On thing I have learned with elastix. Is you always stay with in the release parameters they set fourth. If you go out of those parameter's your box will not work reliably so it is also bets to jsut use the install iso.
     
  5. rafael

    Joined:
    May 14, 2007
    Messages:
    1,454
    Likes Received:
    1
    Can you post the error please. Is this Centos 5.2 out of the box or and updated one?

    Saludos,

    Rafael
     
  6. areid

    Joined:
    Apr 11, 2008
    Messages:
    117
    Likes Received:
    0
    I created another thread the other day, http://www.elastix.org/index.php?option ... 1640#11640

    Also someone else just posted on another thread with the same problem and posting his/her error message
    http://www.elastix.org/index.php?option ... 1684#11684, user: yashar87

    here is the error message getting
    -----------
    I am tring to install elastix on centos 5.2 using "CentoOS2Elastix". Please help. This is a remote server.

    This is the error I am getting
    --------------
    And here is the error while trying to install Centos2Elastix :

    Installing kernel-2.6.18-53.1.19.el5
    Preparing... ########################################### [100%]
    package kernel-2.6.25.17xxxxxxxxxxx (which is newer than kernel-2.6.18-53.1.19.el5) is already installed
    package kernel-2.6.26.5xxxxxxxxxxx (which is newer than kernel-2.6.18-53.1.19.el5) is already installed Error installing kernel: 2.6.18-53.1.19.el5
    Please note, although no boardcode and smiley buttons are shown, they are still useable
     
  7. areid

    Joined:
    Apr 11, 2008
    Messages:
    117
    Likes Received:
    0
    Rafael,
    sorry missed this question. centos 5.2 is out of the box. brand new server.
     
  8. rafael

    Joined:
    May 14, 2007
    Messages:
    1,454
    Likes Received:
    1
    I did it, try this:

    First mount the cd an cd to the cd

    ej:
    -------------------
    mount /dev/cdrom /media/cdrom
    cd /media/cdrom
    cd CentOS
    -------------------

    Then install the kernel 2.6.18-53 that is the one we need to zaptel to work and Elastix:
    ---------------------
    rpm -ivh --oldpackage kernel-2.6.18-53.1.19.el5.i686.rpm
    --------------------

    As you see we are using the --oldpackage because we are installing an older version of the kernel. After reboot we would have two kernels and the Elastix server needs to know what kernel to use. So you have to edit the grub configuration file (vim /boot/grub/menu.lst ) and this lines at the end of the file:
    ----------
    title CentOS (2.6.18-53.el5)
    root (hd0,0)
    kernel /vmlinuz-2.6.18-53.1.19.el5 ro root=LABEL=/ rhgb quiet
    initrd /initrd-2.6.18-53.1.19.el5.img
    ----------
    On grub configuration file you would find a line with the default value, you would have to change this value depending on your system configuration so you don't have to choose the kernel every time you start the machine. For example my system at that time had two kernel versions and the second one was 2.6.18-53.1.19 so I set default to 1.

    -------
    default=1
    -----

    After this reboot your system and run:
    -------
    uname -r
    -------

    The output should be:
    --------
    2.6.18-53.1.19.el5
    --------

    If you are okay up to this part then you should run the install script without any problem as it is suppose to be run:
    -------------
    mount /dev/cdrom /media/cdrom
    cd /media/cdrom
    ./install
    ------------

    The machine would reboot and it is very probable that menu.lst (in CentOS also known as /etc/grub.conf) would be change and you are not using the correct kernel. That would cause that you use a newer version of the kernel and zaptel won't start. After fixing this it should work fine.

    Tell me how it goes and then we could update the wiki how to with this info.

    Best Regards,

    Rafael
     
  9. areid

    Joined:
    Apr 11, 2008
    Messages:
    117
    Likes Received:
    0
    Rafael,
    After the reboot, the server failed did not come back with the new kernel elastix needs. The server is down again, because it couldn't handle the kernel needed.

    We had to re-image our server to centos 5.2.
     
  10. rafael

    Joined:
    May 14, 2007
    Messages:
    1,454
    Likes Received:
    1
    Do you think you could reset the server to a fresh state and then give access throw ssh? My email is on the signature of the posts.

    Regards,

    Rafael
     
  11. areid

    Joined:
    Apr 11, 2008
    Messages:
    117
    Likes Received:
    0
  12. areid

    Joined:
    Apr 11, 2008
    Messages:
    117
    Likes Received:
    0
    Rafael,
    I am talking to our system admin about ssh.

    I have been doing research regarding this problem through search engines with elastix and freepbx with centos 5.2. Very limited info I can find. with asterisk and centos 5.2, more.

    This is what I found.

    #1 set of info
    ---------------
    1/
    Note that you may need to use the following if you are running a Xen enabled
    kernel:
    yum -y install kernel-xen-devel

    here are the details
    http://www.voip-info.org/wiki/view/Cent ... stallation

    2/
    someone tried this and got an error and found a solution
    Last resort is to google it deeply and found out the solution. During the
    zaptel compilation instead of following these steps:

    1. cd /usr/src/asterisk/zaptel
    2. make clean
    3. ./configure
    4. make
    5. make install
    6. make config

    Do this one :

    1. cd /usr/src/asterisk/zaptel
    2. edit the file /usr/src/asterisk/zaptel/kernel/xpp/xpds.h by using vi
    3. look for the line code - "typedef int bool;" - comment this one
    by adding "//" in front of the line code
    4. make clean
    5. ./configure
    6. make
    7. make install
    8. make config

    For more info please read
    .http://forums.digium.com/viewtopic.php? ... ght=#73900

    Hope this will help some Asterisk newbies like me.


    #2 set of info
    -------------
    http://bugs.digium.com/view.php?id=12889
     
  13. rafael

    Joined:
    May 14, 2007
    Messages:
    1,454
    Likes Received:
    1
    Are you using a dedicated server or a virtual dedicated server? That would explain why the how to fail. You should install the xen version of the kernel instead of the one I told you before.

    Instead of:
    ----
    rpm -ivh --oldpackage kernel-2.6.18-53.1.19.el5.i686.rpm
    ----

    try:
    -----
    rpm -ivh --oldpackage kernel-xen-2.6.18-53.1.19.el5
    -----

    And then when you use grub be sure you are using the xen verion of the kernel or the machine won't boot.

    Best Regards,

    Rafael
     
  14. rafael

    Joined:
    May 14, 2007
    Messages:
    1,454
    Likes Received:
    1
  15. areid

    Joined:
    Apr 11, 2008
    Messages:
    117
    Likes Received:
    0
    our system admin tried with kernel-xen

    -- start
    The server doesn't want to start with the kernel-xen, is happening the same
    issue as the other kernel that elastix provides.
     
  16. rafael

    Joined:
    May 14, 2007
    Messages:
    1,454
    Likes Received:
    1
    Tomorrow I would try to set up a xen server to install a xen host an try to replicate the installation. Having ssh access would save us time.

    Regards,

    Rafael
     
  17. rafael

    Joined:
    May 14, 2007
    Messages:
    1,454
    Likes Received:
    1
    Areid I could not install Elastix on your server. Your server is not using and standard CentOS 5.2 kernel, but something newer. The must be a reason for that and hardware may not be recognize at boot. Is this a real machine or a virtual private server?

    Your kernel version is: 2.6.26.5-rootserver-20080917a CentOS 5.x uses 2.16.18-xxxxxx

    I lost connectivity :(

    People having a defult installation of CentOS 5.2 could please test and help me improve this how to
     
  18. areid

    Joined:
    Apr 11, 2008
    Messages:
    117
    Likes Received:
    0
    Rafael,
    found out some answers from datacenter. I am in the process of doing a re-imaging on the server.

    Which one do you prefer? CentOS 5 minimal system OR CentOS 5 minimal system (64 bit)


    1/ it is a real server, full dedicated server
    2/ the kernel used on the server was compiled by datacenter that works with their server
    3/ original centos 5.2 kernel are located proc/configgz/ for compiling.

    Please let me which re-imaging you prefer. Once done I will update this forum.
     
  19. rafael

    Joined:
    May 14, 2007
    Messages:
    1,454
    Likes Received:
    1
    Elastix does not work with 64 bits yet :(. I would need a Centos 5.x for 32 bits standard edition with a default kernel.

    I hope you could get this and setup Elastix.

    Good luck,

    rafael
     

Share This Page