Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
ThomasPrz
Posts: 16 Joined: Fri Jul 06, 2018 5:46 am
Post
by ThomasPrz » Fri Aug 24, 2018 12:37 pm
Thanks a lot to help me bro ...
I have now this problem
Failed to start apache2.service: The name org.freedesktop.PolicyKit1 was not pro vided by any .service files
See system logs and 'systemctl status apache2.service' for details.
And details :
Code: Select all
inzeR@nagios:~$ systemctl status apache2.service
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2018-08-24 08:34:20 UTC; 9h ago
Process: 452 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
Main PID: 505 (apache2)
Tasks: 6 (limit: 19660)
CGroup: /system.slice/apache2.service
├─505 /usr/sbin/apache2 -k start
├─596 /usr/sbin/apache2 -k start
├─597 /usr/sbin/apache2 -k start
├─598 /usr/sbin/apache2 -k start
├─599 /usr/sbin/apache2 -k start
└─600 /usr/sbin/apache2 -k start
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Fri Aug 24, 2018 12:40 pm
this looks like it is already running, maybe it just needs to be re-started?
Code: Select all
sudo systemctl restart apache2.service
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Fri Aug 24, 2018 12:41 pm
be sure to use sudo at the beginning of the command
ThomasPrz
Posts: 16 Joined: Fri Jul 06, 2018 5:46 am
Post
by ThomasPrz » Mon Aug 27, 2018 3:34 am
Thanks , there isn't error message with sudo systemctl start apache2.service now , but i always cannot access with web interface
I don't understand why , it's very strange , i'm tried to change different elements in sites-available and sites-enabled but doesn't works ...
Thanks a lot
Attachments
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Mon Aug 27, 2018 8:00 am
You are getting a timed out error, which could be a firewall issue, is port 80 open?
Also are their any errors in the apache error log?
Code: Select all
tail -50 /var/log/apache2/error.log
ThomasPrz
Posts: 16 Joined: Fri Jul 06, 2018 5:46 am
Post
by ThomasPrz » Mon Aug 27, 2018 9:49 am
A lot of error message when i launch tail -50 /var/log/apache2/error.log
Attachments
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Mon Aug 27, 2018 9:51 am
Actually those are not error messages, those are just notices from when you restarted apache2
ThomasPrz
Posts: 16 Joined: Fri Jul 06, 2018 5:46 am
Post
by ThomasPrz » Mon Aug 27, 2018 9:58 am
The port 80 is already open so i don't think the probleme comes from there
Attachments
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Mon Aug 27, 2018 10:38 am
Are you sure you have the correct IP? According to the last image your server is on 10.0.0.4 but you are connecting to 40.114.210.46
ThomasPrz
Posts: 16 Joined: Fri Jul 06, 2018 5:46 am
Post
by ThomasPrz » Mon Aug 27, 2018 12:06 pm
Yeah of course , i rent this server on Microsoft Azure and they give me this IP address , the VM is automatically config so for sur that's good