Most Popular
1500 questions
47
votes
1 answer
Curl POST - 411 Length Required
We have a RestFUL API we build in PHP. If we make the request:
curl -u api-key:api-passphrase https://api.domain.com/v1/product -X POST
We get back:
411 - Length Required
Though if we simply add -d "" onto the request it works and no 411 error. Is…

Justin
- 5,328
- 19
- 64
- 84
47
votes
6 answers
ZFS on FreeBSD: recovery from data corruption
I have several TBs of very valuable personal data in a zpool which I can not access due to data corruption. The pool was originally set up back in 2009 or so on a FreeBSD 7.2 system running inside a VMWare virtual machine on top of a Ubuntu 8.04…

ssc
- 1,159
- 3
- 17
- 30
47
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
- 617
- 1
- 7
- 10
47
votes
3 answers
Disable the public key check for rpm installation
I want to make a DVD with some useful packages (for example php-common). The only problem is that if I try to install on a computer that's not connected to internet, I can't validate the public key.
The scenario is like this:
I download the RPMs,…

zozo
- 783
- 3
- 11
- 22
47
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
- 595
- 1
- 4
- 6
47
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
- 83,619
- 74
- 305
- 448
47
votes
6 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
- 662
- 1
- 5
- 13
47
votes
7 answers
How to determine the "age" of a linux system since installation?
I thought that I could easily check the timestamp of particular files. Then I realized that it wouldn't be so easy when I saw timestamps like 1991.

lisak
- 667
- 2
- 7
- 19
47
votes
6 answers
How do you avoid network conflict with VPN internal networks?
While there's a wide variety of private non-routable networks across 192.168/16 or even 10/8, sometimes in being thoughtful of potential conflict, it still occurs. For example, I set up an installation OpenVPN once with the internal VPN network on…

jtimberman
- 7,587
- 2
- 34
- 42
47
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
- 643
- 1
- 7
- 11
47
votes
2 answers
chown on a mounted NFS partition gives "Operation not permitted"
I have a remote partition that i have mounted locally using NFS.
'mount' gives
192.168.3.1:/mnt/storage-pools/ on /pools type nfs (rw,addr=192.168.3.1)
On the server i have in exports:
/mnt/storage-pools …

Disco
- 1,421
- 5
- 20
- 34
47
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
- 473
- 1
- 4
- 4
47
votes
4 answers
How to set up stats for HAProxy?
I can't figure out how to set up stats for HAProxy.
This is my configuration:
global
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
daemon
#debug
user haproxy
group haproxy
maxconn 4096
stats socket…

Jan Deinhard
- 2,383
- 5
- 26
- 33
47
votes
3 answers
How to list all CNAME records for a given domain?
I cannot list them using dig/nslookup/host.

Paweł Gościcki
- 1,120
- 1
- 15
- 18
47
votes
3 answers
why is loopback IP address from 127.0.0.1 to 127.255.255.254?
I do know that 127.0.0.1 ~ 127.255.255.254 are the loopback IP addresses for most modern operating systems and we could use these IP addresses to refer to our own computer. But isn't 127.0.0.1 enough?!?! why a wide range? why from 127.0.0.1 to…
kiana