Configuration is a general term that can refer to the arrangement of functional units according to their nature and characteristics. Also, it can refer to software configuration which more suitable for server-related topics.

learn more… | top users | synonyms

182
votes
13answers
66k views

Any benefit or detriment from removing a pagefile on an 8GB RAM machine?

I'm running Windows 7 on a dual core, x64 AMD with 8GB RAM. Do I even need a pagefile? Will removing it help or hurt performance? Would it make a difference if this is a server or a desktop? Does ...
124
votes
5answers
171k views

MySQL: Bind to more than one IP address?

Is there a secret way to bind MySQL to more than one IP address? As far as I can see the bind-address parameter in the my.cnf does not support more than one IP and you can't have it more than once.
47
votes
8answers
3k views

Why would I need a firewall if my server is well configured?

I admin a handful of cloud-based (VPS) servers for the company I work for. The servers are minimal ubuntu installs that run bits of LAMP stacks / inbound data collection (rsync). The data is large ...
38
votes
2answers
4k views

Why do I have to edit /etc/sudoers with visudo?

I've noticed that the sudoers file and cron config files act in a special way compared to other config files on Linux. They need to be edited with a special wrapper rather than any text editor. Why is ...
35
votes
1answer
18k views

ssh hostname returns “Bad owner or permissions on ~/.ssh/config”

When I try to ssh to another box, I get this strange error $ ssh hostname Bad owner or permissions on ~/.ssh/config But I made sure that I own and have rw permissions on the file: ls -la ~/.ssh/ ...
32
votes
6answers
6k views

How to check for modified config files on a Debian system?

How to find all Debian managed configuration files which have been changed from the default?
30
votes
4answers
78k views

Adding a directory to $PATH in CentOS?

We just got our new server(s) up and we're running CentOS on them all. After successfully installing Ruby Enterprise Edition, I would now like to add the REE /bin (located at ...
29
votes
6answers
4k views

Automatically Configure New Computers

My company is in the process of upgrading all of our users from old Windows XP computers to newer quad-core Win7 computers. This is a good thing - it's long overdue that we upgrade our workstations - ...
27
votes
7answers
28k views

Linux: how to restore config file using apt-get/aptitude?

I've occasionally lost my config file "/etc/mysql/my.cnf", and want to restore it. The file belongs to package mysql-common which is needed for some vital functionality so I can't just purge ...
24
votes
6answers
27k views

How can I prevent a DDOS attack on Amazon EC2?

One of the servers I use is hosted on the Amazon EC2 cloud. Every few months we appear to have a DDOS attack on this sever. This slows the server down incredibly. After around 30 minutes, and ...
18
votes
4answers
13k views

Do Apache config files support block commenting?

You can use # to comment out individual lines. Is there a syntax for commenting out entire blocks? I've tired surrounding the block (specifically a <Directory> block) with <IfModule ...
17
votes
7answers
20k views

How do I run a local bash script on remote machines via ssh?

I am looking for a way to push configuration from one central machine to several remote machines without the need to install anything on the remote machines. The aim is to do something like you ...
13
votes
11answers
5k views

How can I diff two config files?

I've got two snmpd.conf files, one on a server that works, and one that doesn't. How can I diff the two config files while stripping out irrelevant comments and newlines?
13
votes
2answers
7k views

Passing default answers to apt-get package install questions?

I'm trying to write a configuration script for new servers, and one of the first steps is to install a series of required packages, such as MySQL, phpMyAdmin, etc. using apt-get install However, when ...
13
votes
7answers
12k views

SQL Server Files Local or NAS or SAN?

I have to install a new Server with SQL Server 2008, What do you recommend, One server with Raid 10 or the Files in a NAS? What about iSCSI should I use it? What about SAN? The server has 4Gb of ...
12
votes
8answers
787 views

What is this server doing?

I have a bunch of linux virtual servers left over from a previous IT department. They have names like 'magic' or 'stuff'. I'm not quite sure what they're doing...or if I need them... How would you ...
12
votes
2answers
746 views

Is there a way to create a “one-time” boot entry in grub?

I have the following issue: I have a small server (Debian based) to which I can connect remotely (VPN/SSH connection). Now I want to change some boot options (in fact I want to migrate my root file ...
12
votes
5answers
13k views

How do you document windows server configurations?

I come from a Unix background where documenting the configuration of a service (email for example) could be as simple as grabbing a few text configuration files and a paragraph or 2 of explanatory ...
12
votes
2answers
2k views

Is there a Linux kernel boot parameter to configure an IPv6 address?

I know there is a parameter named ip which lets you configure IPv4 addresses on the Linux kernel through the boot loader. That looks like the following: ...
11
votes
2answers
420 views

Why is 14 characters the maximum length for the nginx server_name directive?

I have the following virtual host server { server_name abc.example.com; root /var/www/test/; index index.html; } When running nginx -s reload I get the following error: nginx: [emerg] ...
11
votes
2answers
2k views

How to write a DRY, modular nginx conf (reverse proxy) with named locations

I'm using nginx mostly as a reverse cachining proxy in front of several gunicon/mod_wsgi applications and of course to server static files. I find that quickly my nginx confs become impossible to ...
10
votes
8answers
15k views

How to check if Apache compression is working?

I just added the following to my Apache config file: AddOutputFilterByType DEFLATE text/html text/plain text/xml How do I check if it is actually working? Nothing on the browser tells me if the ...
10
votes
5answers
17k views

How to configure IIS for SVG and web testing with Visual Studio?

Let's say I have a simple web page with svg image in it: <img src="foobar.svg" alt="not working" /> If I make this page as static html page and view it directly svg is displayed. If I type ...
10
votes
1answer
3k views

apache on centos 5.6 gives me permissions denied error

I'm running apache on centos 5.6 and whenever i try to load a php script in any directory, other than /var/www/html (the apache default root dir) it gives me a permissions denied error. However when ...
10
votes
5answers
3k views

How to use a custom .bashrc file on SSH login

I've found that with the new company I'm working with I often have to access linux servers with relatively short lifetimes. On each of these servers I have an account, but whenever a new one is ...
10
votes
6answers
665 views

Is there a etckeeper equivalent for Windows? AKA Windows config revision-control

I want to make a central config file repository so that I can have the changes to any config under revision control (Mercurial). This will include some GNU/Linux boxes (which will use etckeeper), the ...
9
votes
4answers
16k views

How do I set up per-site php.ini files on a LAMP server using NameVirtualHosts?

I have a LAMP server serving a number of different websites using NameVirtualHosts. Until recently having a global php.ini file has been just fine, but recently one of our developers has requested ...
9
votes
3answers
5k views

What is needed to use anycast IPs?

So, there're a bunch of questions on SF about the uses and how anycast IPs are cool. My approach is something more practical. What specifically I need to have to use one of those addresses? Do I ...
9
votes
1answer
3k views

How to rotate log based on an interval unless log exceeds a certain size?

From the man page of logrotate: minsize size Log files are rotated when they grow bigger than size bytes, but not before the additionally specified time interval (daily, weekly, monthly, ...
9
votes
3answers
11k views

How do I disable SSLv3 support in Apache Tomcat?

I am trying to reconfigure my Apache Tomcat server to only use TLSv1. However, it is still falling back to SSLv3 using certain browsers. I setup the <connector> tag with the following settings: ...
8
votes
4answers
863 views

How many domains on a single Apache server?

I'm hosting about 300 domains for my clients on a single Apache server. They all don't have much traffic, so the server load is not a problem. Theoretically there should be no limit how many of such ...
8
votes
3answers
4k views

Managing iptables with Puppet

The idea of managing our iptables rules with Puppet has been brought up. I see that augeas has an iptables lense but it is currently experimental. Does anyone have any suggestions as to how to handle ...
8
votes
4answers
7k views

Directly editing IIS 7 applicationHost.config configuration file

I know that IIS 7+ now uses XML config files instead of the metabase. I also know that if I edit a web.config file for a given site, IIS automagically detects the changes and implements any ...
8
votes
3answers
4k views

Why is IIS 7 is ignoring certain (but not all) MIME types for compression? Giving error: DYNAMIC_COMPRESSION_NOT_SUCCESS - Reason 12

So, I'm a bit of an IIS7 n00b but I've used most of the old IIS systems going back to 3. I'm trying to turn on dynamic compression and it's working, mostly. It doesn't work for my ADO.Net Data ...
8
votes
2answers
4k views

What is the different usages for sites-available vs the conf.d directory for nginx

I have some experience using linux but none using nginx. I have been tasked with researching load-balancing options for an application server. I have used apt-get to install nginx and all seems ...
8
votes
4answers
5k views

How to set up Cobbler with Puppet or Cfengine?

I've heard a lot about using Cobbler together with Puppet/Cfengine for rapid deployment & configuration. Can you point me to some tutorials or share you experience of how you do it? Would also ...
8
votes
1answer
7k views

OpenWrt Configuring Tagged and Untagged VLAN on the Same Port

I have installed OpenWrt on a MikroTik Routerboard RB750UP (AR7240 CPU with AR9330 built in switch). I have included additional details below, but my question is: How do I configure an untagged and ...
7
votes
13answers
7k views

How Long Will A DNS Change Take

If I'm going to make a DNS change to an A record for my domain (changing from one IP to another), how long can I expect until people are moved over to the new info? Is it simply <= the TTL? I ...
7
votes
6answers
2k views

Linux/UNIX Server Setup Practices for /tmp

Based on what you all see out there what is a recommended configuration of /tmp on a server system and why. I've had discussions on these points over the years sometimes with basic disagreements. ...
7
votes
2answers
15k views

Configure domain name in CentOS

How do I configure domain names in Cent OS? I am actually connecting to the servers via SSH remote terminal and I also have root credentials. Does configuring the /etc/sysconfig/network and ...
7
votes
1answer
447 views

Keeping configs, user ids, groups and passwords consistent across Linux-servers

I have a couple of Debian servers with only little users and services. The applications are kept as far as possible in their own directories where they can be backed-up or synced easily. But I have ...
7
votes
4answers
68k views

How to check if hardware RAID is configured?

I have several servers running Windows 2008 and Red Hat 5 that are capable of hardware RAID. How do I check that hardware RAID is configured?
7
votes
3answers
9k views

Why cache static files with Varnish, why not pass

I have a system runnning nginx / php-fpm / varnish / wordpress and amazon s3. Now I have looked at a lot of configuration files while setting up the system, and in all of them I found something like ...
7
votes
8answers
3k views

What configuration items do you track for proper configuration management? [closed]

As a professional system administrator, what configuration items do you consider it essential to track to perform proper configuration or change management? For example, in Windows, do you track ...
7
votes
4answers
548 views

Release Management for Infrastructure

Does anyone use release management principals for system administration of infrastructure in the same way it is done for software development? I have been in the system administration field for more ...
7
votes
4answers
10k views

Windows Service: Can I configure the current working directory?

By default, Windows services start in the sytem32 directory (usually C:\WINDOWS\system32). Is there a way to set up a different working directory? I am thinking of some registry parameter beneath ...
7
votes
1answer
1k views

Understanding the nginx proxy_cache_path directive

Suppose I have this nginx config file proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=myCache:8m max_size=100m inactive=1h; What does the keys_zone=myCache:8m mean? There's not much said to ...
7
votes
1answer
527 views

IIS server: how to dump IIS configuration into a single file

How to export/import configuration of my IIS server into/from a single file? The reason is that I want to put the configuration under version control system to track changes made by admins. Sultan
7
votes
1answer
11k views

How to stop Remote Desktop from closing my session due to inactivity?

I'm connecting from a windows vista desktop to a server running windows server 2003. I'm using Remote Desktop and I'm running some very long running processes on the remote server. My problem is that ...
6
votes
4answers
9k views

Puppet manifest example

Can anyone point me to a full example (tar/zip) directory of a Puppet manifest? I get the guides but it would be way easier just to look at a working directory.