When deploying new server/servergroup/cluster to your IT infrastructure, deployment (simplified) consist of following steps:
OS installation: to do it over network, boot server must be configured for this new server/servergroup/cluster,
configuration/package management: configuration server has to be aware of the newcomer(s),
monitoring and alerting: monitoring software must be reconfigured,
performance metrics: a tool for collecting data must be reconfigured.
There are many excellent software solutions for those particular jobs, say configuration management (Puppet, Chef, cfengine, bcfg2), monitoring hosts and services (Nagios, Zabbix, OpenNMS, Zenoss, etc) and performance metrics (Ganglia, etc). But each of these tools has to be configured independently or at least configuration has to be generated. What tools do you use to achieve this?
For example, when you have to deploy a new server, how do you create configs for, let's say, PXE boot server, Puppet, Nagios and Ganglia, at once?
Is there any command to generate it? The httpd.include is there but httpd.conf is not picking it up. Suppose there is a "middle" man to connect the vhosts httpd.include and httpd.conf
I just went to a box for myself, and just realized that my ram is closing in on it's limit.
We have 1gb of ram, yet we have around 50MB left.
We run 2 forums, with around 200 concurrent to 2000 on peaks. ( Currently it's 200 concurrent. )
Just hoping somebody could take a look at my httpd.conf and my my.cnf to see if I should tweak anything.
Ran top shift+m, and find that alot of apache connections is using 5mb per process:
Code: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 3173 apache 15 0 73672 51m 3924 S 0.0 5.1 0:56.63 httpd 4790 apache 15 0 73676 51m 3912 S 0.0 5.1 0:13.36 httpd 4980 apache 15 0 73672 51m 3908 S 0.0 5.1 0:08.21 httpd 3172 apache 15 0 69844 48m 3940 S 0.0 4.8 0:45.93 httpd 5096 apache 15 0 69872 48m 3896 S 0.0 4.8 0:06.21 httpd 4394 apache 15 0 68544 46m 3912 S 8.2 4.6 0:20.24 httpd 4256 apache 15 0 68540 46m 3912 S 0.0 4.6 0:30.12 httpd 3729 mysql 15 0 130m 35m 4968 S 2.0 3.5 147:49.81 mysqld 4003 psaadm 15 0 48212 34m 23m S 0.0 3.5 0:27.61 httpsd 1489 apache 15 0 53056 31m 3928 S 0.0 3.2 1:10.80 httpd 1538 apache 15 0 52692 31m 3928 S 0.0 3.1 1:15.86 httpd 1452 apache 15 0 52636 31m 3932 S 0.0 3.1 1:24.45 httpd 2098 apache 15 0 52576 31m 3976 S 0.0 3.1 1:10.90 httpd 1450 apache 15 0 52556 31m 3940 S 0.0 3.1 1:24.80 httpd 1457 apache 15 0 52484 31m 3964 S 0.0 3.1 1:22.13 httpd 1718 apache 16 0 52444 31m 3964 R 30.7 3.1 1:27.99 httpd
httpd.cnf ( Please tell me if I have missed anything out. )
Code: # # Timeout: The number of seconds before receives and sends time out. # Timeout 60
# # KeepAlive: Whether or not to allow persistent connections (more than # one request per connection). Set to "Off" to deactivate. # KeepAlive Off
# # MaxKeepAliveRequests: The maximum number of requests to allow # during a persistent connection. Set to 0 to allow an unlimited amount. # We recommend you leave this number high, for maximum performance. # MaxKeepAliveRequests 100
# # KeepAliveTimeout: Number of seconds to wait for the next request from the # same client on the same connection. # KeepAliveTimeout 10
# prefork MPM # StartServers: number of server processes to start # MinSpareServers: minimum number of server processes which are kept spare # MaxSpareServers: maximum number of server processes which are kept spare # ServerLimit: maximum value for MaxClients for the lifetime of the server # MaxClients: maximum number of server processes allowed to start # MaxRequestsPerChild: maximum number of requests a server process serves <IfModule prefork.c> StartServers 8 MinSpareServers 5 MaxSpareServers 20 ServerLimit 256 MaxClients 256 MaxRequestsPerChild 2000 </IfModule>
# worker MPM # StartServers: initial number of server processes to start # MaxClients: maximum number of simultaneous client connections # MinSpareThreads: minimum number of worker threads which are kept spare # MaxSpareThreads: maximum number of worker threads which are kept spare # ThreadsPerChild: constant number of worker threads in each server process # MaxRequestsPerChild: maximum number of requests a server process serves <IfModule worker.c> StartServers 2 MaxClients 150 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 MaxRequestsPerChild 0 </IfModule>
my.cnf:
Code: [mysqld] set-variable=local-infile=0 datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock # Default to using old password format for compatibility with mysql 3.x # clients (those using the mysqlclient10 compatibility package). old_passwords=1
Here are my settings in the /etc/php5/apache2/php.ini file:
display_errors = On display_startup_errors = Off log_errors = On log_errors_max_len = 1024 ignore_repeated_errors = Off ignore_repeated_source = Off report_memleaks = On error_log = /var/log/php5/error.log
However unfortunately I never see any error log being generated in the /var/log/php5/error.log file?
Also with my shared hosting site one thing which I noticed was, due to some configurations set by them, the error.log used to generate in the folder where the error occured. This is a cool thing which they used to do, but I just dont understand how did they do that.
I have an server linux OS CentOS 5.2 and using firewall CSF. and need question.
how to limit download theart ( limit connecting when download files ) EX : 4 connecting or 8 or 16 connecting ( my Guest using soft Internet Download Manager ).
For example, my website [url]and Direct links are: [url]. how to limit theart (Connecting) when Guest download which and using soft internetdownloadmanager, flasget.
I followed the following KB to allow country to be identified via GeoIP in AWStats: [URL] .... It works well on one of my domain, but I had to disable first the stats through PLESK Admin, then to reactivate it, so it would regenerate the conf file in /usr/local/psa/etc/awstats/* for a particulair domain. I then followed this KB to re-calculate all stats with country identification: [URL] .... It works as well.
But now: How can I regenerate all the conf file in /usr/local/psa/etc/awstats/* ? Is there any magic command?
I committed a fault, I reinstalled apache2 in my dedicated server, all my apache config files are missed so now plesk not work, i have 3 domains in production w and all are broken ...
error: Not Found The requested URL / was not found on this server.
I tried to reconfigure but: psa/admin/sbin/httpdmng:: No such file or directory
There is a solution to restore my apache2 old installation w files config?
I built a web hosting server, the following is its state
Cent os 5 AMP server loaded updated (installed it as a complete suite during installation so it was all set to go with php mysql modules loaded) webmin usermin virtualmin
created 2 named based hosts.
now when i load up wordpress in a site and try to run install.php
the following pops up
"Sorry, I can't write to the directory. You'll have to either change the permissions on your WordPress directory or create your wp-config.php manually."
I had this issue before and research said to redo the entire server (tried everything and was fed up had fedora then"
you can have a look at www.itgrunts.com just click create config file and the errror pops up.
The php and mysql db work great on simple scripts but i dont know why this happens.
i worked with assigning the users and apache user to the directory and everything, no joy.
Display some text in a web browser from a file called text.txt
text.txt will have many lines and some of them I do not want users to be able to modify and overwrite.
config_item_1=user can edit config_item_2=user should see but not edit (could be on any line) config_item_3=user can edit config_item_4=user can edit
The user has made their changes in the web browser and clicks submit. I then need this info to be saved as the text.txt file however some checking needs to be done first. Anything matching config_item_2 should be removed. This could be on any line. Anything not matching should be permitted and added.
"Create a zend id for your machine." This is apparently for them to create a product key for their software and have to bind to it?!
I have never heard of this and have been unable to locate any information on it.
This is a Centos box with php 5.2.5 installed: Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies with Zend Optimizer v3.3.0, Copyright (c) 1998-2007, by Zend Technologies
I am configuring a bind reverse DNS zone to use the $GENERATE statement. This works well. But If I add a single IP record after or before the $GENERATE statement I get 2 PTR records for that IP (which is expected I guess).
Does anyone know if it's possible to report only 1 PTR record for a single IP (host) record?
After successfully installing postfix+dovecot on Debian, I've run into a problem using Thunderbird email client on my home pc to receive email. I get: "Security Error: Domain Name Mismatch"
How, then, do to I generate a certificate for mail.mydomain.com?
Before installing postfix+dovecot, I created an MX record for mail.mydomain.com, and an A record for mail.mydomain.com. Should I have also added mail.mydomain.com to /etc/hosts?
When setting up Thunderbird, I told it my Pop Server was mail.mydomain.com. When I attempted to Get Mail, then I got "Security Error: Domain Name Mismatch".
One of my servers stop generating server logs, ftp logs etc all of a sudden since yesterday. It is a windows IIS 6 server, anyone have any idea on how to repair?
How to be able to fix my problem that is related to the https using apache2 (enabling https in apache2) at opensuse:
By the way, my opensuse version is:
openSUSE 12.1 (x86_64) VERSION = 12.1 CODENAME = Asparagus
1) At the /etc/apache2/vhosts.d/vhost-ssl.conf, and if I do not have a name (as the server will be accessed using its IP address), can I place in the ServerName 192.168.0.5? Do I have to place it 192.168.0.5:443 or it is enough to be 192.168.0.5?
2) Is there a relation between the SSLCipherSuite values and the used method to generate the certificate?
3) I am afraid from the way that I am using to generate the certificate and the ssl module that is coming with apache2 at my machine which has opensuse. How can I select the right way?
Actually I used following commands to generate the .crt, .key and the .csr:
4) Do I have to configure the virualhost? Do I have to create files under the directory /etc/apache2/vhosts.d? Because I will have one application to be browsed .. nothing more.
On Plesk 11.5.30 I have just patched with SSLfix.sh. [URL] ......
When I run an ssl check I get - Certificate name mismatch
I am also getting the following message
Unable to generate the web server configuration file on the host because of the following errors: Template_Exception: apache2: Syntax error on line 211 of /etc/apache2/apache2.conf: Syntax error on line 73 of /etc/apache2/mods-enabled/ssl.conf: </IfModule>SSLHonorCipherOrder without matching <IfModule>SSLHonorCipherOrder section
I recently received this messsage from in my mailbox "Unable to generate the web server configuration file on the host <nsxxxxxxx.ovh.net>" which is coming now every hour for 4 days now.
I first tried to regenerate an apache conf file with the magic on my Centos 6: