matthewdavis

Well-Known Member
Jun 26, 2003
90
0
156
NC, USA
http://code.google.com/p/whmtools/

This is a project I've been working on for quite sometime now. It's a php script I've come up with to make my life easier. My webhosting company now has 20 servers. It does a fairly simple job, poll cpanel servers for a list of accounts and allows for you find what domain or user is on what server.

I know there are other scripts/applications (whmadmin for example) out there that do very similar jobs. But I was working on this script long before I heard about them. I'm only doing this to help those that only have a few servers and do not feel comfortable dropping a sum of cash for a product that does a very simple task.

Its very alpha right now. So if you want to help develop it, it may take a bit of massaging to get it to work for you. whmtools is free and open source and I'll provide as much support as possible. But if you feel more comfortable paying for software that does about the same thing, use whmadmin (http://www.whmadmin.comf).
 

jeroman8

Well-Known Member
Mar 14, 2003
410
0
166
svn - ?
Guess I need a script or download each file online seperatly.
Any chance package this program to donwload ?

One thing I'm missing in whmadmin is to see each account contact email.

Is this possible or will be ?


Thanks!
 

matthewdavis

Well-Known Member
Jun 26, 2003
90
0
156
NC, USA
http://code.google.com/p/whmtools/source

There's a svn tree you can check out.

Guess I need a script or download each file online seperatly.
Any chance package this program to donwload ?
I think I could package it and throw up a tarball.

One thing I'm missing in whmadmin is to see each account contact email.

Is this possible or will be ?
It is possible. But not using the standard fetchcsv call to poll the accounts. I have a process which run's under cron that copies useraccts & rootaccts from every server and puts them on a central nfs mount. And my program then parses these files and pulls in the data. So I guess it could be possible to poll $HOME/.contactemail and pull that info in. I created an issue so I don't forget to do this. http://code.google.com/p/whmtools/issues/detail?id=2
 

electric

Well-Known Member
Nov 5, 2001
779
8
318
Any screenshots available?
 

aoc

Member
Nov 9, 2004
9
0
151
whmadmin

hi there

about this whmtools, it's no need to do dabase or anything to search whm cpanel accounts

if you are root or reseller you can find all your hosting accounts using Accounting.php under whm/cpanel directory

you can copy this file to your website and include it with your script you can list accounts with all the informations for each account and you can filter and sort this information because you will get it as an array() and you can search this array

and you can create accounts + list packages you have

more you can kill account or suspend it

all this using the private key for the root account or the reseller account.

you can create automation account creation using this file Accounting.php
and this file with WHM/Cpanel files

it use curl function to connect to the server using the host + username + private key.

i don't know if it's allowed to copy the code here or not.

but it's simple

any one know the php language copy the file Accounting.php under WHM directory to your public_html include the Accounting.php after that open the file you will find all the functions for creation accounts and deleting accounts more you can suspend and list packages and accounts more you can get the email for each host :)

call the function listpkgs(private key, username, host, ssl) etc you will find it all there
$pkgs = listpkgs(username,host........etc);

after that you will get array variable $pkgs

foreach($pkgs as $value) { print $value."<br />"; }

and you will see all the packages information

i hope you get it !!

use it to search for accounts information


this file whm use it for listing accounts and packages .... etc

regards all
 

matthewdavis

Well-Known Member
Jun 26, 2003
90
0
156
NC, USA
I'd perfer to keep this thread on topic, if its all the same to you.

I'll get screenshots posted here soon. I was away most of christmas.
 

matthewdavis

Well-Known Member
Jun 26, 2003
90
0
156
NC, USA
Screenshots should be attached to this posting. This is a reminder, this is very early alpha stages, its not very good looking, but its very functional. I even have support to search addon/parked domains. The data can be easily pulled into the db (and is currently on my servers), but its not searchable yet. Need to overhaul the search page.
 

Attachments