Most Popular

1500 questions
47
votes
3 answers

How do I upgrade from PHP 5.3 to PHP 5.4.6 in Ubuntu?

Is there an easy way out to get the latest PHP? I have tried updating my package but none of it has 5.4.6 yet... if anyone knows on how to do it quickly, can it be shared here? I've tried compiling from the source, but I am constantly getting: …
user79356
  • 627
47
votes
6 answers

Apache "Client denied by server configuration", despite allowing access to directory (vhost configuration)

in Apache on Ubuntu I've set up a vhost, but in the browser I keep getting a "403 Access forbidden" error; the log says "Client denied by server configuration: /home/remix/". Looking for the solution online I found many posts about the directory…
47
votes
7 answers

How to update cURL CA bundle on RedHat?

I am running into issues where the CA bundle that has been bundled with my version of cURL is outdated. curl: (60) SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate…
Andrew
  • 3,593
47
votes
4 answers

Forward Custom Header from Nginx Reverse Proxy

I have an nginx web server acting as a reverse proxy to forward requests on to Apache for additional handling (I'm begging you not to ask why). I have a request to which I'm trying to attach a custom header and I'd like for nginx to forward that…
Rob Wilkerson
  • 1,555
  • 4
  • 18
  • 27
47
votes
7 answers

Bash Scripting: Require script to be run as root (or with sudo)

I'm trying to write a bash script (in Ubuntu) that will backup a directory using tar. How can I do a check in the script so that it can only be run as root (or with sudo)? For instance, if a user runs the script, it should say that this script must…
Cory Plastek
  • 1,029
47
votes
5 answers

User per virtual host in Nginx

Is it possible in nginx configure different user per virtual host? Something like server { user myprojectuser myprojectgroup; ... }
47
votes
2 answers

Effects of configuring vm.overcommit_memory

My VPS web server running on CentOS 5.4 (Linux kernel 2.6.16.33-xenU) irregularly (like once a month give or take a few weeks) becomes unresponsive due to oom-killer kicking in. Monitoring of the server shows that it doesn't normally run out of…
dunxd
  • 9,874
47
votes
5 answers

Why can't I reach my Amazon EC2 instance via its Elastic IP address?

The server works fine via the Amazon assigned DNS entry, but I cannot reach it (using a browser) via the Elastic IP address Amazon assigned the box. Ping does not work either. I am trying to confirm it is reachable before I add the IP address to my…
47
votes
5 answers

Can dpkg verify files from an installed package?

With rpm -qV openssh-server I will get a list of files that have changed compared to default. ~$ rpm -qV openssh-server S.?....T. c /etc/ssh/sshd_config ~$ Can dpkg on Ubuntu do the same?
Sandra
  • 10,711
  • 41
  • 120
  • 173
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
47
votes
1 answer

What exactly will --delete-excluded do for rsync?

I use rsync with great pleasure for backing up my servers, although I do have a question about the --delete-excluded parameter. /usr/bin/rsync -a --delete --numeric-ids --relative --delete-excluded --rsh=/usr/bin/ssh root@server01:/etc…
ujjain
  • 4,123
47
votes
1 answer

How do I tell what is running on which ports in Ubuntu?

How could I tell what is listening on which ports on Ubuntu? In other words, how do I get a list of ports that are in use?
Genadinik
  • 1,143
47
votes
2 answers

Understanding a Postfix log file entry

We have a Postfix hub and I'm trying to better understand the information in the mail.log file. I use tools like qshape, pflogsumm.pl and amavis-logwatch to summarize the log files, but I have still have questions about some of the elements of the…
KodeTitan
  • 921
47
votes
6 answers

Measuring 'total bytes written' under Linux

We're quite interested in exploring the possibility of using SSD drives in a server environment. However, one thing that we need to establish is expected drive longevity. According to this article manufacturer's are reporting drive endurance in…
badnews
  • 615
47
votes
7 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…