Using ISPConfig3 only for WebServer (how to disabling others services

Discussion in 'Tips/Tricks/Mods' started by pakogah, Apr 11, 2011.

  1. pakogah

    pakogah New Member

    I am installing ISPConfig3 inside internal network and only service sites with sub-domain. And there are other servers on the network which manage email and dns. So I would to use ISPConfig3 only for Web (Apache-PHP), mysql and FTP.

    And I would like to disable other services like dovecot (pop3/imapd), postfix, amavis, clamav, freshclam, spamassassin, bind BUT I still want php script able send email using sendmail

    Can you tell me the correct way to do it?
    Or these steps below enough?

    ps: I am following this tutorial:
    http://howtoforge.com/perfect-server-centos-5.5-x86_64-ispconfig-3

    Code:
    chkconfig dovecot off
    service dovecot stop
    chkconfig postfix off
    service postfix stop
    chkconfig amavisd off
    service amavisd stop
    chkconfig clamav off
    service clamav stop
    mv /etc/cron.daily/freshclam /root
    chkconfig spamassassin off
    service spamassassin start
    chkconfig bind off
    service bind stop
    chkconfig sendmail on
    service sendmail start
    
     
    Last edited: Apr 11, 2011
  2. till

    till Super Moderator

    Run the installer in expert mode and enable only the webserver plus ispconfig interface.
     
  3. pakogah

    pakogah New Member

    thanks for quick response Till,
    but the server already installed on configured for one LIVE php web application.
    I may not be able to uninstall-install again.

    I will try expert install on next server installation.
     
  4. abubin

    abubin New Member

    i would also like to know how to turn those off on a server that is already running with those extra services installed.

    Thanks.
     
  5. pakogah

    pakogah New Member

    hi Abubin,

    these method is works, I just disabled and everything seems to normal.
    I have to wait for 1 day or until end-user scream at me :p

    Code:
    chkconfig dovecot off
    service dovecot stop
    chkconfig postfix off
    service postfix stop
    chkconfig amavisd off
    service amavisd stop
    chkconfig clamd off
    service clamd stop
    mv /etc/cron.daily/freshclam /root
    chkconfig spamassassin off
    service spamassassin stop
    chkconfig named off
    service named stop
    chkconfig fail2ban off
    service fail2ban stop
    chkconfig sendmail on
    service sendmail start
    
    and on ISPConfig3 panel
    I go to System > server services > klik the server > and disable mail, dns, vserver > Save

    after doing this now my ispconfig3 only server web with php, ftp,mysql and sendmail to send email from php script

    below is the result of running daemon which opening connection
    Code:
    # netstat -tulpn
    Active Internet connections (only servers)
    Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name
    tcp        0      0 0.0.0.0:3306                0.0.0.0:*                   LISTEN      2465/mysqld
    tcp        0      0 0.0.0.0:21                  0.0.0.0:*                   LISTEN      2549/pure-ftpd (SER
    tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LISTEN      2510/sendmail: acce
    tcp        0      0 :::80                       :::*                        LISTEN      2534/httpd
    tcp        0      0 :::81                       :::*                        LISTEN      2534/httpd
    tcp        0      0 :::8081                     :::*                        LISTEN      2534/httpd
    tcp        0      0 :::21                       :::*                        LISTEN      2549/pure-ftpd (SER
    tcp        0      0 :::22                       :::*                        LISTEN      2362/sshd
    tcp        0      0 :::443                      :::*                        LISTEN      2534/httpd
    
     
  6. zbuzanic

    zbuzanic New Member

    For Debian v6 to disable clamav and amavis you have to run:

    chkconfig amavis off
    service amavis stop

    chkconfig clamav-daemon off
    service clamav-daemon stop

    chkconfig clamav-freshclam off
    service clamav-freshclam stop
     
    Last edited: Oct 14, 2011

Share This Page