Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Jul 2004
    Posts
    7

    Default Remote Account Creation With PHP

    I have no access to the '/usr/local/cpanel/Cpanel/Accounting.php.inc' file... I actually want to develope a PHP script to remote add accounts. It seems that all the docs assume that you have root access to the server (which I don't) or at best are going to be using that server to host the script to auto create the account. I have two servers...

    ServerOne :
    - all my user accounts
    - cpanel access
    - no root access
    - webserver
    - email server

    ServerTwo :
    - root access
    - webserver

    I would like to take ServerTwo and have a script for users to sign up on it. Then that script send the account creation request to ServerOne (with the encription key) and let my user create the account basicly.. All they would choose is there username and pass.. if its not taken then I would create the account etc..

    Any ideas how I might go about this? I have sceen the 'Accounting.php.inc' file and have it.. But it references other files on the server in that area ofcorse.. makeing the script useless.. for example..
    '$result = whmreq("/scripts/remote_suspend?user=${suspenduser}",$host,$user,$accesshash,$usessl);'

    Thanks,
    Armega

  2. #2
    Member
    Join Date
    Oct 2003
    Posts
    1,020

    Default

    Are you a reseller on Server One?

  3. #3
    Member
    Join Date
    Jul 2004
    Posts
    7

    Default

    yes I am

  4. #4
    Member
    Join Date
    Feb 2004
    Posts
    329

    Default

    Go into your WHM on the server and to the account creation form and look at where the form will post to. Substitute those for the variable in the script you've started and that should work. You must have the outbound port open on the sending server, for the request to be processed in the receiving server.

  5. #5
    Member
    Join Date
    Jul 2004
    Posts
    7

    Default

    The form had the following action: <form action="/scripts/wwwacct" name="mainform">


    How can I use this to do any kind of remote administration????

    Thanks in advance

Similar Threads & Tags
Similar threads

  1. Replies: 0
    Last Post: 05-29-2006, 11:57 AM
  2. account creation, remote access PHP, catching errors
    By JamieD in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 01-21-2005, 05:59 AM
  3. Remote Account Creation
    By thekidscareya in forum cPanel and WHM Discussions
    Replies: 12
    Last Post: 11-15-2004, 08:28 PM
  4. It's possible creation of subdomain via remote access PHP
    By bunnitao in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-14-2004, 07:18 AM
  5. PHP Remote Account Creation Script
    By cybercom in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 06-04-2003, 08:12 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube