Hello,
I've been working on this a couple of days and can't seem to get this script to run on account creation in WHM. WHM says that it's running the file in the account creation output, but I'm not finding any evidence that the file is running.
I'm running WHM 11.38.2 (build 12)
Here's what I've tried:
1) I saved the postwwwacct file to: /usr/local/cpanel/scripts/
2) I set the execution bits with: chmod +x postwwwacct
3) Nothing is being written to the error log in: /usr/local/cpanel/logs/error_log or /usr/local/cpanel/logs/error_log_tommy
4) I've tried both #!/usr/local/bin/php and #!/usr/bin/php at the top of the file and neither seem to work.
5) I've tried ini_set('display_errors',1); and ini_set('display_errors',0); and that doesn't seem to make any difference.
Here's my code:
Any ideas for other things that I can try?
Your help is very much appreciated. Thank you,
Tommy
I've been working on this a couple of days and can't seem to get this script to run on account creation in WHM. WHM says that it's running the file in the account creation output, but I'm not finding any evidence that the file is running.
I'm running WHM 11.38.2 (build 12)
Here's what I've tried:
1) I saved the postwwwacct file to: /usr/local/cpanel/scripts/
2) I set the execution bits with: chmod +x postwwwacct
3) Nothing is being written to the error log in: /usr/local/cpanel/logs/error_log or /usr/local/cpanel/logs/error_log_tommy
4) I've tried both #!/usr/local/bin/php and #!/usr/bin/php at the top of the file and neither seem to work.
5) I've tried ini_set('display_errors',1); and ini_set('display_errors',0); and that doesn't seem to make any difference.
Here's my code:
PHP:
#!/usr/local/bin/php
<?php
ini_set('error_log','/usr/local/cpanel/logs/error_log_tommy');
ini_set('display_errors',1);
error_log( "Hello, this is a test error!" );
Your help is very much appreciated. Thank you,
Tommy