Apache tweaking.

***********************
Apache tweak settings.
Timeout 90
KeepAlive On
MaxKeepAliveRequests 300
KeepAliveTimeout 5
MinSpareServers 5
MaxSpareServers 20
StartServers 8
MaxClients 150
MaxRequestsPerChild 1000
====================
Resolving high apache memory usage on apache 2 defaut on fedora.(working one)
Apache can be a big memory user. Apache runs a number of ’servers’ and shares incoming requests among them. The memory used by each server grows, especially when the web page being returned by that server includes PHP or Perl that needs to load in new libraries. It is common for each server process to use as much …

Read On »

my.cnf

[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
skip-locking
skip-innodb
query_cache_limit=1M
query_cache_size=32M
query_cache_type=1
max_user_connections=25
max_connections=500
interactive_timeout=10
wait_timeout=10
connect_timeout=10
thread_cache_size=128
key_buffer=16M
join_buffer=1M
max_allowed_packet=16M
table_cache=1024
record_buffer=1M
sort_buffer_size=2M
read_buffer_size=2M
max_connect_errors=10
# Try number of CPU’s*2 for thread_concurrency
thread_concurrency=8
myisam_sort_buffer_size=64M
#log-bin
server-id=1

[mysql.server]
user=mysql
basedir=/var/lib

[safe_mysqld]
err-log=/var/log/mysqld.log
pid-file=/var/lib/mysql/mysql.pid
open_files_limit=8192

[mysqldump]
quick
max_allowed_packet=16M

[mysql]
no-auto-rehash
#safe-updates

[isamchk]
key_buffer=64M
sort_buffer=64M
read_buffer=16M
write_buffer=16M

[myisamchk]
key_buffer=64M
sort_buffer=64M
read_buffer=16M
write_buffer=16M

[mysqlhotcopy]
interactive-timeout

Read On »

Installing configuring nagios monitoring tool

1) Getting Nagios
You need root access on the server, where you would like to install Nagios. Login as root. Create a directory for downloads.
#mkdir -p /usr/src/backs/nagios
#cd /usr/src/backs/nagios
Download source of nagios and nagios-plugins at http://www.nagios.org/download/.
#wget http://keihanna.dl.sourceforge.net/sourceforge/nagios/nagios-1.2.tar.gz
#wget http://easynews.dl.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.3.1.tar.gz
2) Compilation and installation of Nagios
Login as root and create a user, say “nagios”
#su
#adduser nagios
#passwd nagios
Changing password for user nagios.
New UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
In some servers normal users may not have permission to use ‘mail’ inorder to send …

Read On »

Apache php compilation.

Apache Install
=================
APACHE
./configure –with-layout=Apache –prefix=/usr/local/apache –enable-module=so –enable-shared=headers –enable-shared=expires –enable-shared=proxy –enable-shared=rewrite –enable-shared=unique_id –enable-shared=usertrack –enable-shared=vhost_alias
PHP compiling..as Cli
./configure –with-apxs=/usr/local/apache/bin/apxs –with-xml –enable-bcmath –enable-calendar –with-curl –with-dom –with-dom-xslt –with-dom-exslt –enable-exif –with-swf=/usr/local/flash –enable-ftp –with-gd –with-jpeg-dir=/usr/local –with-png-dir=/usr –with-xpm-dir=/usr/X11R6 –with-gettext –with-imap –with-imap-ssl –with-kerberos –enable-mbstring –with-mcrypt –with-mhash –enable-magic-quotes –with-mysql=/usr –with-openssl –enable-discard-path –with-pear –with-pspell –enable-xslt –with-xslt-sablot –enable-safe-mode –enable-sockets –enable-track-vars –with-ttf –with-freetype-dir=/usr –enable-gd-native-ttf –enable-versioning –enable-wddx –with-xmlrpc –with-zip –with-zlib
php compilation with suxec support
==============================================================================
./configure –prefix=/usr –with-xml –enable-bcmath –enable-calendar –with-curl –with-swf=/usr/local/flash –enable-ftp …

Read On »

 Page 3 of 3 « 1  2  3