ItSolutionStuff.com

Ubuntu Apache Error: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1

By Hardik Savani • May 1, 2024
Ubuntu

Today, I will let you know example of apache2: could not reliably determine the server's fully qualified domain name. I’m going to show you about using 127.0.1.1. set the 'servername' ubuntu 21. We will look at example of apache2: could not reliably determine the server's fully qualified domain name. I explained simply step by step using 127.0.1.1. set the 'servername' dir.

A Few days ago i installed apache2 in my ubuntu 21. I simply restart apache using apache command then i found following error:

"apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName'"

If you want to resolve that issue then follow below commands:

First, you have to open "apache2.conf" and add "ServerName localhost" line in bottom. so let's open file by bellow command:

sudo nano /etc/apache2/apache2.conf

Add below line on that file:

ServerName localhost

Now, just reload apache2.

sudo systemctl reload apache2

Now, It will works.

I hope it can help you...

Hardik Savani

Hardik Savani

I'm a full-stack developer, entrepreneur, and founder of ItSolutionStuff.com. Passionate about PHP, Laravel, JavaScript, and helping developers grow.

šŸ“ŗ Subscribe on YouTube

We Are Recommending You

ā˜…

How to Whitelist/Allow IP Address in Apache Ubuntu?

Read Now →
ā˜…

How to Restrict/Block IP Address in Apache Ubuntu?

Read Now →
ā˜…

How to Install Laravel in Ubuntu Server?

Read Now →
ā˜…

How to Set Up Password Authentication with Apache in Ubuntu?

Read Now →
ā˜…

How to Install Apache PHP MySQL and Phpmyadmin on Ubuntu?

Read Now →
ā˜…

How to Install Apache Web Server on Ubuntu Server?

Read Now →
ā˜…

Apache Reverse Proxy with Authentication Example

Read Now →
ā˜…

How to Enable Apache mod_rewrite Module in Ubuntu?

Read Now →
ā˜…

How to create quick apache virtual host in Ubuntu?

Read Now →
ā˜…

How to create virtual host in ubuntu apache?

Read Now →