Most Popular

1500 questions
46
votes
6 answers

Where does logrotate save its own log?

I have logrotate running in an EC2 AWS machine rotating Apache logs. Once packed, Apache logs are saved into AWS S3 via s3fs. The problem is that I recently noticed that I didn't have logs rotated. In S3 I have old logs from day 48->60 but the 1->47…
enedebe
  • 1,006
  • 3
  • 11
  • 17
46
votes
8 answers

Delete a iptables chain with its all rules

I have a chain appended with many rules like: > :i_XXXXX_i - [0:0] > -A INPUT -s 282.202.203.83/32 -j i_XXXXX_i > -A INPUT -s 222.202.62.253/32 -j i_XXXXX_i > -A INPUT -s 222.202.60.62/32 -j i_XXXXX_i > -A INPUT -s 224.93.27.235/32 -j i_XXXXX_i…
timy
  • 659
  • 1
  • 7
  • 14
46
votes
5 answers

How to disable Nginx logging?

I have the following in config file server { listen 80; server_name _; access_log /var/log/nginx/access.log main; ... server { listen 80; server_name example.com access_log off; error_log off; But it…
user965363
  • 723
  • 2
  • 6
  • 11
46
votes
3 answers

How to check my PHP and MySQL version on Ubuntu VPS?

HI I am going to install MyBB but I am not sure whether I have installed the correct version of PHP and MySQL. PHP version 5.1.0 or above with XML Extension installed MySQL version 4.0 or above How to check that? Especiall the PHP XML…
DocWiki
  • 673
  • 2
  • 6
  • 8
46
votes
4 answers

PSCP: Upload an entire folder, Windows to Linux

I am using PSCP to upload some files from Windows to Linux. I can do it fine just uploading one file at a time. But I have some very large directories and I want to upload an entire directory at once. I have tried: pscp -i…
Mechlar
  • 607
  • 1
  • 7
  • 10
46
votes
7 answers

Removing phantom applications from Application Pools in IIS7

I have an application in one of my application pools that has a virtual path of /Site/login.aspx. I want to remove it but it no longer exists on my computer and it's causing me issues setting up AppFabric. I understand that you can remove these…
Col
  • 585
  • 1
  • 4
  • 6
46
votes
2 answers

How to use node.js as a production web server?

I'm currently developing a project using node, and as I'm approaching the launch, I'm struggling to find resources on how to setup node for use on a commercial, production server. Most resources I have seen have consisted of contrived, simple…
naivedeveloper
  • 581
  • 1
  • 4
  • 6
46
votes
7 answers

Why rsync is faster than NFS?

Few days ago I noticed something rather odd (at least for me). I ran rsync copying the same data and deleting it afterwards to NFS mount, called /nfs_mount/TEST. This /nfs_mount/TEST is hosted/exported from nfs_server-eth1. The MTU on both network…
grs
  • 2,235
  • 6
  • 28
  • 36
46
votes
5 answers

What are the implications of having two subnets on the same switch?

Can anyone tell me what some of the implications of having two different subnets on the same switch would be if VLANs are not being used?
Kyle Brandt
  • 82,107
  • 71
  • 302
  • 444
46
votes
9 answers

Linux ATA errors: Translating to a device name?

When a Linux box gets an ATA error, it syslogs it with a message identifying the disk as "ata%d.00". How do I translate that to a device name (e.g. /dev/sdb)? I feel like this should be trivial, but I cannot figure it out.
nelhage
  • 561
  • 1
  • 4
  • 4
46
votes
5 answers

How do I make RabbitMQ listen only to localhost?

I have installed RabbitMQ on a Debian Linux Squeeze machine, and I would like it to only listen to the localhost interface. I have added RABBITMQ_NODE_IP_ADDRESS=127.0.0.1 to my /etc/rabbitmq/rabbitmq.conf file, and that makes it bind to only the…
Vebjorn Ljosa
  • 652
  • 1
  • 5
  • 13
46
votes
6 answers

Permission denied while reading upstream

We have deployed our rails application on on Nginx and passenger. Intermittently, pages of application get loaded partially. There is no error in application log, but the Nginx error log shows the following: 2011/02/14 05:49:34 [crit] 25389#0: *645…
user68613
  • 583
  • 1
  • 4
  • 6
46
votes
4 answers

Installing optional Nginx modules with apt-get

I currently have Nginx installed via the instructions on the Nginx site: nginx=stable sudo su - add-apt-repository ppa:nginx/$nginx apt-get update apt-get install I have configured Nginx and it has been running great for a little while. Now, I…
Michelle Tilley
  • 563
  • 1
  • 5
  • 7
46
votes
10 answers

Linux (mv or cp) specific files from a text list of files?

I have a directory of many files, something like 50,000 pdf's and other files on a server. I need to move specific ones to another directory. I can generate a list of the files that need to be moved either in csv or any other text format. What I…
Jestep
  • 633
  • 1
  • 6
  • 11
46
votes
8 answers

How do I list all superusers?

On a linux box, how do I list all users that possess identical privilege to the superuser (and even better, all users in general along with if they are able to escalate their privilege to that level or not)?
Eric
  • 463
  • 1
  • 4
  • 4