server - Authentication error while restarting apache - Ask Ubuntu


i'm connecting cloud server (ovh) using ssh key , i'm trying restart apache , gets error:

ubuntu@server-1:~$ service apache2 reload  ==== authenticating org.freedesktop.systemd1.manage-units === authentication required reload 'apache2.service'. authenticating as: ubuntu (ubuntu) password:  polkit-agent-helper-1: pam_authenticate failed: authentication failure ==== authentication failed === failed reload apache2.service: access denied see system logs , 'systemctl status apache2.service' details. 

how solve it?

you must run command using sudo follow:

sudo service apache2 reload 

update:
if have sudo: unable resolve host server-1 problem, need fix hostname through /etc/hostname , /etc/hosts , reboot linux machine take affect. retry above command again.
more details problem: error message when run sudo: unable resolve host (none)


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User

sql server - "Configuration file does not exist", Event ID 274 - Super User