Most Popular

1500 questions
73
votes
10 answers

xvda1 is 100% full, What is it? how to fix?

I'm running a Linux instance on EC2 (I have MongoDB and node.js installed) and I'm getting this error: Cannot write: No space left on device I think I've tracked it down to this file, here is the df output Filesystem 1K-blocks Used…
Chris Biscardi
  • 831
  • 1
  • 7
  • 5
73
votes
9 answers

Can't find .so in the same directory as the executable?

I have an executable which needs to link with libtest.so dynamically,so I put them in the same directory,then : cd path_to_dir ./binary But got this: error while loading shared libraries: libtest.so: cannot open shared object file: No such file or…
linuxer
  • 733
  • 1
  • 6
  • 4
73
votes
3 answers

IPTables only allow localhost access

I have struggled throughout the years to get a solid understanding on iptables. Any time I try and read through the man pages my eyes start to glaze over. I have a service that I only want to allow the localhost to have access to. What terms (or…
iptablessuck
  • 733
  • 1
  • 6
  • 4
73
votes
1 answer

Why does htop have three load averages?

On htop, it shows three load averages, one bold, one normal, one red. What do they signify?
chrism2671
  • 2,579
  • 9
  • 34
  • 45
73
votes
5 answers

How can I monitor what logrotate is doing?

How can I monitor what logrotate is doing in Ubuntu? Can the activity of logrotate be monitored?
user56548
73
votes
7 answers

How to setup linux permissions for the WWW folder?

Updated Summary The /var/www directory is owned by root:root which means that no one can use it and it's entirely useless. Since we all want a web server that actually works (and no-one should be logging in as "root"), then we need to fix this.…
Xeoncross
  • 4,449
  • 12
  • 43
  • 56
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
  • 3
  • 10
  • 18
73
votes
7 answers

iptables equivalent for mac os x

I want to forward requests from 192.168.99.100:80 to 127.0.0.1:8000. This is how I'd do it in linux using iptables: iptables -t nat -A OUTPUT -p tcp --dport 80 -d 192.168.99.100 -j DNAT --to-destination 127.0.0.1:8000 How do I do the same thing in…
nafe
  • 1,261
  • 1
  • 10
  • 8
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
  • 1
  • 6
  • 13
72
votes
3 answers

What does -qq argument for apt-get mean?

I just received a Vagrantfile and post install bash script. The vagrantfile downloads standard Ubuntu from Ubuntu Cloud but I found something in the bash script. Few lines of script reads as: apt-get update -qq > /dev/null apt-get -qq -y install…
user156477
72
votes
3 answers

nginx: Log complete request / response with all headers?

We have an application server that sometimes hangs. We suspect it is due to a bad request from a client. Can nginx log the complete request/response (like fiddler captures) to files, so we can see the requests that were sent before the hang? (We…
Jonesome Reinstate Monica
  • 5,445
  • 10
  • 56
  • 82
72
votes
2 answers

Tried to create 2 record set type=TXT in Route53

I'm trying to add a second TXT record to a domain, but I get the following error: Tried to create resource record set type='TXT but it already exists Can I add two records at the same domain?
gpupo
  • 1,214
  • 2
  • 12
  • 12
72
votes
3 answers

Block range of IP Addresses

I am getting bombarded with attempted hacks from China all with similar IPs. How would I block the IP range with something like 116.10.191.* etc. I am running Ubuntu Server 13.10. The current line I am using is: sudo /sbin/iptables -A INPUT -s…
Stephen Cioffi
  • 837
  • 1
  • 7
  • 8
72
votes
8 answers

Set gitlab external web port number

How do I change gitlab's default port 80 to a custom port number? There are two approaches I've tried: Set the port in /etc/gitlab/gitlab.rb external_port "8888" Then run reconfigure: gitlab-ctl reconfigure Set port in…
Jason Sturges
  • 843
  • 1
  • 9
  • 9
72
votes
2 answers

Must CSRs be generated on the server that will host the SSL certificate?

Is it necessary to generate the CSR (Certificate Signing Request) on the same machine that will host my web application and SSL certificate? This page on SSL Shopper says so, but I'm not sure if that's true, because it would mean I'd have to buy a…
Mike M. Lin
  • 901
  • 1
  • 7
  • 8