PDA

View Full Version : Building A Control Panel



SitePenguin Ltd
December 27th, 2009, 01:56
Hello,

I've decided I'm going to build my own control panel, however I need some help getting started. I'm unsure how to make the server give/receive the correct files from each domain. As some of you may know a control panel puts each users files into a folder like this:

/users/yourdomain.com/public_html

I'm just unsure how to have the server point to those files like this:

User requests yoursite.com -> server points them to: /users/yoursite.com/public_html/index.html

Any ideas?

SitePenguin Ltd
December 27th, 2009, 02:24
Well it seems I ca use php to edit a virtual host file and produce the desired outcome, sorry for waisting posting space... LOL

stuffradio
December 28th, 2009, 14:33
Control Panel for what?

aloycasmir
December 28th, 2009, 15:03
I guess he's making a direct admin like control panel to not only save on costs of buying it but also as an alternative source of income .
I expect it to be like the real direct admin control panel or something close :)

Wish i had such skills. I'm not good enough for such high level development such as control panels yet :(

SitePenguin Ltd
December 28th, 2009, 17:37
He hit the nail on the head. Obviously I'm not cloning Direct Admin, jsut building similar features into my own web hosting control panel.

Starcraftmazter
December 29th, 2009, 01:50
Well it seems I ca use php to edit a virtual host file and produce the desired outcome, sorry for waisting posting space... LOL

PHP would be a bad choice, the only thing you are guaranteed to get on a linux OS is perl, and perl is a more logical choice to use anyway since most of the work to be done revolves around file and directory editing.

SitePenguin Ltd
December 29th, 2009, 02:29
Well I'm not going to bother to learn Perl just to write a control panel. Granted I may get someone to help me later on in that department.

aloycasmir
December 29th, 2009, 02:51
Well i said it was 'like' direct admin ;)
So how is it going penguin ?
Any success yet . I'd love to learn how you managed to get it working , but , only if you would like to tell me...

Starcraftmazter
December 29th, 2009, 02:51
Well I'm not going to bother to learn Perl just to write a control panel. Granted I may get someone to help me later on in that department.

You speak of this as though it's some easy feat :lol:

SitePenguin Ltd
December 29th, 2009, 02:57
Written a control panel before, it was just a layered one (you installed it into another control panel like cpanel) so its not that hard lol... Took about 2 months when i didn't know what i was doing. At this point I've got alot of it figured out the installation script was the hard part.

Starcraftmazter
December 29th, 2009, 03:02
So what language is it written in? And what are it's features?

SitePenguin Ltd
December 29th, 2009, 03:06
The control panel is currently written in PHP and contains a simple file manager, edit file feature, login system and admin list accounts features. (Adding features as I have time)... The installation script is a .sh file that uninstalls all versions of php, mysql and apache then installs a custom version of each programmed to work together. After installing all 3 of those it downloads the latest version of my control script from the server and sets it up in the correct directories... Pretty simple at the moment but it is getting there.

The install script currently runs on CentOS, Redhat and Debian.

aloycasmir
December 29th, 2009, 03:26
Gr8 news penguin :)
Wish i had a server to test it...