Questions tagged [system-administration]

Use this tag for asking about programs you have written to perform system-administration tasks. Non-programming questions about system administration are off-topic for Stack Overflow and should not be asked here.

983 questions
5
votes
5 answers

Where is source code for a Linux/Unix application most appropriately kept?

As a developer, I've often downloaded and run ./configure ./make ./make install to install apps onto my Linux system. But I've never been quite clear on the best place to keep the downloaded directory. My local Desktop is the default location, but…
Jack BeNimble
  • 35,733
  • 41
  • 130
  • 213
5
votes
7 answers

From programmer to Sys Admin

I am web programmer and I deal with html, css, javascript, php and asp.net. Is there some good books/sites that I can use to become also a bit of a sys admin? And by sys admin I mean to have knowledge of TCP/IP, Linux/Win Networks etc. Please don't…
AntonioCS
  • 8,335
  • 18
  • 63
  • 92
5
votes
2 answers

How to safetly export all IIS settings from one server to another?

I am trying to build a virtual machine that clones one of the servers used in production instances of our webapp so that we can do deployment testing on it. I have gotten all the necessary files over, IIS installed, the database up and running. To…
George Mauer
  • 117,483
  • 131
  • 382
  • 612
5
votes
7 answers

How do I detect if a Windows server is available after a reboot?

I want to automate a Windows 2000+ server reboot process using Task Scheduler or similar tool to remotely reboot a server and wait for it to come back up. I can issue shutdown or psshutdown to remotely reboot, but I want something better than sleep…
spoulson
  • 21,335
  • 15
  • 77
  • 102
5
votes
1 answer

How do I get a list of all php fpm pools from command line?

We run our own monitoring, manager panels and python fabric scripts. I cannot find any native method apart from a "ps" output parsing [1] commandline fu. The more pool information retrieved the better (user, stat, timeout, ...) The first plan is to…
n3storm
  • 704
  • 8
  • 21
5
votes
2 answers

What is good practice for writing web applications that control daemons (and their config files)

Can someone suggest some basic advice on dealing with web applications that interact with configuration files like httpd.conf, bind zone files, etc. I understand that it's bad practice, in fact very dangerous to allow arbitrary execution of code…
5
votes
3 answers

Process Deluge on Linux

I tried this experiment on my Linux desktop: int main() { while(1) fork(); return 0; } I ran this program as normal user(not root), i was surprised to find that it brought down my system, it has become unresponsive. I had hoped that due to…
Al pacino
  • 1,250
  • 1
  • 10
  • 8
5
votes
7 answers

To what extent can Version Control help in system administration?

I'm currently tinkering at an OpenBSD system with a view to building myself a firewall and some other bits and bobs. As this is fairly experimental (I'm an OpenBSD n00b, and I've already trashed my system 3 or 4 times), I wonder what experience…
Brent.Longborough
  • 9,567
  • 10
  • 42
  • 62
5
votes
1 answer

Port 3306 not listening? Can't connect to MySQL remotely

I'm trying to connect to MySQL remotely with pymysql and I'm getting the error message: (2003, "Can't connect to MySQL server on 'ip address' ([WinError 10061] No connection could be made because the target machine actively refused it)") In my…
5
votes
3 answers

How do you maximize server performance?

I have been trying to get my head around to understanding performance and scalability and would like to know what developers/sysadmins are doing to juice their systems. To standardize the answers, it would help if you could take your best shot at…
aleemb
  • 31,265
  • 19
  • 98
  • 114
5
votes
6 answers

What is your favorite free Netstat GUI / Connection Monitor app for Windows?

I need something a little more feature rich than Sysinternals TCPView (which I regularly use) ... but it also must be freeware. :)
Bruno Lopes
  • 323
  • 2
  • 5
  • 11
5
votes
2 answers

Nagios Plugin Error: (No output on stdout) ... failed. errno is 2: No such file or directory

I am using custom Nagios plugins for the first time and am running into this error when I create a service for the plugin. (No output on stdout) stderr: execvp(/usr/local/nagios/libexec/check_load.py, ...) failed. errno is 2: No such file or…
Matt Hahn
  • 394
  • 1
  • 4
  • 13
5
votes
3 answers

Add or update a configuration record in /etc/environment

My /etc/environment looks like this: cat /etc/environment PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" I wish to use a command (sed, awk, python, whatever....) that will make it look like this: cat…
Maxim Veksler
  • 29,272
  • 38
  • 131
  • 151
5
votes
1 answer

Expect script error missing close-brackets

Hi here is my expect script: #!/usr/local/bin/expect -f set force_conservative 0 ;# set to 1 to force conservative mode even if ;# script wasn't run conservatively originally if {$force_conservative} { set…
Aaron88
  • 177
  • 1
  • 8
  • 19
5
votes
6 answers

How do you handle developer access to windows servers?

When it comes to code launches how do you handle developer access to the server? Do they have RDP access to the machines to deploy code and make changes? Are they only given ftps access to the servers docroots and any .NET configuration changes…
jlintz
  • 463
  • 3
  • 8