hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Optimized settings for kernel compile, apache/php/mysql installation + .conf 's ??
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

Optimized settings for kernel compile, apache/php/mysql installation + .conf 's ??

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 07-07-2006, 12:16 AM
mouseattack mouseattack is offline
Web Hosting Master
 
Join Date: Dec 2004
Location: Behind You.
Posts: 692

Optimized settings for kernel compile, apache/php/mysql installation + .conf 's ??


There is like 500 options to enable or disable while recompiling a kernel.... I'm wondering if anyone has a rather, "better" .config that would work for a dual amd athlon 2400 MP+ and also one for Dual xeon 2.4 & 3.06 ghz.... I just am aiming for efficiency and getting the loads down, so I'm trying to optimize everywhere possible...

kernel recompile
apache installation
php installation
mysql .conf... /etc/my.cnf


Quote:
cd /root/tmp;
cd httpd-2.2.*
make clean
./configure --prefix=/usr/local/apache2.2 --enable-rewrite --enable-so --enable-http --enable-vhost-alias;make && make install

cd /root/tmp;
cd php*

make clean
./configure --prefix=/usr/local --with-apxs=/usr/local/apache2.2/bin/apxs --with-curl --with-zlib --enable-mbstring --with-mysql --with-xml;make && make install
That is how I install php and apache 2.2.2, is there any better tags? Those are the ones I could see using, gzip would be nice if anyone recommends it, is it a simple extra tag or anything more to install? someone recommended I add --with-mpm=prefork or worker, is that a good idea?



What are good settings to edit for

/usr/local/apache(2.2)/conf/httpd.conf
Quote:
Timeout 20
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 7
MaxSpareServers 12
StartServers 10
MaxClients 250
MaxRequestsPerChild 0

/usr/local/lib/php.ini
Quote:
mine is default
/etc/my.cnf

Quote:
[mysqld]
port = 3306
skip-locking
set-variable = max_connections=100
set-variable = max_user_connections=20
set-variable = key_buffer=16M
set-variable = join_buffer=4M
set-variable = record_buffer=4M
set-variable = sort_buffer=6M
set-variable = table_cache=1024
set-variable = myisam_sort_buffer_size=32M
set-variable = interactive_timeout=100
set-variable = wait_timeout=100
set-variable = connect_timeout=10
set-variable = thread_cache_size=128


obviously, I'm having some BIG problems hence why i'm trying to get the "pertected" setup. My friend has a forum with 2,000 people online and his mysql server only uses 100 mb ram, and his apache server only uses 900 mb ram at PEAK times, my apache server uses 2 gb ram for 250 requests currently being processed, which is ridiculous.

Yes I am on a 2.6.9.34-EL kernel, hence why I am planning to upgrade to 2.6.17.3 once I have a good config, but there are too many darn options.... Is there any "very good" .config files out there for this kernel ?

~thanks

I love to learn, I am spending the past months only learning and experimenting but not making too much progress, google will probably block my ip for too many searches about learning linux in the past few weeks....hehe...

Reply With Quote


Sponsored Links
Reply

Related posts from TheWhir.com
Title Type Date Posted
Softaculous Launches AMPPS Installer Version 1.5 Web Hosting News 2012-01-26 16:52:40
Web Host PEER 1 Provides Managed Hosting for Magento Storefront Web Hosting News 2011-09-20 15:50:17
Oracle is the Latest Vendor to Apply Patch for Apache Killer Flaw Web Hosting News 2011-09-19 14:43:58
Web Hosting Software Firm CloudLinux Releases CloudLinux OS Version 6.1 Web Hosting News 2011-09-13 14:08:49
Linux Foundation Website Down After Security Breach Last Week Web Hosting News 2011-09-12 20:32:11


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?