Apache2 does not reload/restart (org.freedesktop.PolicyKit1 error)Apache not able to restartapache2 restart...

Subsurf on a crown. How can I smooth some edges and keep others sharp?

Crack the bank account's password!

Concatenating two int[]

Not a Long-Winded Riddle

Critique vs nitpicking

How to create a label containing values from different layers in QGIS

How to politely refuse in-office gym instructor for steroids and protein

Does the US government have any planning in place to ensure there's no shortages of food, fuel, steel and other commodities?

Stuck on a Geometry Puzzle

Broad Strokes - missing letter riddle

Is there any advantage in specifying './' in a for loop using a glob?

Boss asked me to sign a resignation paper without a date on it along with my new contract

Cat is tipping over bed-side lamps during the night

A starship is travelling at 0.9c and collides with a small rock. Will it leave a clean hole through, or will more happen?

How much light is too much?

What is the industry term for house wiring diagrams?

How big is a framed opening for a door relative to the finished door opening width?

Count repetitions of an array

How vim overwrites readonly mode?

Website seeing my Facebook data?

Plausible reason for gold-digging ant

Equivalent of "illegal" for violating civil law

Does it take energy to move something in a circle?

Will rerolling initiative each round stop meta-gaming about initiative?



Apache2 does not reload/restart (org.freedesktop.PolicyKit1 error)


Apache not able to restartapache2 restart problemUnable to access remotely (LAMP issue)error after restart apache2Apache, problem Failed to start LSB: Apache2 web serverApache2 does not restart after enabling rewriteUnable to install docker - invoke-rc.d: initscript docker, action “start” failedWhat is PAM and why does AWS enable it by default?Apache2 error on restart commandservices failing to start - control process exited with error codeUbuntu 18.04 Error with apache2













8















The error which is showing is:



Failed to reload apache2.service: The name org.freedesktop.PolicyKit1 was not provided by 
any .service files See system logs and 'systemctl status apache2.service' for details.


I have run the following two commands, and here are the logs returned, respectively:



systemctl status apache2.service
journalctl -xe


Logs:



systemctl status apache2.service



● apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: active (running) since Tue 2017-02-21 18:41:29 IST; 33min ago
Docs: man:systemd-sysv-generator(8)
Process: 14374 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS
Process: 14396 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCE
CGroup: /system.slice/apache2.service
├─14414 /usr/sbin/apache2 -k start
├─14417 /usr/sbin/apache2 -k start
└─14418 /usr/sbin/apache2 -k start


journalctl -xe



