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.

Is it possible to auto install PHP apps on account creation?

Discussion in 'General Discussion' started by Webs961, Dec 10, 2008.

  1. Webs961

    Webs961 Registered

    Joined:
    Dec 10, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Greetings,

    I'm rather new to WHM, and I've looked around to see if I could find some documentation about something like this, but I couldn't find anything. Is there any way to set WHM so that if I create an account in WHM with a certain package, would WHM be able to create a MySQL database on the newly created account, assign the appropriate permissions to a newly created user, and execute a PHP script that would populate the database and setup a configuration file? I can write said PHP script, but I'm not sure how to integrate something like that into WHM.

    Thanks!
    Webs
     
  2. kduvall

    kduvall Member

    Joined:
    Nov 24, 2008
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Atlanta, GA
  3. hydra

    hydra Well-Known Member

    Joined:
    Mar 26, 2008
    Messages:
    102
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Amsterdam, Netherlands
    Hi,

    Have a look here, i am sure you find what you are looking for.

    Cpanel Hooks

    I think the /scripts/postwwwacct script is what you are looking for.

    Ronald.
     
Loading...

Share This Page