04-26-2010, 08:37 PM | #1 |
Junior Member
Join Date: Apr 2010
Posts: 4
|
Automated site creation
Hi,
I want to create a shell script, which will create www domain, database and user, and copy some standard scripts below www directory. Do you have such a sample? I wasn't able to find domain / db creation in the API. Thank you for this great software... |
04-26-2010, 11:21 PM | #2 |
Junior Member
Join Date: Apr 2010
Posts: 4
|
Ok, I've found the answer
/usr/local/ispmgr/sbin/mgrctl wwwdomain.edit domain=test.com alias=www.test.com owner=username php=phpmod sok=yes ip=x.x.x.x admin=test@test.com charset=utf8 cgi=on autosubdomain=asdnone |
04-27-2010, 01:09 AM | #3 |
Junior Member
Join Date: Apr 2010
Posts: 4
|
Now I need to run it in a PHP script.
I'm trying exe command with php but there is no response. Do you have an idea? |
04-27-2010, 11:56 PM | #5 |
Junior Member
Join Date: Apr 2010
Posts: 4
|
Thank you but I'm not trying to run phpscript in the shell.
I'm trying to run shell script in php script (with exec/system/passthru etc). I think there is a permission problem. For example I can run whoami and see which user executes php scripts. Then I've added that user to operator group to enable letting it run shell scripts. But it didn't work. By the way, my VPS is in JoinVPS and it's prebundled with FreeBSD 8.0 + ISP Manager. Actually it's working perfect, really. Better than any control panel app. Congratulations in deed. |
Tags |
automation |
|
|