#1  
Old 29th January 2013, 14:46
Rashef Rashef is offline
Member
 
Join Date: Nov 2008
Posts: 60
Thanks: 8
Thanked 2 Times in 2 Posts
Default Advice for low-end servers

Dear all,

I'm happily using ISPConfig3 with a pool of low-end VMs (2 core XEON and 512 MB RAM). These VMs mainly hosts Wordpress instances and a couple of Drupals. This is why the most applied PHP configuration is FastCGI.

I had many resources issues at the beginning (every 3 days the server was out of memory and killing processes randomly) then I deactivated clamd and amavisd and it got better. Also I tried and configured some options in /etc/httpd/conf.d/fcgid.conf:

Code:
# This is the Apache server configuration file for providing FastCGI support
# through mod_fcgid
#
# Documentation is available at
# http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html

LoadModule fcgid_module modules/mod_fcgid.so

# Use FastCGI to process .fcg .fcgi & .fpl scripts
AddHandler fcgid-script fcg fcgi fpl

# Sane place to put sockets and shared memory file
FcgidIPCDir /var/run/mod_fcgid
FcgidProcessTableFile /var/run/mod_fcgid/fcgid_shm
FcgidMaxRequestLen 1073741824
DefaultMinClassProcessCount 0

# Maximum requests a process handles before it is terminated
MaxRequestsPerProcess       1000
# Maximum number of PHP processes
MaxProcessCount             5

IPCCommTimeout              600
IdleTimeout                 600

#ServerLimit           500
#StartServers            3
#MinSpareThreads         3
#MaxSpareThreads        10
#ThreadsPerChild        10
#MaxClients            300
#MaxRequestsPerChild  1000
But every 2-3 weeks I still have to restart httpd on one VM with 2 Wordpress instances (about 200 unique visitors per day the first one, 10 unique visitors per day the second) as the most visited Wordpress sometimes becomes unreachable (timeout).

I got only this error:
Code:
PHP Deprecated:  Function eregi() is deprecated in /usr/share/phpmyadmin/libraries/select_lang.lib.php on line 147
and this warning:
Code:
mod_fcgid: can't apply process slot for /var/www/php-fcgi-scripts/web23/.php-fcgi-starter
Is there anything else I can do to improve the configuration? Well, maybe I didn't improve it at all with my configuration, but I'd really appreciate some advice.
Reply With Quote
Sponsored Links
  #2  
Old 30th January 2013, 12:59
falko falko is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

http://www.howtoforge.com/configurin...um_performance

You might want to try

KeepAliveTomeout 2

Also, you might be better off with PHP-FPM (with pm = ondemand) instead of FastCGI.

http://www.howtoforge.com/using-php5...n-ubuntu-12.10
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 30th January 2013, 13:56
manarak manarak is offline
Senior Member
 
Join Date: Apr 2009
Posts: 263
Thanks: 32
Thanked 6 Times in 5 Posts
 
Default

regarding the eregi error, you should upgrade your wordpress to the latest version.
Alternatively you could replace eregi with the new preg_match syntax
Reply With Quote
Reply

Bookmarks

Tags
fastcgi, resources

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
Mail hold in Q fisherofer Installation/Configuration 1 5th February 2012 13:29
Sql ledger using forum.. yurtboy1 General 19 25th December 2010 21:08
DNS data from Standalone servers to Primary DNS server SamTzu Tips/Tricks/Mods 7 15th November 2009 13:38
Unable send receive emails vassilis3 Installation/Configuration 15 19th May 2007 14:34
No SPF record. beryl Installation/Configuration 6 17th May 2007 19:52


All times are GMT +2. The time now is 23:36.


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