Notifications in control panel

Now you can send notifications into the cwp.admin control panel with your custom scripts. Notification generator script will help you and generate the unique id for each message. Script Usage: /scripts/add_alert ALERT-TYPE “Short Text” LOG-FILE-LOCATION /scripts/add_alert alert-danger “this is my test” /var/log/php-rebuild.log ALERT-TYPE – Available Alert Types alert-danger, alert-success, alert-info, alert-warning, alert-dismissable “Short Text” – […]

Read More

FreeHosting Provider Service

If you want to provide a free hosting service, now you can do that very simple with CWP, in just a few steeps. You need to set Access key in the following file /usr/local/cwp/.conf/free_hosting_key.conf Example of file /usr/local/cwp/.conf/free_hosting_key.conf DPQhj9zJeMYHJkGyEW To activate a new account, you need to call this API as in the following example: […]

Read More

How to create RPM packages

How to create RPM packages like custom php or Apache – Download source package – Run ./configure with your desired flags – run make – run checkinstall, this will automatically create RPM package. Download and install checkinstall package: http://rpm.pbone.net/index.php3/stat/4/idpl/23516987/dir/centos_6/com/checkinstall-1.6.2-3.el6.1.x86_64.rpm.html wget ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home:/ikoinoba/CentOS_CentOS-6/x86_64/checkinstall-1.6.2-3.el6.1.x86_64.rpm rpm -i checkinstall-1.6.2-3.el6.1.x86_64.rpm ./configure your-FLAGS make checkinstall –install=no and that is it, your RPM […]

Read More

How to build a CWP Module

How to Build a new module for CentOS Web Panel (CWP)? It’s very easy to build a new module for the CentOS-WebPanel Let’s create file named: test2.php <?php $cpu_info = shell_exec(“cat /proc/cpuinfo”); echo “This is example module<br>”; echo “You can edit this file and make new modules based on this file<br>”; echo “Examples and functions […]

Read More