|
|||
|
Create text file when add / remove domain.
Hi everyone,
I need create a text file when a domain is created and removed. domaintest.com created domaintest2.com removed domaintest3.com removed domaintest123.com created I edited the file /scripts/wwwacct, but not worked. system("echo $domain created >> /root/log.txt"); File /scripts/killacct: system("echo $domain removed >> /root/log.txt"); My cpanel verion is 11. I had this in old cpanel version, but cpanel 11, I canīt. Please, help-me. Joao |
|
||||
|
Instead of modifying /scripts/wwwacct, in cPanel 11 you should modify /scripts/postwwwacct for accounts created (/scripts/postkillacct for accounts terminated). Documentation on this is available at:
http://www.cpanel.net/support/docs/hooks.htm
__________________
Need technical assistance? You can find your best avenue for support at: http://support.cPanel.net -- cPanel David G., Lead Forum Administrator & cPanel Technical Sales Representative |
|
|||
|
Hi David!
Thank you But, I canīt locate this file. Look: [root@linux]# cat /scripts/postkillacct cat: /scripts/postkillacct: No such file or directory [root@linux]# cat /scripts/postkillacct cat: /scripts/postkillacct: No such file or directory Where are these files? Thank you! Joao |
![]() |
| Thread Tools | |
| Display Modes | |
|
|