ISPConfig on RHEL clone CenOS

Discussion in 'Installation/Configuration' started by Skunk, Jul 27, 2005.

  1. Skunk

    Skunk New Member

    Thanks for ISPConfig, it looks like a great app, but;
    Is it possible that the install script can be changed to allow ISPConfig
    install on the Red Hat Enterprice clone CentOS? CentOS is a really often
    used Enterprice Linux.

    When trying to run the installer script, all I get is;
    ERROR: Ihr Betriebssystem wird nicht unterst�tzt! / Your operating system is not supported!


    /Skunk
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Yes, have a look at the files setup1, dist.txt and the files in the mod directory. If you make some changes there you can install ISPConfig on CentOS.
     
  3. Skunk

    Skunk New Member

    Thanks.
    I found it more convenient to change /etc/redhat-release to RedHet 9 in stead.
    Strange that the ISPConfig supports Red Hat up to 9 and all of Fedora releases, but not the real thing; Red Hat Enterprice 4.

    /Skunk
     
    Last edited: Jul 27, 2005
  4. falko

    falko Super Moderator Howtoforge Staff

    That's easy to explain: ISPConfig is free, that means we don't earn money with it, so we don't have money to buy RHEL 4... :rolleyes:

    But everyone's invited to contribute, so if you (or others) think ISPConfig should run on RHEL and CentOS or other distros (Gentoo, ...), you can make the appropriate adjustments, and we can make them available for others in the next ISPConfig release. :)
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Redhat Enterprise is not supported yet because we dont have a server
    with this linux distribution available for testing here. If someone will
    do the modifications in setup1, dist.txt and test it, we will integrate
    it in the ISPConfig installer :)

    Till
     
  6. so_

    so_ New Member

    Centos 4.x modification

    I copied the fedora30 section of dist.txt as Centos 4.x is probably closest to that.

    I have tested this (only a little bit), but you get the general idea.

    Code:
    diff -ur install_ispconfig/dist.txt install_ispconfig_centos/dist.txt
    --- install_ispconfig/dist.txt  2005-07-14 08:27:01.000000000 -0600
    +++ install_ispconfig_centos/dist.txt   2005-08-30 10:27:27.772767064 -0600
    @@ -356,6 +356,50 @@
     dist_mysql_group=mysql ##                                        # fedora40
     dist_httpd_daemon=httpd ##                                       # fedora40
     
    +dist_init_scripts=/etc/rc.d/init.d ##                            # centos40
    +dist_runlevel=/etc/rc.d ##                                       # centos40
    +dist_smrsh=/etc/smrsh ##                                         # centos40
    +dist_shells=/etc/shells ##                                       # centos40
    +dist_http_user=apache ##                                         # centos40
    +dist_http_group=apache ##                                        # centos40
    +dist_bind_init_script=named ##                                   # centos40
    +dist_bind_user=named ##                                          # centos40
    +dist_bind_group=named ##                                         # centos40
    +dist_bind_conf=/etc/named.conf ##                                # centos40
    +dist_bind_dir=/var/named/chroot/var/named ##                     # centos40
    +dist_bind_pidfile=/var/named/chroot/var/run/named/named.pid ##   # centos40
    +dist_bind_hintfile=named.ca ##                                   # centos40
    +dist_bind_localfile=named.local ##                               # centos40
    +dist_passwd=/etc/passwd ##                                       # centos40
    +dist_shadow=/etc/shadow ##                                       # centos40
    +dist_group=/etc/group ##                                         # centos40
    +dist_cron_daemon=crond ##                                        # centos40
    +dist_cron_tab=/var/spool/cron/root ##                            # centos40
    +dist_mysql_group=mysql ##                                        # centos40
    +dist_httpd_daemon=httpd ##                                       # centos40
    +
    +dist_init_scripts=/etc/rc.d/init.d ##                            # centos41
    +dist_runlevel=/etc/rc.d ##                                       # centos41
    +dist_smrsh=/etc/smrsh ##                                         # centos41
    +dist_shells=/etc/shells ##                                       # centos41
    +dist_http_user=apache ##                                         # centos41
    +dist_http_group=apache ##                                        # centos41
    +dist_bind_init_script=named ##                                   # centos41
    +dist_bind_user=named ##                                          # centos41
    +dist_bind_group=named ##                                         # centos41
    +dist_bind_conf=/etc/named.conf ##                                # centos41
    +dist_bind_dir=/var/named/chroot/var/named ##                     # centos41
    +dist_bind_pidfile=/var/named/chroot/var/run/named/named.pid ##   # centos41
    +dist_bind_hintfile=named.ca ##                                   # centos41
    +dist_bind_localfile=named.local ##                               # centos41
    +dist_passwd=/etc/passwd ##                                       # centos41
    +dist_shadow=/etc/shadow ##                                       # centos41
    +dist_group=/etc/group ##                                         # centos41
    +dist_cron_daemon=crond ##                                        # centos41
    +dist_cron_tab=/var/spool/cron/root ##                            # centos41
    +dist_mysql_group=mysql ##                                        # centos41
    +dist_httpd_daemon=httpd ##                                       # centos41
    +
     dist_init_scripts=/etc/init.d ##                                 # suse72
     dist_runlevel=/etc/init.d ##                                     # suse72
     dist_smrsh= ##                                                   # suse72
    @@ -640,4 +684,4 @@
     dist_cron_daemon=cron ##                                         # freebsd51
     dist_cron_tab=/var/cron/tabs/root ##                             # freebsd51
     dist_mysql_group=mysql ##                                        # freebsd51
    -dist_httpd_daemon=apache ##                                      # freebsd51
    \ No newline at end of file
    +dist_httpd_daemon=apache ##                                      # freebsd51
    diff -ur install_ispconfig/setup1 install_ispconfig_centos/setup1
    --- install_ispconfig/setup1    2005-07-29 07:25:40.000000000 -0600
    +++ install_ispconfig_centos/setup1     2005-08-30 10:30:33.806485640 -0600
    @@ -115,14 +115,26 @@
        rm -f dist.info.ende
     fi
     if [ -f /etc/redhat-release ] && [ ! -h  /etc/redhat-release ]; then
    -   version=`cat /etc/redhat-release | cut -f5 -d' '`
    -   echo $version | grep \\. &> /dev/null
    -   if [ $? != 0 ]; then
    -     version=`echo $version.0`
    +   system=`cat /etc/redhat-release | cut -f1 -d ' '`
    +   if [ "$system" == 'CentOS' ]; then
    +       version=`cat /etc/redhat-release | cut -f3 -d' '`
    +       echo $version | grep \\. &> /dev/null
    +       if [ $? != 0 ]; then
    +          version=`echo $version.0`
    +       fi
    +       distversion=`echo Centos $version`
    +       echo $distversion
    +       distvers=centos${version//./}
    +   else
    +       version=`cat /etc/redhat-release | cut -f5 -d' '`
    +       echo $version | grep \\. &> /dev/null
    +       if [ $? != 0 ]; then
    +          version=`echo $version.0`
    +       fi
    +       distversion=`echo RedHat $version`
    +       echo $distversion
    +       distvers=rhat${version//./}
        fi
    -   distversion=`echo RedHat $version`
    -   echo $distversion
    -   distvers=rhat${version//./}
        echo dist=$distvers '##' > dist.info.tmp
        grep -i $distvers dist.txt >> dist.info.tmp
        cp -f dist.info.tmp dist.info
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    OK, thanks for the code. We will integrate it in the installer.
     
  8. nitbix

    nitbix New Member

    Red Hat Enterprise Linux 4

    Add this to your dist.txt to use it on rhel4:

    dist_init_scripts=/etc/rc.d/init.d ## # rhatenterprise0
    dist_runlevel=/etc/rc.d ## # rhatenterprise0
    dist_smrsh=/etc/smrsh ## # rhatenterprise0
    dist_shells=/etc/shells ## # rhatenterprise0
    dist_http_user=apache ## # rhatenterprise0
    dist_http_group=apache ## # rhatenterprise0
    dist_bind_init_script=named ## # rhatenterprise0
    dist_bind_user=named ## # rhatenterprise0
    dist_bind_group=named ## # rhatenterprise0
    dist_bind_conf=/var/named/chroot/etc/named.conf ## # rhatenterprise0
    dist_bind_dir=/var/named/chroot/var/named ## # rhatenterprise0
    dist_bind_pidfile=/var/named/chroot/var/run/named/named.pid ## # rhatenterprise0
    dist_bind_hintfile=named.ca ## # rhatenterprise0
    dist_bind_localfile=named.local ## # rhatenterprise0
    dist_passwd=/etc/passwd ## # rhatenterprise0
    dist_shadow=/etc/shadow ## # rhatenterprise0
    dist_group=/etc/group ## # rhatenterprise0
    dist_cron_daemon=crond ## # rhatenterprise0
    dist_cron_tab=/var/spool/cron/root ## # rhatenterprise0
    dist_mysql_group=mysql ## # rhatenterprise0
    dist_httpd_daemon=apache ## # rhatenterprise0
     
  9. nitbix

    nitbix New Member

    forgot!

    In the last line, change apache to httpd. I downgraded to 1.3... Sorry I forgot! :)
     
  10. falko

    falko Super Moderator Howtoforge Staff

    If you want to add RHEL4, you must also edit the files in the mod folder!
     

Share This Page