The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    150
    Likes Received:
    0
    Trophy Points:
    16
    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:
    150
    Likes Received:
    0
    Trophy Points:
    16
    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...
Similar Threads - Restart Aapche (JSON
  1. dazeck
    Replies:
    10
    Views:
    289

Share This Page