-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit apache2.service has begun starting up.
Feb 21 18:41:28 oxygen apache2[14396]: * Starting Apache httpd web server apache2
Feb 21 18:41:28 oxygen apache2[14396]: [Tue Feb 21 18:41:28.950705 2017] [core:error] [pid 14413:tid 140406115329920] (EAI 2)Name or service not known: AH00547: Could n
Feb 21 18:41:28 oxygen apache2[14396]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 45.56.70.225. Set the 'ServerName'
Feb 21 18:41:29 oxygen apache2[14396]: *
Feb 21 18:41:29 oxygen systemd[1]: Started LSB: Apache2 web server.
-- Subject: Unit apache2.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit apache2.service has finished starting up.
--
-- The start-up result is done.
Feb 21 18:41:48 oxygen sudo[14475]: root : TTY=pts/1 ; PWD=/root ; USER=root ; COMMAND=/usr/sbin/a2ensite indiairapp.com.cong
Feb 21 18:41:48 oxygen sudo[14475]: pam_unix(sudo:session): session opened for user root by root(uid=0)
Feb 21 18:41:48 oxygen sudo[14475]: pam_unix(sudo:session): session closed for user root
Feb 21 18:41:51 oxygen sudo[14480]: root : TTY=pts/1 ; PWD=/root ; USER=root ; COMMAND=/usr/sbin/a2ensite indiairapp.com.conf
Feb 21 18:41:51 oxygen sudo[14480]: pam_unix(sudo:session): session opened for user root by root(uid=0)
Feb 21 18:41:51 oxygen sudo[14480]: pam_unix(sudo:session): session closed for user root
Feb 21 18:45:01 oxygen CRON[14492]: pam_unix(cron:session): session opened for user root by (uid=0)
Feb 21 18:45:01 oxygen CRON[14493]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Feb 21 18:45:01 oxygen CRON[14492]: pam_unix(cron:session): session closed for user root
Feb 21 18:47:01 oxygen CRON[14495]: pam_unix(cron:session): session opened for user root by (uid=0)
Feb 21 18:47:01 oxygen CRON[14496]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Feb 21 18:47:01 oxygen CRON[14495]: pam_unix(cron:session): session closed for user root
Feb 21 18:55:01 oxygen CRON[14498]: pam_unix(cron:session): session opened for user root by (uid=0)
Feb 21 18:55:01 oxygen CRON[14499]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Feb 21 18:55:01 oxygen CRON[14498]: pam_unix(cron:session): session closed for user root
Feb 21 18:58:59 oxygen sudo[14518]: nauman3 : TTY=pts/3 ; PWD=/etc/apache2/sites-available ; USER=root ; COMMAND=/bin/nano /etc/apache2/sites-available/indiairapp.conf
Feb 21 18:58:59 oxygen sudo[14518]: pam_unix(sudo:session): session opened for user root by nauman3(uid=0)
Feb 21 19:00:45 oxygen sudo[14518]: pam_unix(sudo:session): session closed for user root
Feb 21 19:00:49 oxygen sudo[14520]: nauman3 : TTY=pts/3 ; PWD=/etc/apache2/sites-available ; USER=root ; COMMAND=/usr/sbin/a2ensite indiairapp.conf
Feb 21 19:00:49 oxygen sudo[14520]: pam_unix(sudo:session): session opened for user root by nauman3(uid=0)
Feb 21 19:00:49 oxygen sudo[14520]: pam_unix(sudo:session): session closed for user root
Feb 21 19:05:01 oxygen CRON[14534]: pam_unix(cron:session): session opened for user root by (uid=0)
Feb 21 19:05:01 oxygen CRON[14535]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Feb 21 19:05:01 oxygen CRON[14534]: pam_unix(cron:session): session closed for user root
Feb 21 19:15:01 oxygen CRON[14547]: pam_unix(cron:session): session opened for user root by (uid=0)
Feb 21 19:15:01 oxygen CRON[14548]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Feb 21 19:15:01 oxygen CRON[14547]: pam_unix(cron:session): session closed for user root









