Community Forums
Connect with us on LinkedIn
Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jul 2010
    Posts
    1

    Default cPanel Scripting

    I have a standard process for configuring a new add-on domain. This requires me to through several different cPanel features.

    It would be great if there was some kind of script interface that "users" not "hosts" could use to simplify repetative tasks. For example:

    1. Add New Add-On domain (inc choosing home folder)
    2. Set up standard e-mail addresses
    3. Set up webmaster/noreply forwarders
    4. Copy 'holding page' or 'package' files to the newly craeted home folder
    5. Delete the unecessary FTP account (if required)
    6. Execute shells scripts or be able to run commands like ln,mkdir, and so on

    Ideally this should be run from the browser so the final instruction could be to launch the new web site for installs of CMS's or BB's or even just to prove the install completed.

    Cheers,

    Roy

  2. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by Corneloues View Post
    1. Add New Add-On domain (inc choosing home folder)
    2. Set up standard e-mail addresses
    3. Set up webmaster/noreply forwarders
    4. Copy 'holding page' or 'package' files to the newly craeted home folder
    5. Delete the unecessary FTP account (if required)
    6. Execute shells scripts or be able to run commands like ln,mkdir, and so on
    The unnecessary FTP account refers to the FTP account created as part of the current addon domain creation process, correct?

    Items 1,2, 3 and 5 are available via API1 and API2, which can be accessed remotely via the XML API. Anyone can use the cPanel/WHM APIs, they're just limited to the level of access they have to cPanel/WHM. This means an individual hosting account cannot create another hosting account or access any functionality you disabled via feature manager.

    Items 4 and 6 are best served by a shell script. Hosting customers could also use a CGI script to handle these items. Technically, you could also allow the use of exec() in PHP, but that's considered poor server security practice.

    You could use the APIs to trigger actions that can be accomplished via File Manager, but that's often considered by programmers to be excessive work for many situations easily served by shell scripts.

  3. #3
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: cPanel Scripting

    Greetings Roy,

    It appears all items requested here have already been implemented. Is there anything else you needed with regards to this request?

    If I don't hear from you in the next 3 weeks, I'll just close this feature request.

Similar Threads & Tags
Similar threads

  1. Cpanel cross site scripting vulnerability
    By driverC in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-13-2008, 01:04 PM
  2. CPanel 11 Beta Multiple Cross-Site Scripting
    By ehostcoua in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 11-30-2006, 04:35 PM
  3. cPanel Multiple Cross-Site Scripting Vulnerabilities
    By leorevenda in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-22-2006, 10:17 AM
  4. cPanel User Parameter Cross-Site Scripting Vulnerability [old]
    By maaking in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-16-2005, 10:06 AM
  5. cPanel cpsrvd.pl Cross-Site Scripting Vulnerability
    By sr_gireesh in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-23-2005, 03:26 AM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube