HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Tips/Tricks/Mods (http://www.howtoforge.com/forums/forumdisplay.php?f=29)
-   -   Using ISPConfig3 only for WebServer (how to disabling others services (http://www.howtoforge.com/forums/showthread.php?t=52231)

pakogah 11th April 2011 10:29

Using ISPConfig3 only for WebServer (how to disabling others services
 
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...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


till 11th April 2011 10:35

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

pakogah 11th April 2011 12:19

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.

abubin 12th April 2011 12:21

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

Thanks.

pakogah 12th April 2011 13:18

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


zbuzanic 28th September 2011 15:35

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


All times are GMT +2. The time now is 15:35.

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