How to remove annoying message on Digital Ocean SSD Hosting after droplet creation

The problem. Annoying message every time you are logging in πŸ™‚

* Documentation:Β  https://help.ubuntu.com/
————————————————————————————-
To finish installing WordPress, navigate to your droplet’s IP: http://xxx.xxx.xxx.xxx
Make sure to specify hostname from DO panel to your droplet before creating it (for example: ‘blog.mydomain.com’ or ‘myblog.com’)
This will create necessary Apache configs based on hostname and Apache will respond based on hostname.
Server will also respond to its IP address, so if you finish installation from http://IP then
you will need to change hostname from WordPress Settings later (from http://IP to http://hostname)
————————————————————————————-

Resolution:

You can use the GREP command to search the content in your files on your system.

-r recursive

-n line number

-w whole word matching

root@amios# grep -rnw /etc/ -e ‘To finish installing WordPress,’

That is the puppy!

File /etc/motd – Line no 2 πŸ˜‰
/etc/motd.tail:2:To finish installing WordPress, navigate to your droplet’s IP

Interested in buying this hosting ?

You can sing up here.

How to fix “Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName” on Ubuntu Linux

apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
The easier way to fix it is by typing this command:

What it does it created the files called ‘fqdn’ fully qualified domain name and this will fix this error πŸ™‚

root@amios:/# touch /etc/apache2/conf.d/fqdn | echo “ServerName localhost” >> /etc/apache2/conf.d/fqdn

If you want to fix more problems with your apache this is where you can find the logs.

In this way you can find apache logs files. Where they are ? Here πŸ™‚

# grep ErrorLog /usr/local/etc/apache22/httpd.conf
# grep ErrorLog /etc/apache2/apache2.conf
# grep ErrorLog /etc/httpd/conf/httpd.conf

grep: /etc/httpd/conf/httpd.conf: No such file or directory

grep: /usr/local/etc/apache22/httpd.conf: No such file or directory

grep ErrorLog /etc/apache2/apache2.conf
# ErrorLog: The location of the error log file.

For Ubuntu 14+ to the below.

Use a text editor such as “sudo nano” at the command line or “gksudo gedit” on the desktop to create a new file,

$ sudo nano /etc/apache2/conf-available/fqdn.conf

or

$ gksu “gedit /etc/apache2/conf-available/fqdn.conf”

then add

ServerName localhost

to the file, save it, and enable your new configuration file by running the command below.

sudo a2enconf fqdn

This can all be done in a single command with the following:

$ echo “ServerName localhost” | sudo tee /etc/apache2/conf-available/fqdn.conf && sudo a2enconf fqdn