Most Popular

1500 questions
44
votes
23 answers

Finding the Public IP address in a shell script

I can find my IP address using ifconfig or hostname -i command. But how do I find my Public IP? (I have a static public IP but I want to find it out using unix command)
shantanuo
  • 3,619
44
votes
4 answers

What's wrong with my cronjob syntax, I'm trying to use a backtick (`)?

Here's what I'd like to automate: 00 08 * * * psql -Uuser database < query.sql | mail somone@null.com -s "query for `date +%Y-%m-%dZ%I:%M`" Here's the error message: /bin/sh: -c: line 0: unexpected EOF while looking for matching ``' /bin/sh: -c:…
44
votes
4 answers

Authentication is required to manage system services or units.

I have a strange issue whenever trying to stop/start a daemon as a regular user, it asks to authenticate with the credentials of another regular user - for example: [bob@server ~]$ systemctl stop some-daemon.service ==== AUTHENTICATING FOR…
44
votes
4 answers

What time zone is a cron job using?

I'm guessing there's a difference between my PHP time and the server time. When I check the current time in PHP, it's showing that MST is being used. However, cron jobs aren't running at the correct time. How can I check to see what timezone the…
Edward
  • 543
44
votes
3 answers

How to allow ssh to root user only from the local network?

I've installed Google-Authenticator on a CentOS 6.5 machine and configured certain users to provide OTP. While editing /etc/ssh/sshd_config I saw a directive "PermitRootLogin" which is commented out by default. I would like to set "PermitRootLogin…
Itai Ganot
  • 10,826
44
votes
2 answers

Which RFCs should be cited as internet standards?

It's extremely common for RFCs to be cited in support of opinions (including Serverfault Q&A's), but the average IT employee has a very poor understanding in regards to which RFCs define standards and which ones are purely informative. This should…
Andrew B
  • 33,098
44
votes
14 answers

AWS: Environment named *** is in an invalid state for this operation. Must be Ready

I get a message when I am trying to deploy my php app on EC2 using Elastic Beanstalk. Environment named *** is in an invalid state for this operation. Must be Ready. I am unable to deploy. The server status is running, no warnings. My experience…
44
votes
3 answers

IPv6 subnetting a /64 - what will break, and how to work around it?

In IPv6, you are not supposed to subnet to anything smaller than a /64 (RFC 5375). Among other things, SLAAC does not work with smaller subnets, and apparently also some other features will break. What are the workarounds for situations where ISPs…
44
votes
13 answers

Physically Identify the failed hard drive

So, let's say your server had 6 healthy hard drives. A drive fails (will not mount/detect, drops out of raid with errors) or is failing (SMART getting worse, etc). You need to swap out the bad drive. When you open the case you see.. six identical…
privatehuff
  • 1,109
44
votes
4 answers

How to output a list of changed files from rsync?

I am using rsync in a bash script to keep files in sync between a few servers and a NAS. One issue I have run into is trying to generate a list of the files that have changed from the during the rsync. The idea is that when I run rsync, I can output…
Jason M.
  • 565
44
votes
15 answers

phpMyAdmin Error - The configuration file now needs a secret passphrase

I keep getting an error "The configuration file now needs a secret passphrase" after installation of phpmyadmin. I have set the passphrase and also followed the instruction presented on…
jax
  • 551
44
votes
6 answers

Increase PHP-FPM's max upload/post size

I'm running php5-fpm under Nginx on Ubuntu 14.04. I want to increase the max upload size. I have edited my /etc/php5/fpm/php.ini to have the following lines defined as below: upload_max_filesize = 20M post_max_size = 25M and I restarted php5-fpm…
harryg
  • 921
44
votes
1 answer

unable to write to mount point (nfs-server), getting "Permission denied"

I'm trying to configure NFS between two RHEL7 nodes: first node: [root@ip-10-164-175-246 ~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.0 (Maipo) [root@ip-10-164-175-246 ~]# rpm -q…
alexus
  • 13,374
44
votes
1 answer

Apache is OK, but what is this in error.log - [mpm_prefork:notice]?

My apache server is running OK without any problems. It also doesn't issue any warning during restart. However, if I examine error.log I can see the following lines repeating from time to time: [Wed Jun 25 18:15:56.295408 2014] [mpm_prefork:notice]…
44
votes
5 answers

What is a T1 in modern terms?

I often hear this term used "We have a T1"... used on SF and other sites. I googled it and it seems like an ancient technology possibly related to frame relay but I'm not sure. Maybe things have changed and the term means different things…
hookenz
  • 14,602
  • 23
  • 91
  • 145
1 2 3
99
100