Current time: 11-23-2024, 11:24 AM Hello There, Guest! (LoginRegister)


Thread Closed 
[HOWTO] Using the CLI to manage ispcp via command line (scripts)
Author Message
aseques Offline
Member
*****
Dev Team

Posts: 330
Joined: May 2008
Reputation: 4
Post: #1
[HOWTO] Using the CLI to manage ispcp via command line (scripts)
I wanted to create create a set of tools to be able to create/modify/delete domains from the command line.
This approach will be most practical when doing migrations from other control panels for example, with the list of domains+passwords, you'd be able to replicate the system in a few minutes.
There is some documentation about usage at the dokuwiki here.
For any suggestions, modifications of the code,etc .. post it here or edit the wiki, so it can be useful for us all

Contributing code
If you want to test and improve the most current code, you can connect to:
http://bitbucket.org/aseques/ispcp-cli/src

UPDATE
Fixed the creation of TXT dns entries
See CHANGELOG to view the full list of changes

It's designed to work at least with the current 1.0.7 (there are older working versions too)
You can call it something like:
php domain.php --action create_domain --created_by "reseller" --domain "example.com" --password "password25" --hosting_plan "FullPlan"
To create the hosting for the domain example.com using the template FullPlan and with the admin password password25, note that when creating a domain, the name of the admin and the domain will be the same (due to the script limitations)
or
php domain.php --action create_ftp --created_by "reseller" --domain "example.com" --password "password25" --hosting_plan "FullPlan" --user "username"
To create the ftp account username@example.com for the previous domain.

To check the usual syntax of many of the commands, you can user the verify_cli.sh that will create a sample domain with most of the features..

It has been extensively tested, and it shouldn't break anything.
For anyone interested in using the script, I'm not a programmer so the code probably will hurt your eyes, any advice will be taken into consideration.
I hope it will be of use to you.

UPDATE: New features are included in every new release of this scripts, acording with the new features in ispcp, but the syntax and the core functionality is basically the same.

There is the version working in ispcp 1.0.3.1
.gz  scripts_1_0_3_1.tar.gz (Size: 14.86 KB / Downloads: 24)

There is the version working for ispcp 1.0.4
.gz  scripts_1_0_4.tar.gz (Size: 14.89 KB / Downloads: 40)

The version for ispcp 1.0.5 and 1.0.6
.gz  scripts_1_0_5.tar.gz (Size: 12.99 KB / Downloads: 35)

The version for 1.0.7 and current trunk
.gz  scripts_1_0_7.tar.gz (Size: 14.26 KB / Downloads: 95)

NOTE: For the version working on 1.0.0 systems send me a PM, it's obsoleted and might confuse people.
(This post was last modified: 08-02-2011 02:25 AM by aseques.)
09-13-2008 02:34 AM
Find all posts by this user
Thread Closed 


Messages In This Thread
[HOWTO] Using the CLI to manage ispcp via command line (scripts) - aseques - 09-13-2008 02:34 AM
RE: Using the CLI with ispcp - aseques - 05-08-2009, 11:26 PM

Forum Jump:


User(s) browsing this thread: 5 Guest(s)