Most Popular
1500 questions
73
votes
11 answers
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
I keep getting this warning when I (re)start Apache.
* Restarting web server apache2
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
... waiting apache2: Could not reliably determine…
user35402
- 1,171
72
votes
8 answers
Securely add a host (e.g. GitHub) to the SSH known_hosts file
How can I add a host key to the SSH known_hosts file securely?
I'm setting up a development machine, and I want to (e.g.) prevent git from prompting when I clone a repository from github.com using SSH.
I know that I can use StrictHostKeyChecking=no…
Roger Lipscombe
- 2,197
72
votes
10 answers
Apache Default/Catch-All Virtual Host?
If I have 3 domains, domain1.com, domain2.com, and domain3.com, is it possible to set up a default virtual host to domains not listed? For example, if I would have:
DocumentRoot /www/docs/domain1
ServerName…
SJaguar13
- 937
72
votes
8 answers
How to change a SSH host key?
I cloned a server and so they've the same RSA key fingerprint.
It seems to be defined in /etc/ssh/ssh_host_rsa_key.pub.
What is the correct way to change that?
Thanks.
Pascal Polleunus
- 1,523
72
votes
2 answers
Why is it so difficult to upgrade between major versions of Red Hat and CentOS?
"Can we upgrade our existing production EL5 servers to EL6?"
A simple-sounding request from two customers with completely different environments prompted my usual best-practices answer of "yes, but it will require a coordinated rebuild of all of…
ewwhite
- 198,150
72
votes
11 answers
How do I remove login credentials for a network location in Win7?
I just tried to access a folder like so:
\\somecomputeronmynetwork\somelocation$
When going to this location I'm prompted for a user name and password.
I put one in, and it let me in fine.
Now I need to remove that login, so I can try a different…
Joseph
- 1,746
72
votes
8 answers
Quickest way to transfer 55GB of images to new server
I currently have two CentOS servers. I need to know how and what the quickest way would be to "tar" up the images directory and SCP it over?
Is that the quickest way that I just suggested, because tarring is taking forever... I ran the command:
tar…
Andrew Fashion
- 1,665
72
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,465
- 4
- 29
- 35
72
votes
17 answers
Does orientation affect hard drive lifespan?
Are there any studies or evidence which show that mounting a hard drive horizontally is better than vertically for the lifespan of the device? Or upside down, or any direction for that matter.
Bob
- 2,977
72
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,259
72
votes
6 answers
Newline-separated xargs
Is it possible to make xargs use only newline as separator? (in bash on Linux and OS X if that matters)
I know -0 can be used, but it's PITA as not every command supports NUL-delimited output.
Kornel
- 1,155
72
votes
4 answers
Redirect URL within Apache VirtualHost?
I have a dedicated server with Apache, on which I've set up some VirtualHosts. I've set up one to handle the www domain as well as the non-www domain.
My VH .conf file for the www:
DocumentRoot /var/www/site
ServerName…
DisgruntledGoat
- 2,669
72
votes
3 answers
How do I change the privileges for MySQL user that is already created?
I understand how to create a new user with privileges, but what is the correct way to change privileges for users that are already created?
We are running a DB audit and some of the users have way more access then is needed. Plus I don't know the…
Clutch
- 970
72
votes
16 answers
How do I know if I'm working on a Virtual Machine or not?
Is there a way to know if the Windows machine I'm working on is virtual or physical?
(I'm connecting with RDP to the machine. If it's a virtual machine it is working and handled by VMWare).
user33705
72
votes
15 answers
Should I respond to an "ethical hacker" who's requesting a bounty?
I run a small internet based business from home and make a living at it to feed my family, but I'm still a one man show and internet security is far from my area of expertise.
Yesterday I received two emails from a guy who calls himself an "ethical…
Vincent
- 808