#1  
Old 27th July 2005, 01:10
Skunk Skunk is offline
Junior Member
 
Join Date: Jul 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default ISPConfig on RHEL clone CenOS

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
Reply With Quote
Sponsored Links
  #2  
Old 27th July 2005, 01:39
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Quote:
Is it possible that the install script can be changed to allow ISPConfig
install on the Red Hat Enterprice clone CentOS?
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.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 27th July 2005, 10:51
Skunk Skunk is offline
Junior Member
 
Join Date: Jul 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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 by Skunk; 27th July 2005 at 10:55.
Reply With Quote
  #4  
Old 27th July 2005, 11:19
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Quote:
Strange that the ISPConfig supports Red Hat up to 9 and all of Fedora releases, but not the real thing; Red Hat Enterprice 4.
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...

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.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 27th July 2005, 11:23
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,782
Thanks: 840
Thanked 5,610 Times in 4,421 Posts
Default

Quote:
Originally Posted by Skunk
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
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
Reply With Quote
  #6  
Old 31st August 2005, 01:56
so_ so_ is offline
Junior Member
 
Join Date: Aug 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
Reply With Quote
  #7  
Old 31st August 2005, 09:06
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,782
Thanks: 840
Thanked 5,610 Times in 4,421 Posts
Default

OK, thanks for the code. We will integrate it in the installer.
Reply With Quote
  #8  
Old 20th February 2006, 18:18
nitbix nitbix is offline
Junior Member
 
Join Date: Feb 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
Reply With Quote
  #9  
Old 20th February 2006, 18:19
nitbix nitbix is offline
Junior Member
 
Join Date: Feb 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default forgot!

In the last line, change apache to httpd. I downgraded to 1.3... Sorry I forgot!
Reply With Quote
  #10  
Old 20th February 2006, 23:49
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
 
Default

If you want to add RHEL4, you must also edit the files in the mod folder!
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 17:44.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.