Month: September 2016

Switch PHP version on Ubuntu Server

Here is an example tho to switch from php5.6 to php7.1 just run the following command:

Determining your internal and external IP

Commands to find out your external IP:

My favorite one as it returns the following format:
“ip”: “”,
“hostname”: “”,
“city”: “Mountain View”,
“region”: “CA”,
“country”: “US”,
“loc”: “37.4192,-122.0574”,
“org”: “Google Inc.”,
“postal”: “94043”

You can get the same result using curl.

The following command returns the internal IP: