Hi,
I'd like to use a postwwwacct script to obtain the user data when an account is created.
I created the script and placed it as /scripts/postwwwacct
To test the script I simply let it create a file in the /scripts/ directory.
The script is executable as root as I tested the script successfully as root via SSH.
However, when I "Create a new Account" in WHM the script is not run, as the test file is not created.
I also added some testing code to /scripts/wwwacct and it doesn't seem to run upon account creation.
Somebody has idea what might be the problem there?
Any help is greatly appreciated!
Here's the script (I tried php and perl):
cPanel Version: 11.30.6 (build 4)
I'd like to use a postwwwacct script to obtain the user data when an account is created.
I created the script and placed it as /scripts/postwwwacct
To test the script I simply let it create a file in the /scripts/ directory.
The script is executable as root as I tested the script successfully as root via SSH.
However, when I "Create a new Account" in WHM the script is not run, as the test file is not created.
I also added some testing code to /scripts/wwwacct and it doesn't seem to run upon account creation.
Somebody has idea what might be the problem there?
Any help is greatly appreciated!
Here's the script (I tried php and perl):
WHM Version: WHM 11.30.6 (build 4)#!/usr/local/bin/perl
open FILE, ">", "file.txt" or die $!;
print FILE "test";
close FILE;
cPanel Version: 11.30.6 (build 4)
Last edited: