I'm trying to restart apache2 using this command:
sudo service apache2 restart
or
sudo /etc/init.d/apache2 restart
But get below error:
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1.
So, how to fix this problem?
Edit file apache2.conf from directory /etc/apache2/ by use this following command:
nano /etc/apache2/apache2.conf
Add the following syntax in the last row of apache2.conf file:
ServerName localhost
So that error doesn't disappear.
thanks,
ReplyDeleteHakim
Works like a charm. Thank you
ReplyDeleteObrigado
ReplyDeleteworks great, thanks!
ReplyDeleteMuchísimas gracias me sirvio
ReplyDeleteThanks. It worked
ReplyDeleteThank you so much man!!
ReplyDelete/etc/apache2/
ReplyDelete# |-- apache2.conf
# | `-- ports.conf
# |-- mods-enabled
# | |-- *.load
# | `-- *.conf
# |-- conf-enabled
# | `-- *.conf
# `-- sites-enabled
# `-- *.conf
where to add ServerName localhost?
/etc/apache2/
# |-- apache2.conf ServerName localhost
# | `-- ports.conf
# |-- mods-enabled
# | |-- *.load
# | `-- *.conf
# |-- conf-enabled
# | `-- *.conf
# `-- sites-enabled
# `-- *.conf
Works, thanks
ReplyDeletethank you very much!
ReplyDeletementira
ReplyDeleteamazing
ReplyDeletethanks !
ReplyDeleteA_marucevich
That worked! Thank you!
ReplyDeletethanx ...simply explained.
ReplyDeletePerfect work... thank... :D
ReplyDeleteSi funciona&
ReplyDeleteGracias
Thankyou!!!!!
ReplyDeleteit work for me, thank
ReplyDelete/etc/apache2/
ReplyDelete# |-- apache2.conf
# | `-- ports.conf
# |-- mods-enabled
# | |-- *.load
# | `-- *.conf
# |-- conf-enabled
# | `-- *.conf
# `-- sites-enabled
# `-- *.conf
where to add ServerName localhost?
/etc/apache2/
# |-- apache2.conf ServerName localhost
# | `-- ports.conf
# |-- mods-enabled
# | |-- *.load
# | `-- *.conf
# |-- conf-enabled
# | `-- *.conf
# `-- sites-enabled
# `-- *.conf
?????????????????????????????????
Its is
ReplyDelete# It is split into serveral files forming the configuration hierarchy outliend
# below, all located in the /etc/apache/ directory;
ServerName zabbix <-- (here is he name your server)
#
# /etc/apache2/
# |-- apache2.conf
# | `-- ports.conf
# |-- mods-enabled
# | |-- *.load
# | `-- *.conf
# |-- conf-enabled
# | `-- *.conf
# `-- sites-enabled
# `-- *.conf
:wq
service apache2 restart
Look, Your have whats modification your table Host
vi /etc/hosts
127.0.0.1 zabbix <--- (here is he name your server)
127.0.1.1 ubuntu
Test
In one Browser
http://zabbix/zabbix
Sucesfull !!
I am from Chile :D
Thanks
ReplyDeleteJuan
Thak U
ReplyDeleteIt really works!!
Thanks!
ReplyDelete