Most Popular

1500 questions
70
votes
6 answers

How to diagnose a 500 Internal Server Error on IIS 7.5 when nothing is written to the event log?

I've just deployed an update to an existing ASP.NET MVC3 site (it was already configured) and I'm getting the IIS blue screen of death stating HTTP Error 500.0 - Internal Server Error The page cannot be displayed because an internal server error…
Greg B
  • 1,598
  • 5
  • 17
  • 32
70
votes
7 answers

How to force MySQL to connect by TCP instead of a Unix socket?

I would like to analyze mysql traffic. Right now, all mysql requests are sent to the MySQL unix socket: unix 2 [ ACC ] STREAM LISTENING 3734388 15304/mysqld /var/run/mysqld/mysqld.sock I'm trying to disable that socket to…
Max
  • 3,523
  • 16
  • 53
  • 71
70
votes
4 answers

What is the "slash" after the IP?

In Amazon EC2, where I set "security groups", It says: Source: 0.0.0.0/0 And then it gives an example of: 192.168.2.0/24 What is "/24"? I know what port and IP is.
Alex
  • 8,471
  • 26
  • 75
  • 99
70
votes
4 answers

What is the difference between iisreset, recycle, refresh and restart?

In IIS7, there are numerous things you can do that seem to restart the website. I am unclear about exactly how they are all related. run iisreset from the command line refresh a website recycle an app pool restart a website Can someone explain…
jimconstable
  • 905
  • 2
  • 11
  • 10
70
votes
8 answers

How to check if a port is open for remote system(ubuntu)

Is it possible to check that if the ports are open for the remote system on ubuntu server? I should able to check if a port(eg:ssh) on my machine is open for the remote machine.
user53864
  • 1,723
  • 11
  • 37
  • 66
70
votes
4 answers

How can I allow one user to su to another without allowing root access?

I'd like to allow certain users to su to another user account without having to know that account's password, but not allow access to any other user account (i.e. root). For instance, I'd like to allow Tom the DBA to su to the oracle user, but not…
gharper
  • 5,425
  • 4
  • 29
  • 35
70
votes
9 answers

How can I get a list of shared directories on local Windows server?

If I have a Windows server (typically 2000, 2003 or 2008), is there a simple way to list all local directories shared on that server? I can find the shares themselves easily enough, but I would love a quick way to find the local directories they…
70
votes
5 answers

How can I check in bash if a shell is running in interactive mode?

How can I tell (in ~/.bashrc) if I'm running in interactive mode, or, say, executing a command over ssh. I want to avoid printing of ANSI escape sequences in .bashrc if it's the latter.
Alex B
  • 1,714
  • 2
  • 18
  • 30
70
votes
11 answers

Linux: How to use a file as input and output at the same time?

I've just run the following in bash: uniq .bash_history > .bash_history and my history file ended up completely empty. I guess I need a way to read the whole file before writing to it. How is that done? PS: I obviously thought of using a temporary…
MilliaLover
  • 967
  • 1
  • 8
  • 8
70
votes
5 answers

How to send the output from a cronjob to multiple e-mail addresses?

In the beginning of a crontab file you could use the MAILTO instruction to indicate you want the output to be sent as an e-mail to an e-mail address. I would like to send the output to multiple addresses. Is it possible (and how) to specify multiple…
Boaz
  • 2,229
  • 5
  • 20
  • 15
70
votes
10 answers

Linux: how to explicitly unswap everything possible?

I've launched something that took lots of memory and now everything lags a lot. I guess all applications' memory has gone to swap in order to free some space for the memory-intensive process, and now everything is slowly returning to RAM when…
kolypto
  • 11,058
  • 12
  • 54
  • 66
70
votes
18 answers

Is Round-Robin DNS "good enough" for load balancing static content?

We have a set of shared, static content that we serve up between our websites at http://sstatic.net. Unfortunately, this content is not currently load balanced at all -- it's served from a single server. If that server has problems, all the sites…
Jeff Atwood
  • 13,104
  • 20
  • 75
  • 92
69
votes
2 answers

Apache ProxyPass with SSL

I want to proxy requests from an SSL site via a non-SSL site. My Apache httpd.conf looks like this: ServerName foo.com ProxyPass / https://bar.com/ So, when I visit http://foo.com, I expect apache to…
tylerl
  • 15,055
  • 7
  • 51
  • 72
69
votes
7 answers

automate dpkg-reconfigure tzdata

I'm using puppet to admin a cluster of debian servers. I need to change the timezone of each machine on the cluster. The proper debian way to do this is to use dpkg-reconfigure tzdata. But I can only seem to change it if I use the dialog. Is…
razor
69
votes
8 answers

A previous IT worker probably left some backdoors. How can I eliminate them?

I started working for a company that fired a previous IT worker for leaking data. I can only say the following things: We use a Firebird DB with an application written by another company, Proxmox, for virtualization of Windows Server 2008 R2, SQL…
user2265690
  • 729
  • 1
  • 5
  • 4