#1  
Old 26th May 2013, 02:16
bobpit bobpit is offline
Senior Member
 
Join Date: Feb 2013
Posts: 119
Thanks: 11
Thanked 2 Times in 2 Posts
Default end/start ispconfig3

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.
Reply With Quote
Sponsored Links
  #2  
Old 26th May 2013, 10:45
monkfish monkfish is offline
HowtoForge Supporter
 
Join Date: Mar 2013
Posts: 106
Thanks: 9
Thanked 15 Times in 14 Posts
Default

Quote:
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?
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.
Reply With Quote
  #3  
Old 26th May 2013, 12:58
bobpit bobpit is offline
Senior Member
 
Join Date: Feb 2013
Posts: 119
Thanks: 11
Thanked 2 Times in 2 Posts
Default

Hi

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

http://www.digitalfaq.com/forum/web-...ispconfig.html
"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?
Reply With Quote
  #4  
Old 26th May 2013, 13:20
monkfish monkfish is offline
HowtoForge Supporter
 
Join Date: Mar 2013
Posts: 106
Thanks: 9
Thanked 15 Times in 14 Posts
Default

Quote:
I am new to Linux, I come from the Windows environment.
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:-

Code:
[root@master ~]# 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:-

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

Code:
[root@master ~]# 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.
Reply With Quote
  #5  
Old 26th May 2013, 13:47
bobpit bobpit is offline
Senior Member
 
Join Date: Feb 2013
Posts: 119
Thanks: 11
Thanked 2 Times in 2 Posts
Default

Hello

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.
Reply With Quote
The Following User Says Thank You to bobpit For This Useful Post:
monkfish (26th May 2013)
  #6  
Old 26th May 2013, 14:35
monkfish monkfish is offline
HowtoForge Supporter
 
Join Date: Mar 2013
Posts: 106
Thanks: 9
Thanked 15 Times in 14 Posts
Default

Quote:
...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...
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!
Reply With Quote
  #7  
Old 26th May 2013, 14:56
bobpit bobpit is offline
Senior Member
 
Join Date: Feb 2013
Posts: 119
Thanks: 11
Thanked 2 Times in 2 Posts
Default

I followed this guide:
http://www.howtoforge.com/perfect-se...ot-ispconfig-3

The VPS is on OpenVZ, if this is what you mean.

I found this file: /etc/nginx/sites-enabled/000-ispconfig.vhost

I am looking at it in the editor but I cannot see something obvious to remove/comment out.

Unless you meant I should remove/rename the 000-ispconfig.vhost file.

Last edited by bobpit; 26th May 2013 at 15:04.
Reply With Quote
  #8  
Old 26th May 2013, 19:30
bobpit bobpit is offline
Senior Member
 
Join Date: Feb 2013
Posts: 119
Thanks: 11
Thanked 2 Times in 2 Posts
Default

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?
Reply With Quote
  #9  
Old 26th May 2013, 20:04
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,417
Thanks: 812
Thanked 5,205 Times in 4,081 Posts
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #10  
Old 27th May 2013, 07:51
bobpit bobpit is offline
Senior Member
 
Join Date: Feb 2013
Posts: 119
Thanks: 11
Thanked 2 Times in 2 Posts
 
Default

Thank you Till

Exactly what I wanted!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Updating ISPConfig3 - Ubuntu Server 10.04 danhansen@denmark HOWTO-Related Questions 1 18th March 2013 21:39
Need Suggestions About ISPConfig3 m4l41k4t Installation/Configuration 2 29th May 2012 03:02
Problems with installing SSL-certifates on ISPConfig3 slaveservers Hans General 4 5th October 2010 12:22
amavis rejects all inbound emails aclhkaclhk Installation/Configuration 5 28th February 2010 04:24
Questions about ISPConfig3 vs. ISPConfig2 atjensen11 General 1 14th March 2009 23:59


All times are GMT +2. The time now is 17:39.


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