Go Back   cPanel Forums > General Discussion > cPanel Newbies

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-07-2008, 07:59 PM
Registered User
 
Join Date: Feb 2008
Posts: 4
joaosavioli is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-08-2008, 03:01 PM
Registered User
 
Join Date: Feb 2008
Posts: 4
joaosavioli is on a distinguished road
Hi,

Please, help-me.
It is very important.

Thank you
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-08-2008, 03:07 PM
cPanelDavidG's Avatar
cPanel Technical Sales
 
Join Date: Nov 2006
Location: Houston, TX
Posts: 8,117
cPanelDavidG is on a distinguished road
Quote:
Originally Posted by joaosavioli View Post
Hi,

Please, help-me.
It is very important.

Thank you
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-08-2008, 09:22 PM
Registered User
 
Join Date: Feb 2008
Posts: 4
joaosavioli is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-08-2008, 10:07 PM
cpanelkenneth's Avatar
cPanel Quality Assurance
 
Join Date: Apr 2006
Posts: 3,349
cpanelkenneth is on a distinguished road
YOu have to create those files and make them executable:

Code:
touch cat /scripts/postkillacct
chmod +x cat /scripts/postkillacct
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 10:37 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© cPanel Inc