Notes for CentOS 4.1 install

Discussion in 'Installation/Configuration' started by felipegeek, Sep 4, 2005.

  1. felipegeek

    felipegeek New Member

    Hello to all,

    I have just started using ISPConfig and first tried a Debian Sarge install following Falko's Perfect Setup docs. It worked great! I figured I would give it a shot on CentOS 4.1 since I had an interest in running other software that was qualified for RHEL4. I found out that CentOS was not currently supported but if somebody forwarded information on how to get it to work that it would be considered useful. So here I go. Please keep in mind that this install information has NOT been followed up with extensive testing of ISPConfig afterwards so YMMV.

    ----------------------------------------------------------------------
    CentOS 4.1 Perfect Setup install mods from Fedora 4 notes. Follow the Fedora 4 notes if its not mentioned in here.

    After installing the base OS as described in the Perfect Setup doc and it boots.

    --import GPG key for Yum/RPM
    rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-4

    --Update Centos--
    yum update
    Yes <-- to install updates

    --remove software
    yum remove ppp
    Yes <-- will remove pppoe and wvdial

    yum remove portmap
    Yes <-- will remove NFS and ypbind services as well

    yum remove pcmcia-cs
    Yes <--

    --install some software, everything else in the fedora doc is installed by default and 'apt' can be installed via yum direct from Centos repo --
    yum install lynx apt

    --Add Dag Wieers RPM repository for APT--
    vi /etc/apt/sources.list.d/dag.list
    ### Dag RPM Repository for Red Hat Enterprise Linux
    rpm http://apt.sw.be redhat/el4/en/i386 dag

    Save then run..
    apt-get update

    --ncftp as described for fedora doc is not in CentOS repo. Can be installed with instructions below. Info obtained from VHCS website.--

    wget ftp://ftp.ncftp.com/ncftp/binaries/ncftp-3.1.9-linux-x86-export.tar.gz
    tar xvfz ncftp-3.1.9-linux-x86-export.tar.gz
    cd ncftp-3.1.9
    make install

    --DNS-Server--
    bind-chroot is already installed, do everything else.

    --MySQL 4.1--
    mysql and mysql-devel already installed.

    yum install mysql-server

    chkconfig --levels 235 mysqld on
    /etc/init.d/mysqld start

    --These packages are used by some 3rd party webapps that I might use so I figured to get them installed now.--
    apt-get install libmcrypt libmcrypt-devel expect libxslt-devel libjpeg-devel libpng-devel freetype-devel libc-client-devel php-snmp net-snmp-devel httpd-devel

    --Postfix With SMTP-AUTH And TLS--
    cyrus apps are already installed, imap as named in the Fedora doc does not exist in CentOS repo. I believe it is referenced in 'cyrus-imapd'

    apt-get install cyrus-imapd cyrus-imapd-devel postfix

    Continue as instructed for FC4...

    (I could not find any full set of RPMs for Courier Imap and did not have the time or inclination to make my own though the courier website does explain the whole process.)

    -- Apache --
    Several of the packages mentioned in the FC4 doc already exist in the CentOS install.

    apt-get install php-devel php-gd php-imap php-mysql php-odbc php-xmlrpc ImageMagick

    editing /etc/httpd/conf.d/php.conf, there is no AddHandler only the AddType which I commented out.

    Continue as FC4...


    --ProFTP--
    CentOS repo does not have proftpd. It will come out of the Dag Wieers repo with apt-get.

    apt-get remove vsftpd
    apt-get install proftpd
    chkconfig --levels 235 proftpd on
    /etc/init.d/proftpd start


    --Webalizer--
    Is already installed as part of CentOS.

    --Synchronize time clock--
    I used 'ntpdate' instead of rdate which I could not get to grab the time. You could configure ntpd to grab the time as a service or use the cron job as described in the FC4 Perfect setup doc as shown below.

    ntpdate us.pool.ntp.org (or whatever county code or region.ntp.org is closest to you.)

    vi /var/spool/cron/root
    # update time with ntp server
    0 3,9,15,21 * * * /usr/sbin/ntpdate us.pool.ntp.org | logger -t NTP

    Continue as FC4...

    --ISPConfig Installation--
    To install ISPConfig create a file /etc/fedora-release with the following content:

    'Fedora Core release 4' (without quotes)

    This will allow ISPConfig to think its installing on FC4 and let the installer start. You should probably remove the /etc/fedora-release file after you are done so that other software does not get confused if it finds that file before the redhat-release file.

    -zlib issue-
    The zlib with CentOS is version 1.2.1. You will need to download and compile zlib 1.2.3 as follows. Do not try to uninstall the CentOS rpms. There are many dependencies that would be uninstalled with them and would pretty much trash your OS install. I don't know if the direct installation of zlib 1.2.3 will break anything else.

    cd /root
    wget http://www.zlib.net/zlib-1.2.3.tar.gz
    tar xvfz zlib-1.2.3.tar.gz
    cd zlib-1.2.3
    ./configure
    make test
    make install

    Run ./setup as usual. You may want to tee the output to a file for diagnostic reasons in case something goes wacky. './setup | tee ispconfig.tee' would be a good start.
    ---------------------------------------------------------------

    I hope this information proves useful to someone and that they might perform more extensive testing of ISPConfig after its setup to see if its really working properly. I am going back to the Debian Sarge install on the second machine.

    Regards to the ISPConfig team for a nifty product and to Falko for the great Perfect Setup docs!

    I attached the install console output that I teed to a file in case it has any relevent messages for predicting trouble somebody might recognize.

    Cheers,
    -felipe
     
    Last edited: Sep 4, 2005
  2. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    Hi Felipe,

    thank you for your installation guide. The current SVN version of ISPConfig recognizes the CentOS 4.1 redhat-release file so as of ISPConfig 2.0.9 changing /etc/redhat-release will not be nescessary anymore.

    Till
     
  3. gbjbaanb

    gbjbaanb New Member

    Dag wieer's YUm repo

    Also, I find that using apt as well as yum is an annoyance (and you have to run both to upgrade).

    fortunately, all the installs in apt are available in yum form from Dag Wieer's repository.

    to install: create a dag.repo file inside /etc/yum.repos.d directory with the following in it.
    Code:
    [dag]
    name=Dag RPM Repository for Red Hat Enterprise Linux 
    baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
    gpgcheck=1
    enabled=1
    
    and install the GPG key
    Code:
    rpm --import http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
    
    These instructions come from http://dag.wieers.com/home-made/apt/FAQ.php#B, then Yum operations will know about all the packages you might otherwise iinstall separately using apt.
     
  4. pokerpen

    pokerpen New Member

    i was able to get through the entire install till this'

    -zlib issue-
    The zlib with CentOS is version 1.2.1. You will need to download and compile zlib 1.2.3 as follows. Do not try to uninstall the CentOS rpms. There are many dependencies that would be uninstalled with them and would pretty much trash your OS install. I don't know if the direct installation of zlib 1.2.3 will break anything else.

    cd /root
    wget http://www.zlib.net/zlib-1.2.3.tar.gz
    tar xvfz zlib-1.2.3.tar.gz
    cd zlib-1.2.3
    ./configure
    make test
    make install

    Run ./setup as usual. You may want to tee the output to a file for diagnostic reasons in case something goes wacky. './setup | tee ispconfig.tee' would be a good start.

    when I tried it gave me these errors

    [root@localhost zlib-1.2.3]# make test
    cc -O -DNO_snprintf -DHAS_sprintf_void -DNO_ERRNO_H -c -o example.o example.c
    make: cc: Command not found
    make: *** [example.o] Error 127
    [root@localhost zlib-1.2.3]#

    [root@localhost zlib-1.2.3]# make install
    cc -O -DNO_snprintf -DHAS_sprintf_void -DNO_ERRNO_H -c -o adler32.o adler32.c
    make: cc: Command not found
    make: *** [adler32.o] Error 127

    any ideal why?
     
  5. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    The C compiler is missing on your server. Install the GCC packages, uninstall the failed ISPConfig setup as described in the installation manual and rerun the ISPConfig setup again.
     
  6. pokerpen

    pokerpen New Member

    ok got that working, the very last step does not work as there is no setup folder

    Run ./setup as usual. You may want to tee the output to a file for diagnostic reasons in case something goes wacky. './setup | tee ispconfig.tee' would be a good start.

    thanks
     
  7. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    You have to unpack the ISPConfig .tar.gz again and then go to the install_ispconfig directory to run
    Code:
    ./setup
     

Share This Page