Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

How Restart Aapche? (JSON API say: {"status":0,"Permission Denied"}

Discussion in 'Data Protection' started by 000, Mar 28, 2012.

  1. 000

    000 Well-Known Member

    Joined:
    Jun 3, 2008
    Messages:
    158
    Likes Received:
    0
    Trophy Points:
    66
    Hi.

    My WHM say:

    {"status":0,"statusmsg":"Permission Denied"}

    when I run as NO ROOT.

    If I put ROOT data into API then:

    {"restart":[{"result":1,"service":"httpd","rawout":"Apache successfully restarted.\n","servicename":"Apache Web Server"}]}

    But just I need OTHER user restart Apache.

    How I can ?

    Thanks
     
  2. 000

    000 Well-Known Member

    Joined:
    Jun 3, 2008
    Messages:
    158
    Likes Received:
    0
    Trophy Points:
    66
    Very sample 000.

    Samplely go to

    Main >> Resellers >> Edit reseller privileges & nameservers

    Then give privileges to restart services.

    The best option is JSON API !!!

    I love JSON API...

    :)


    Some aidea about how we can restar from JSON-API but:

    restart GRACEFUL ???
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice