end/start ispconfig3

Discussion in 'Tips/Tricks/Mods' started by bobpit, May 26, 2013.

  1. bobpit

    bobpit Member

    I want to stop (UNLOAD) ispconfig3 from memory. Then, if I want to use it, I prefer to start it manually. I also do not want it to load automatically at server startup. How can I do this?

    I have a VPS with ubuntu 12.04 lts.
  2. monkfish

    monkfish New Member

    Are you saying you don't want apache to load? Because ispconfig is simply an apache virtual host.

    Haven't looked at ubuntu for a while but
    update-rc.d -f httpd remove
    might do it.

    However, if you're saying you want website functionality but you don't want the ispconfig site, you could investigate removing the symlinks for ispconfig vhost in /etc/httpd/conf/sites-enabled.

    You would have to place them back each time you wanted ispconfig and then reload apache.

    To my mind, not worth it. If you're thinking along the lines of memory usage as you have a VPS with possibly limited amounts of memory then maybe, look at the httpd modules loaded, do you need all of them - by disabling some of them you may an increase in memory.
  3. bobpit

    bobpit Member


    I am using nginx, not apache. And I do need nginx to run. My vps has 1 GB guaranteed RAM and when I finished installing ispconfig3 I was already over that. By making some changes and following this guide, I am down to about 650 MB RAM usage (when the vps is idle):

    "How to Optimize ISPConfig 3, reduce 150MB+ RAM: Disable clamav, amavis, spamd"

    I've read that a simple ubuntu server consumes about 500 MB ram. So I want to be able to save those extra 150 MB whenever I choose. I will be running ispconfig3 sparingly after the initial setup anyway. Then I will focus on optimizing ubuntu.

    I am new to Linux, I come from the Windows environment. So what I ask seems very simple to me. So, any suggestions please?
  4. monkfish

    monkfish New Member

    Welcome to the dark side! :)

    nginx just the same - ispconfig treated as a virtual host. So if you disable nginx you disable ispconfig. If you really want to stop the ispconfig code from loading, have a look in the sites-enabled vhost folder and remove the symlink for 000-ispconfig.vhost.

    I wouldn't however choose to do that.

    My virtual dev boxes all have 1gb ram allocated to them and ispconfig runs quite happily. Granted, the load isnt that high but everything is operational.

    Have a read up on how linux uses memory however. What you're seeing may not be actual memory usage on your machine. You'll read everywhere that linux has very efficient memory management coding and caching - if the memory is available it will use it - better for parts to stay in memory than on disk - expensive transaction times getting it from disk.

    To see actual memory usage use "free". This is one of mine:-

    [[email protected] ~]# free
                 total       used       free     shared    buffers     cached
    Mem:       1922624     677672    1244952          0      12608     172732
    -/+ buffers/cache:     492332    1430292
    Swap:      1048568          0    1048568
    You'll see an amount of buffered/cached memory usage in there. This is "in-flight" data yet to be written to disk or cached from disk into memory.

    Clear the buffers:-

     sync; echo 3 > /proc/sys/vm/drop_caches
    Then compare:

    [[email protected] ~]# free
                 total       used       free     shared    buffers     cached
    Mem:       1922624     511976    1410648          0        696      25520
    -/+ buffers/cache:     485760    1436864
    Swap:      1048568          0    1048568

    You'll see a reduction in memory usage but this is at the expense of emptying cached content. I don't do that too often, but some people advocate putting it in a cron script to regularly empty the cache.

    Do you know what you want to use your VPS for? Just web, or web and email? If you've disabled spamassassin, amavisd etc you're not going to see much in the way of mail protection.
    If its just web, instead of trying to disable ispconfig see if you can optimise nginx further. Lookup php-fpm see if thats any use to you and compatible with ispconfig architecture.
  5. bobpit

    bobpit Member


    and thank you for the help.

    I need nginx to run, so dissabling it is not an option. The site will be a proxy server running GLYPE. So I will set it up and forget about it.

    If you want to save me time researching, could yopu plese rephrase this and tell me the file that I need to edit when you say "have a look in the sites-enabled vhost folder and remove the symlink for 000-ispconfig.vhost."?

    Besides the symlinks, isn't there a way to have ispconfig3 inactive and NOT loaded? ANd whenever I need it I could run something like "ispconfig3 start"?

    Yes, I will look to optimize ubuntu, nginx etc. I just started from what is obvious to me.

    Trying the stuff you showed me for memory right now.
  6. monkfish

    monkfish New Member

    Heh, actually I can't as i haven't got any boxes running nginx! Likely to be /etc/nginx or similar.

    What archicture are you using, which howto did you follow - I'll knock one up if nobody answers quicker!
  7. bobpit

    bobpit Member

    Last edited: May 26, 2013
  8. bobpit

    bobpit Member

    The reason I started this thread is that I assume ispconfig3 consumes resources and RAM even if it not running, ie even if ispconfig3 is not on any browser. Is this true?

    Because if it loads in RAM only when I open it with my browser, then I do ot have problem with it.

    Can you please enlighten me on this?
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    ISPConfig is not a daemon, so it does not consume ram except of the ram used by the webserver apache or nginx. Disabling ispconfig when you want to run a webserver on that system does not make much sense as you would have to stop the webserver to save the ram.
  10. bobpit

    bobpit Member

    Thank you Till

    Exactly what I wanted!

Share This Page