|
|||
|
Run script on Domain/Sub-domain creation.
I am using my own mod_fcgid build with a wrapper so I can execute php scripts on a per-user basis and add a custom phpini if needed.
Now, since it uses a wrapper on a per-user basis, I need to have a file in the public_html directory in order for it to run properly. So how can I run a script when a new domain or sub-domain is created? I tried searching the forum without luck, anyone have experience with doing this? (The script I'm going to run is just going to copy the wrapper to the new public_html directory and chown/chmod it to the correct permissions) Thanks in advance! |
|
||||
|
If this is going to be on a per-user basis rather than a per-domain/subdomain basis, you can insert your hook code into /scripts/postwwwacct
Details on how to do this are available at: http://www.cpanel.net/support/docs/hooks.htm If you wish to have a hook for any domain/sub-domain creation, you may wish to refer to this document on how to set up hooks for these functions: /usr/local/cpanel/hooks/README
__________________
Want our technical analysts to login to your server to assist you? You can contact our technical analysts at: http://tickets.cPanel.net/submit |
![]() |
| Thread Tools | |
| Display Modes | |
|
|