Skip to main content

Create aliases via API?

Comments

8 comments

  • cPanelLauren
    Hi @DucNghia I believe what you are looking for is an API function to add an Alias. This is present but it is called the old name Park a domain. The function is found here: cPanel API 2 Functions - Park::park - Developer Documentation - cPanel Documentation Thanks!
    0
  • StijnStroobants
    Hi, I would like to add domain aliasses with the Cpanel UAPI. There is no UAPI equivalent available for doing this. Are there any plans to add this in the future to the API? Thanks, Stijn
    0
  • cPanelLauren
    Right now there is no UAPI equivalent to this but we are working to update all the UAPI to include functions that are available in CPAPI2. I don't have a timeframe for this at this time though.
    0
  • proweb7
    Hi, any update about UAPI or another alternative to create Alias through PHP ?
    0
  • cPanelHB
    Hello, There are no updates at this time regarding a UAPI replacement for cpapi2 Park. Did you have any difficulties with getting the cpapi2 call to work? Here is the relevant documentation:
    0
  • proweb7
    Hello @cPanelHB , Thank you for your reply . Yes, I used CpanelInc/xmlapi-php and it was working before, is there any update for this Class ?
    0
  • proweb7
    Now ,I am getting this issue string(356) "PHP Fatal error: Uncaught RuntimeException: There was a problem fetching the env variablecontaining the path to the socket in /usr/local/cpanel/php/cpanel.php
    0
  • cPanelHB
    Hello, As that Github page notes, that particular project is obsolete, but will still function so long as you use json output. With regards to the error you have encountered, it is hard to say what may be wrong. Would you be willing to submit a support ticket so that we can investigate? Though, I do want to stress that our ability to troubleshoot issues with third-party scripting can be limited.
    0

Please sign in to leave a comment.