How Do You Create/generate Config Files

Jul 10, 2009

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?

View 2 Replies


ADVERTISEMENT

Unix Plesk: Generate Webserver Config Files

Sep 4, 2007

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

View 1 Replies View Related

98% Of Ram Used. Config Files

Jun 9, 2007

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

##
## Server-Pool Size Regulation (MPM specific)
##

# 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

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

[mysqld_safe]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

[mysqld]
max_allowed_packet=16M

View 13 Replies View Related

Where Is Important Config Files For Iptables?

Dec 4, 2008

backup from my iptables config files, where is important config files for iptables?

View 2 Replies View Related

How To Generate PHP Error.log Files In The Directory Of Error

Jun 15, 2008

unable to get any php5 error logs

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.

View 2 Replies View Related

Apache :: Using Totally Custom Config Files

Dec 11, 2013

I am trying to get a Apache (Win7x64) to run using totally custom config files, so far I have this:

Code : httpd.exe -f ......confapachehttpd.conf

Loads fine and here is my trivial config:

Code:

Listen 8082

ServerRoot webinapacheapache-2.4
ServerName fitrak.me

DocumentRoot webhomewebsites

Regardless of whether I make the DocumentRoot absolute or relative Apache still won't load index.html

500 Internal Server Error

Nothing coming up erroneous in the logs...WTF am I missing???

The port is not occupied...

View 2 Replies View Related

CSF How To Config Limit Theart When Download Direct Files

Dec 25, 2008

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.

View 3 Replies View Related

Plesk 11.x / Linux :: AWStats - Regenerate Config Files?

Nov 13, 2014

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?

View 1 Replies View Related

Reinstalled Apache2 - All Config Files Are Missed / Plesk Not Working

Feb 20, 2015

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?

View 7 Replies View Related

Wordpress Drupal Wont Create Files On Server Lamp

Apr 6, 2009

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.

View 6 Replies View Related

Simpleish PHP/flat Files - Create File, Edit, Save

Nov 24, 2007

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.

View 1 Replies View Related

How NOT To Require CHMOD 755 Permissions To Create, Write And Delete Files On Linux

Dec 30, 2008

On my previous server and on some other hosts, I was able to write to files (for example with PHP) without having to chmod the files first.

Now I cannot, and files are required to be chmoded properly so I can write to them.

I cannot even touch() a file with PHP.

Is there any way to have this permissions removed?

I don't want to chmod the all thing, all I want is to change the configurations so I can fwrite() or file_put_contents() normally.

I's a dedicated un-managed server, so basically any advanced configurations can be done.

View 8 Replies View Related

Generate Primary Zendid

Aug 9, 2008

How can you generate a Primary Zendid?

Here is what we get:

[root@test /]# cd /usr/local/Zend/bin/
[root@test bin]# ./zendid No primary IDs was detected. Try option 'allid' to see secondary IDs.
[root@test bin]# ./zendid allid
P:K66AJ-QD99H-R55T9-8LGHW
M:5S9EX-2JC3Q-CJ4E4-KFZPV
[root@test bin]#

Can a Primary Zendid be created? And if so, how?. This is on a Centos VPS with:

PHP 5.2.5 (cli) (built: Aug 1 2008 22:54:27)
Copyright (c) 1997-2007 The PHP Group
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

View 1 Replies View Related

Create A Zend Id For Your Machine. This Is Apparently For Them To Create A Product Key For Their Software

Aug 7, 2008

Customer has requested the following:

"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

how to go about this or even what this is?

View 2 Replies View Related

Software Used To Generate This Network Weather Map?

Dec 5, 2007

Does anyone know the software used to generate this graph? Or perhaps, similar ones?

View 1 Replies View Related

How Can I Generate/Download A Full Backup In SSH

Jun 5, 2008

my site is suspend from hosting companey

then i ask him to open SSH

they open it and open ftp

but when i try to do Generate/Download a Full Backup

using cpanel say to me that i can not because of too space

my all space 5 gb

the i try to zip all directry file home directry

and i do it and take ll files

can i do Generate/Download a Full Backup using SSH and FTP

the hosting copany say to me that the didi not oofer users to trasnfer site and suspend it
how can i solve it

the site is one site of my friends and i try to help hem

i buy to him VPS but we waiting any cooand of SSH help us to Generate/Download a Full Backup

View 13 Replies View Related

Bind $GENERATE Statement Overriding

Nov 5, 2007

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?

View 1 Replies View Related

How Do I Generate A Certificate For Mail.mydomain.com

Sep 6, 2007

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".

View 5 Replies View Related

W2k3 Server Cant Generate Logs All Of A Sudden

Feb 23, 2007

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?

View 2 Replies View Related

Apache :: HTTPS - Generate Certificate And SSL Module

May 26, 2013

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:

openssl genrsa -des3
openssl req -new -x509
openssl x509 -req

And that was from this link: [URL] .... But did not work with me !

Meanwhile I am placing:

SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL

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.

View 2 Replies View Related

Apache :: Generate Crash Dump In Windows 2008 Server R2

Sep 5, 2014

generate crash dumps for apache 2.4.9 at the time freeze or crash in windows environment 2008 server R2.

View 2 Replies View Related

Plesk 11.x / Linux :: Unable To Generate Web Server Configuration File

Jul 18, 2015

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

[Code] .....

View 4 Replies View Related

Plesk 12.x / Linux :: Unable To Generate Web Server Configuration File After Upgrade To V12

Jun 21, 2014

I get this error after upgrade from Parallels Plesk 11.5 for Linux to 12.0.18 (Ubuntu 12.04.4 LTS):

Template_Exception: nginx: [emerg] PEM_read_bio_X509_AUX("/opt/psa/var/certificates/certI3Fakms") failed (SSL: error:0906D064EM routinesEM_read_bio:bad base64 decode) nginx: configuration file /etc/nginx/nginx.conf test failed

file: /opt/psa/admin/plib/Template/Writer/Webserver/Abstract.php line: 75 code: 0

Reconfigure all does not work:

web:Execution failed. Command: httpdmng Arguments: Array ( [0] => --reconfigure-all )
Details: Execution failed. Command: httpdmng Arguments: Array ( [0] => --reconfigure-server [1] => -no-restart )
Details: [2014-06-22 02:23:16] ERR [util_exec] proc_close() failed [2014-06-22 02:23:21] ERR [util_exec] proc_close() failed

[Code] .....

View 19 Replies View Related

Plesk 11.x / Linux :: Unable To Generate Web Server Configuration File On Host

Jun 25, 2014

version: Parallels Plesk Panel v11.5.30_build115130819.13
os: centos 6.5 (final)

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:

# /usr/local/psa/admin/sbin/httpdmng --reconfigure-all

but it gives me this output:

Execution failed.
Command: httpdmng
Arguments: Array
(
[0] => --reconfigure-server
[1] => -no-restart

[Code] .....

At line 10 in my server.conf file I have a bunch of ipv6 address that looks like this:

NameVirtualHost xx.xx.x.xx:80
NameVirtualHost [xxxx:xxxx:8:5b11::1000]:80
NameVirtualHost [xxxx:xxxx:8:5b11::1001]:80
NameVirtualHost [xxxx:xxxx:8:5b11::1002]:80

[Code] ....

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved