New in CWP Edge / LTSFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers. Available now in the Edge-Latest and LTS-Stable versions. Discuss in the forum

LSPHP / Cache ›
CWP Secure KernelKernel-level protectionEvery site in its own sandbox

Every PHP site, cron job and SSH session runs in its own profile that the kernel enforces. A hacked WordPress cannot read other accounts’ files, and crypto miners and unexpected processes are stopped. Discuss in the forum

Secure Kernel ›
CWP DataCenter PanelFree for CWPpro serversAll your servers on one screen

Manage all your CWP servers from one panel: live health, every hosting account, CWP and OS updates on many servers at once, backups, SSL, firewall and Telegram alerts. Discuss in the forum

DataCenter Panel ›
CWP Backup ServerFree for CWPpro serversBackups that ransomware cannot reach

Protected backups of all your CWP servers on a separate machine. Snapshots a hosting server cannot delete, and restore of files, databases, mail and whole accounts in the admin and user panel. Discuss in the forum

Backup Server ›
WordPress ManagerIncluded & freeWordPress managed from the panel

Install, secure, update, back up and clone WordPress sites without FTP. Updates are tested on a staging clone first and applied to the live site only when they pass, with a backup taken first. Discuss in the forum

WordPress Manager ›
CWP CageIsolationEvery account in its own cage

Per-account isolation built from Linux namespaces and cgroups. A break-in or a runaway script on one site cannot reach another account, the panel or the rest of the server; resource limits per hosting package. Discuss in the forum

CWP Cage ›
Script InstallerOne-click appsWordPress, Joomla, Moodle and more in one click

CWP’s own script installer in the user panel: pick an app, choose the domain and folder, and it is live in seconds with its database and admin login created automatically. Ready for LSPHP and LSAPI-Cache. Discuss in the forum

Script Installer ›
DNS ClusterFor every control panelOne DNS cluster for all your servers

Your servers keep creating domains as usual; the zones are collected into one authoritative PowerDNS cluster you control, with DNSSEC, roles and a full activity trail. Accepts CWP, cPanel, Plesk, DirectAdmin and BIND. Discuss in the forum

DNS Cluster ›
CWP BillingFree to useBilling and support system for hosting providers

Clients, services, invoices, payments, domains, server provisioning and support tickets in one place. All gateways, server modules and registrars are free, with free migration from WHMCS, ClientExec and Blesta. Discuss in the forum

CWP Billing ›
CWPproFrom $1.49 per monthEvery CWP feature unlocked

CWPpro is the professional version of Control Web Panel: all features, unlimited accounts, the latest CWP version and security fixes first. $1.49 per month or $11.99 per year. Discuss in the forum

Get CWPpro ›

Documentation for development

Started by Luisfm, September 23, 2016, 04:00:09 PM

Previous topic - Next topic

Luisfm

hey guys,

where can i find some documentation to build a module.

I need to be able to select one domain already added after that press a button. It will run a php script on that domain folder! :)

thefantas

We are in the same, the developers are the ones that give life to a project, the basic documentation is needed.

yokowasis

There is no documentation, and I don't think there is going to be. The only documentation you need is how to add the new module page. On that page you put all the php script you need.

If you need to execute some hibijibis jumbo mambo script, you use exec ('sudo put your magic command here'). In this case if you want to exec some script on a domain this is what you do

exec ('sudo copy my script to the folder of the domain I choose');
curl ('http://this-is-my-domain-that-i-choose.com/and-this-is-my-script-that-i-copied-before.php');

Good Luck.

darkness

It`s easy. I will give you documentation.  ;D PHP, Bash, MySQL  ;D
This is all you need to start and to make something beautiful and useful.  ;D
UNIX is a very simple OS, but you have to be a GENIUS to understand it ...

thefantas

You are wrong yokowasis, you always need a minimum of documentation for the development of modules of a platform, example, IP cameras, biometric readers, google, facebook, etc.
For what reason It gives greater security to a possible hack and makes it easier for more developers to create their modules.
If you see my theme [url] http://forum.centos-webpanel.com/new-modules/reseller-account/ [/ url] created a module for resellers without any support, but as I explain to give security Need minimal access data.

regards

darkness

thefantas if you secure good your $_GET/$_POST vars to skip the MySQL Inject you should be ok. One of the ideas of ionCube is this. You encrypt your source code, so nobody see it and than he can`t find errors/holes for hacking. ;D This is how I see it.
UNIX is a very simple OS, but you have to be a GENIUS to understand it ...

yokowasis

Quote from: thefantas on July 06, 2017, 10:32:07 PM
You are wrong yokowasis, you always need a minimum of documentation for the development of modules of a platform, example, IP cameras, biometric readers, google, facebook, etc.
For what reason It gives greater security to a possible hack and makes it easier for more developers to create their modules.
If you see my theme [url] http://forum.centos-webpanel.com/new-modules/reseller-account/ [/ url] created a module for resellers without any support, but as I explain to give security Need minimal access data.

regards

I would be loved to be proved wrong. But I think apparently that's not the case.

You can access all available variable on CWP using this function, http://php.net/manual/en/function.get-defined-vars.php.

But that's it. That's the only variable CWP give us. If we want to add additional function / variable, we need to modify the core cwp, and that's not possible at the moment, and I don't think it even will. Again I would love to be proven wrong. Unfortunately for now, we have to work with this limitation. You should consider vestacp, it is open source. albeit it doesn't have any module documentation either. But you can just open their internal function and see how it works.

I wish CWP open their source to the public. Right now it is very limited. There are many more room to improve on CWP.

yokowasis

We have 2 years old request for Migrate CWP -> CWP for crying out loud. If we have access to the core, it should be easy creating this module.

Get ALL CWP SETTINGS, DB, USERS, FILES
Move it to the New Host
FORCED USERS TO RESET PASSWORD.

I don't think it will be possible without modifying the core

darkness

When I finish with the OpenVZ I will focus on Migrate CWP->CWP. Unless somebody do it before that  ;D
UNIX is a very simple OS, but you have to be a GENIUS to understand it ...