Good evening,
I'm glad I joined the cPanel community
So, here's my "little" problem:
I own a VPS which has several parked domains in different dirs. One of these domains needs a script which installs automatically an application package when a new user is created in cPanel in his own space.
So, the main script is installed in /usr/shared/app_name
As far as I understood, I can make a postwwwacct script in cpanel /scripts dir which takes the arguments from cPanel when the account is created, and includes the install.php from the /usr/shared/app_name
My problem is that the installation is only for one of the domains - not all... And the app_name symlinks the user dir (/home/username) to that user dir
In the postwwwacct I think I can run the install - or not - if I detect the right domain.
Is this the easy way of doing it?
Also, I would like very much to know if - regarding the cPanel API - I can simply call it from any domain, and how to give an user the permissions to call a root dir, like /usr/shared/app_name for instance.
Any sugestions - previous experiences - are welcomed
Clear skies,
Kepler
I'm glad I joined the cPanel community
I own a VPS which has several parked domains in different dirs. One of these domains needs a script which installs automatically an application package when a new user is created in cPanel in his own space.
So, the main script is installed in /usr/shared/app_name
As far as I understood, I can make a postwwwacct script in cpanel /scripts dir which takes the arguments from cPanel when the account is created, and includes the install.php from the /usr/shared/app_name
My problem is that the installation is only for one of the domains - not all... And the app_name symlinks the user dir (/home/username) to that user dir
In the postwwwacct I think I can run the install - or not - if I detect the right domain.
Is this the easy way of doing it?
Also, I would like very much to know if - regarding the cPanel API - I can simply call it from any domain, and how to give an user the permissions to call a root dir, like /usr/shared/app_name for instance.
Any sugestions - previous experiences - are welcomed
Clear skies,
Kepler