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 to find out if it's possible to add new accounts, programatically?

Discussion in 'General Discussion' started by tomfra, Nov 21, 2006.

  1. tomfra

    tomfra Well-Known Member

    Joined:
    Sep 30, 2002
    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    6
    OK, this may sound odd but let me explain my problem....

    I create new accounts through an external PHP script but it sometimes fails. I've found out that it's not caused by the script itself because, sometimes, it is not possible to add new accounts through WHM either.

    I suppose it's not possible during the VPS backup process or simply when something else goes wrong. Usually, Apache restart does solve this problem.

    The question is: is there a way to check if everything is working as it should and that the server is ready to accept new accounts, from an external script? I can create a "test" new account and then terminate it but that doesn't seem to be the best way in my opinion.

    Any ideas?

    Thanks!

    Tomas
     
  2. SoftDux

    SoftDux Well-Known Member

    Joined:
    May 27, 2006
    Messages:
    983
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Johannesburg, South Africa
    cPanel Access Level:
    Root Administrator
    You actually need to analyze the problem. Why can't you add new accounts at certain times?

    To write a script to see if the server is "ok", one needs to know why it''s not "ok" and then take if from there, or even better try and establish what's blocking you from adding accounts, and try and fix it :)

    hth
     
Loading...

Share This Page