share|improve this question





























    8















    The error which is showing is:



    Failed to reload apache2.service: The name org.freedesktop.PolicyKit1 was not provided by 
    any .service files See system logs and 'systemctl status apache2.service' for details.


    I have run the following two commands, and here are the logs returned, respectively:



    systemctl status apache2.service
    journalctl -xe


    Logs:



    systemctl status apache2.service



    ● apache2.service - LSB: Apache2 web server
    Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
    Drop-In: /lib/systemd/system/apache2.service.d
    └─apache2-systemd.conf
    Active: active (running) since Tue 2017-02-21 18:41:29 IST; 33min ago
    Docs: man:systemd-sysv-generator(8)
    Process: 14374 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS
    Process: 14396 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCE
    CGroup: /system.slice/apache2.service
    ├─14414 /usr/sbin/apache2 -k start
    ├─14417 /usr/sbin/apache2 -k start
    └─14418 /usr/sbin/apache2 -k start


    journalctl -xe



    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit apache2.service has begun starting up.
    Feb 21 18:41:28 oxygen apache2[14396]: * Starting Apache httpd web server apache2
    Feb 21 18:41:28 oxygen apache2[14396]: [Tue Feb 21 18:41:28.950705 2017] [core:error] [pid 14413:tid 140406115329920] (EAI 2)Name or service not known: AH00547: Could n
    Feb 21 18:41:28 oxygen apache2[14396]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 45.56.70.225. Set the 'ServerName'
    Feb 21 18:41:29 oxygen apache2[14396]: *
    Feb 21 18:41:29 oxygen systemd[1]: Started LSB: Apache2 web server.
    -- Subject: Unit apache2.service has finished start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit apache2.service has finished starting up.
    --
    -- The start-up result is done.
    Feb 21 18:41:48 oxygen sudo[14475]: root : TTY=pts/1 ; PWD=/root ; USER=root ; COMMAND=/usr/sbin/a2ensite indiairapp.com.cong
    Feb 21 18:41:48 oxygen sudo[14475]: pam_unix(sudo:session): session opened for user root by root(uid=0)
    Feb 21 18:41:48 oxygen sudo[14475]: pam_unix(sudo:session): session closed for user root
    Feb 21 18:41:51 oxygen sudo[14480]: root : TTY=pts/1 ; PWD=/root ; USER=root ; COMMAND=/usr/sbin/a2ensite indiairapp.com.conf
    Feb 21 18:41:51 oxygen sudo[14480]: pam_unix(sudo:session): session opened for user root by root(uid=0)
    Feb 21 18:41:51 oxygen sudo[14480]: pam_unix(sudo:session): session closed for user root
    Feb 21 18:45:01 oxygen CRON[14492]: pam_unix(cron:session): session opened for user root by (uid=0)
    Feb 21 18:45:01 oxygen CRON[14493]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
    Feb 21 18:45:01 oxygen CRON[14492]: pam_unix(cron:session): session closed for user root
    Feb 21 18:47:01 oxygen CRON[14495]: pam_unix(cron:session): session opened for user root by (uid=0)
    Feb 21 18:47:01 oxygen CRON[14496]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
    Feb 21 18:47:01 oxygen CRON[14495]: pam_unix(cron:session): session closed for user root
    Feb 21 18:55:01 oxygen CRON[14498]: pam_unix(cron:session): session opened for user root by (uid=0)
    Feb 21 18:55:01 oxygen CRON[14499]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
    Feb 21 18:55:01 oxygen CRON[14498]: pam_unix(cron:session): session closed for user root
    Feb 21 18:58:59 oxygen sudo[14518]: nauman3 : TTY=pts/3 ; PWD=/etc/apache2/sites-available ; USER=root ; COMMAND=/bin/nano /etc/apache2/sites-available/indiairapp.conf
    Feb 21 18:58:59 oxygen sudo[14518]: pam_unix(sudo:session): session opened for user root by nauman3(uid=0)
    Feb 21 19:00:45 oxygen sudo[14518]: pam_unix(sudo:session): session closed for user root
    Feb 21 19:00:49 oxygen sudo[14520]: nauman3 : TTY=pts/3 ; PWD=/etc/apache2/sites-available ; USER=root ; COMMAND=/usr/sbin/a2ensite indiairapp.conf
    Feb 21 19:00:49 oxygen sudo[14520]: pam_unix(sudo:session): session opened for user root by nauman3(uid=0)
    Feb 21 19:00:49 oxygen sudo[14520]: pam_unix(sudo:session): session closed for user root
    Feb 21 19:05:01 oxygen CRON[14534]: pam_unix(cron:session): session opened for user root by (uid=0)
    Feb 21 19:05:01 oxygen CRON[14535]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
    Feb 21 19:05:01 oxygen CRON[14534]: pam_unix(cron:session): session closed for user root
    Feb 21 19:15:01 oxygen CRON[14547]: pam_unix(cron:session): session opened for user root by (uid=0)
    Feb 21 19:15:01 oxygen CRON[14548]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
    Feb 21 19:15:01 oxygen CRON[14547]: pam_unix(cron:session): session closed for user root









    share|improve this question



























      8












      8








      8








      The error which is showing is:



      Failed to reload apache2.service: The name org.freedesktop.PolicyKit1 was not provided by 
      any .service files See system logs and 'systemctl status apache2.service' for details.


      I have run the following two commands, and here are the logs returned, respectively:



      systemctl status apache2.service
      journalctl -xe


      Logs:



      systemctl status apache2.service



      ● apache2.service - LSB: Apache2 web server
      Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
      Drop-In: /lib/systemd/system/apache2.service.d
      └─apache2-systemd.conf
      Active: active (running) since Tue 2017-02-21 18:41:29 IST; 33min ago
      Docs: man:systemd-sysv-generator(8)
      Process: 14374 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS
      Process: 14396 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCE
      CGroup: /system.slice/apache2.service
      ├─14414 /usr/sbin/apache2 -k start
      ├─14417 /usr/sbin/apache2 -k start
      └─14418 /usr/sbin/apache2 -k start


      journalctl -xe



      -- Defined-By: systemd
      -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
      --
      -- Unit apache2.service has begun starting up.
      Feb 21 18:41:28 oxygen apache2[14396]: * Starting Apache httpd web server apache2
      Feb 21 18:41:28 oxygen apache2[14396]: [Tue Feb 21 18:41:28.950705 2017] [core:error] [pid 14413:tid 140406115329920] (EAI 2)Name or service not known: AH00547: Could n
      Feb 21 18:41:28 oxygen apache2[14396]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 45.56.70.225. Set the 'ServerName'
      Feb 21 18:41:29 oxygen apache2[14396]: *
      Feb 21 18:41:29 oxygen systemd[1]: Started LSB: Apache2 web server.
      -- Subject: Unit apache2.service has finished start-up
      -- Defined-By: systemd
      -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
      --
      -- Unit apache2.service has finished starting up.
      --
      -- The start-up result is done.
      Feb 21 18:41:48 oxygen sudo[14475]: root : TTY=pts/1 ; PWD=/root ; USER=root ; COMMAND=/usr/sbin/a2ensite indiairapp.com.cong
      Feb 21 18:41:48 oxygen sudo[14475]: pam_unix(sudo:session): session opened for user root by root(uid=0)
      Feb 21 18:41:48 oxygen sudo[14475]: pam_unix(sudo:session): session closed for user root
      Feb 21 18:41:51 oxygen sudo[14480]: root : TTY=pts/1 ; PWD=/root ; USER=root ; COMMAND=/usr/sbin/a2ensite indiairapp.com.conf
      Feb 21 18:41:51 oxygen sudo[14480]: pam_unix(sudo:session): session opened for user root by root(uid=0)
      Feb 21 18:41:51 oxygen sudo[14480]: pam_unix(sudo:session): session closed for user root
      Feb 21 18:45:01 oxygen CRON[14492]: pam_unix(cron:session): session opened for user root by (uid=0)
      Feb 21 18:45:01 oxygen CRON[14493]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
      Feb 21 18:45:01 oxygen CRON[14492]: pam_unix(cron:session): session closed for user root
      Feb 21 18:47:01 oxygen CRON[14495]: pam_unix(cron:session): session opened for user root by (uid=0)
      Feb 21 18:47:01 oxygen CRON[14496]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
      Feb 21 18:47:01 oxygen CRON[14495]: pam_unix(cron:session): session closed for user root
      Feb 21 18:55:01 oxygen CRON[14498]: pam_unix(cron:session): session opened for user root by (uid=0)
      Feb 21 18:55:01 oxygen CRON[14499]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
      Feb 21 18:55:01 oxygen CRON[14498]: pam_unix(cron:session): session closed for user root
      Feb 21 18:58:59 oxygen sudo[14518]: nauman3 : TTY=pts/3 ; PWD=/etc/apache2/sites-available ; USER=root ; COMMAND=/bin/nano /etc/apache2/sites-available/indiairapp.conf
      Feb 21 18:58:59 oxygen sudo[14518]: pam_unix(sudo:session): session opened for user root by nauman3(uid=0)
      Feb 21 19:00:45 oxygen sudo[14518]: pam_unix(sudo:session): session closed for user root
      Feb 21 19:00:49 oxygen sudo[14520]: nauman3 : TTY=pts/3 ; PWD=/etc/apache2/sites-available ; USER=root ; COMMAND=/usr/sbin/a2ensite indiairapp.conf
      Feb 21 19:00:49 oxygen sudo[14520]: pam_unix(sudo:session): session opened for user root by nauman3(uid=0)
      Feb 21 19:00:49 oxygen sudo[14520]: pam_unix(sudo:session): session closed for user root
      Feb 21 19:05:01 oxygen CRON[14534]: pam_unix(cron:session): session opened for user root by (uid=0)
      Feb 21 19:05:01 oxygen CRON[14535]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
      Feb 21 19:05:01 oxygen CRON[14534]: pam_unix(cron:session): session closed for user root
      Feb 21 19:15:01 oxygen CRON[14547]: pam_unix(cron:session): session opened for user root by (uid=0)
      Feb 21 19:15:01 oxygen CRON[14548]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
      Feb 21 19:15:01 oxygen CRON[14547]: pam_unix(cron:session): session closed for user root









      share|improve this question
















      The error which is showing is:



      Failed to reload apache2.service: The name org.freedesktop.PolicyKit1 was not provided by 
      any .service files See system logs and 'systemctl status apache2.service' for details.


      I have run the following two commands, and here are the logs returned, respectively:



      systemctl status apache2.service
      journalctl -xe


      Logs:



      systemctl status apache2.service



      ● apache2.service - LSB: Apache2 web server
      Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
      Drop-In: /lib/systemd/system/apache2.service.d
      └─apache2-systemd.conf
      Active: active (running) since Tue 2017-02-21 18:41:29 IST; 33min ago
      Docs: man:systemd-sysv-generator(8)
      Process: 14374 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS
      Process: 14396 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCE
      CGroup: /system.slice/apache2.service
      ├─14414 /usr/sbin/apache2 -k start
      ├─14417 /usr/sbin/apache2 -k start
      └─14418 /usr/sbin/apache2 -k start


      journalctl -xe



      -- Defined-By: systemd
      -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
      --
      -- Unit apache2.service has begun starting up.
      Feb 21 18:41:28 oxygen apache2[14396]: * Starting Apache httpd web server apache2
      Feb 21 18:41:28 oxygen apache2[14396]: [Tue Feb 21 18:41:28.950705 2017] [core:error] [pid 14413:tid 140406115329920] (EAI 2)Name or service not known: AH00547: Could n
      Feb 21 18:41:28 oxygen apache2[14396]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 45.56.70.225. Set the 'ServerName'
      Feb 21 18:41:29 oxygen apache2[14396]: *
      Feb 21 18:41:29 oxygen systemd[1]: Started LSB: Apache2 web server.
      -- Subject: Unit apache2.service has finished start-up
      -- Defined-By: systemd
      -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
      --
      -- Unit apache2.service has finished starting up.
      --
      -- The start-up result is done.
      Feb 21 18:41:48 oxygen sudo[14475]: root : TTY=pts/1 ; PWD=/root ; USER=root ; COMMAND=/usr/sbin/a2ensite indiairapp.com.cong
      Feb 21 18:41:48 oxygen sudo[14475]: pam_unix(sudo:session): session opened for user root by root(uid=0)
      Feb 21 18:41:48 oxygen sudo[14475]: pam_unix(sudo:session): session closed for user root
      Feb 21 18:41:51 oxygen sudo[14480]: root : TTY=pts/1 ; PWD=/root ; USER=root ; COMMAND=/usr/sbin/a2ensite indiairapp.com.conf
      Feb 21 18:41:51 oxygen sudo[14480]: pam_unix(sudo:session): session opened for user root by root(uid=0)
      Feb 21 18:41:51 oxygen sudo[14480]: pam_unix(sudo:session): session closed for user root
      Feb 21 18:45:01 oxygen CRON[14492]: pam_unix(cron:session): session opened for user root by (uid=0)
      Feb 21 18:45:01 oxygen CRON[14493]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
      Feb 21 18:45:01 oxygen CRON[14492]: pam_unix(cron:session): session closed for user root
      Feb 21 18:47:01 oxygen CRON[14495]: pam_unix(cron:session): session opened for user root by (uid=0)
      Feb 21 18:47:01 oxygen CRON[14496]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
      Feb 21 18:47:01 oxygen CRON[14495]: pam_unix(cron:session): session closed for user root
      Feb 21 18:55:01 oxygen CRON[14498]: pam_unix(cron:session): session opened for user root by (uid=0)
      Feb 21 18:55:01 oxygen CRON[14499]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
      Feb 21 18:55:01 oxygen CRON[14498]: pam_unix(cron:session): session closed for user root
      Feb 21 18:58:59 oxygen sudo[14518]: nauman3 : TTY=pts/3 ; PWD=/etc/apache2/sites-available ; USER=root ; COMMAND=/bin/nano /etc/apache2/sites-available/indiairapp.conf
      Feb 21 18:58:59 oxygen sudo[14518]: pam_unix(sudo:session): session opened for user root by nauman3(uid=0)
      Feb 21 19:00:45 oxygen sudo[14518]: pam_unix(sudo:session): session closed for user root
      Feb 21 19:00:49 oxygen sudo[14520]: nauman3 : TTY=pts/3 ; PWD=/etc/apache2/sites-available ; USER=root ; COMMAND=/usr/sbin/a2ensite indiairapp.conf
      Feb 21 19:00:49 oxygen sudo[14520]: pam_unix(sudo:session): session opened for user root by nauman3(uid=0)
      Feb 21 19:00:49 oxygen sudo[14520]: pam_unix(sudo:session): session closed for user root
      Feb 21 19:05:01 oxygen CRON[14534]: pam_unix(cron:session): session opened for user root by (uid=0)
      Feb 21 19:05:01 oxygen CRON[14535]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
      Feb 21 19:05:01 oxygen CRON[14534]: pam_unix(cron:session): session closed for user root
      Feb 21 19:15:01 oxygen CRON[14547]: pam_unix(cron:session): session opened for user root by (uid=0)
      Feb 21 19:15:01 oxygen CRON[14548]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
      Feb 21 19:15:01 oxygen CRON[14547]: pam_unix(cron:session): session closed for user root






      server apache2






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 21 '17 at 14:00









      muru

      1




      1










      asked Feb 21 '17 at 13:51









      Nauman CrescendoNauman Crescendo

      41113




      41113






















          2 Answers
          2






          active

          oldest

          votes


















          14














          It's a permission issue with the apache server the systemctl command should be run with root privileges:



          sudo systemctl reload apache2





          share|improve this answer































            0














            Try




            sudo apache2ctl configtest




            This should give you a better idea of the current issues.



            (Possibly related: Apache not able to restart)






            share|improve this answer








            New contributor




            Jack Frost is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.




















              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "89"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f885771%2fapache2-does-not-reload-restart-org-freedesktop-policykit1-error%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              14














              It's a permission issue with the apache server the systemctl command should be run with root privileges:



              sudo systemctl reload apache2





              share|improve this answer




























                14














                It's a permission issue with the apache server the systemctl command should be run with root privileges:



                sudo systemctl reload apache2





                share|improve this answer


























                  14












                  14








                  14







                  It's a permission issue with the apache server the systemctl command should be run with root privileges:



                  sudo systemctl reload apache2





                  share|improve this answer













                  It's a permission issue with the apache server the systemctl command should be run with root privileges:



                  sudo systemctl reload apache2






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Feb 23 '17 at 18:00









                  George UdosenGeorge Udosen

                  21.2k94570




                  21.2k94570

























                      0














                      Try




                      sudo apache2ctl configtest




                      This should give you a better idea of the current issues.



                      (Possibly related: Apache not able to restart)






                      share|improve this answer








                      New contributor




                      Jack Frost is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                      Check out our Code of Conduct.

























                        0














                        Try




                        sudo apache2ctl configtest




                        This should give you a better idea of the current issues.



                        (Possibly related: Apache not able to restart)






                        share|improve this answer








                        New contributor




                        Jack Frost is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                        Check out our Code of Conduct.























                          0












                          0








                          0







                          Try




                          sudo apache2ctl configtest




                          This should give you a better idea of the current issues.



                          (Possibly related: Apache not able to restart)






                          share|improve this answer








                          New contributor




                          Jack Frost is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.










                          Try




                          sudo apache2ctl configtest




                          This should give you a better idea of the current issues.



                          (Possibly related: Apache not able to restart)







                          share|improve this answer








                          New contributor




                          Jack Frost is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.









                          share|improve this answer



                          share|improve this answer






                          New contributor




                          Jack Frost is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.









                          answered 5 hours ago









                          Jack FrostJack Frost

                          11




                          11




                          New contributor




                          Jack Frost is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.





                          New contributor





                          Jack Frost is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.






                          Jack Frost is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Ask Ubuntu!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f885771%2fapache2-does-not-reload-restart-org-freedesktop-policykit1-error%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Why do type traits not work with types in namespace scope?What are POD types in C++?Why can templates only be...

                              Will tsunami waves travel forever if there was no land?Why do tsunami waves begin with the water flowing away...

                              Simple Scan not detecting my scanner (Brother DCP-7055W)Brother MFC-L2700DW printer can print, can't...