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?

Click to expand...

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

Code:

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.

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):

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?

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.

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.

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.

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.