<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Control WebPanel Wiki &#187; Development</title>
	<atom:link href="https://wiki.centos-webpanel.com/category/development/feed" rel="self" type="application/rss+xml" />
	<link>https://wiki.centos-webpanel.com</link>
	<description>CentOS WebPanel Wiki</description>
	<lastBuildDate>Wed, 12 Feb 2025 20:38:16 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.1.1</generator>
	<item>
		<title>whmcs module for cwp api</title>
		<link>https://wiki.centos-webpanel.com/whmcs-module-for-cwp-api</link>
		<comments>https://wiki.centos-webpanel.com/whmcs-module-for-cwp-api#comments</comments>
		<pubDate>Sat, 17 Feb 2018 23:11:47 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[whmcs-module]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=923</guid>
		<description><![CDATA[Download WHMCS module for CWP from our site http://dl1.centos-webpanel.com/files/3rdparty/whmcs/cwp7.zip Latest update: 30/03/2020 (30/March/2020) - improved autologin to user panel update: 09/01/2020 (09/Jan/2020) - show user disk/bandwidth usage in whmcs update: 30/08/2019 (30/Aug/2019) - added autologin 1. Extract file cwp7.zip in your whmcs folder WHMCS/modules/servers/ as extracted module file path will look like this WHMCS/modules/servers/cwp7/cwp7.php 2. [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><b>Download WHMCS module for CWP from our site</b><br />
<a href='http://dl1.centos-webpanel.com/files/3rdparty/whmcs/cwp7.zip'>http://dl1.centos-webpanel.com/files/3rdparty/whmcs/cwp7.zip</a></p>
<p>Latest update: 30/03/2020 (30/March/2020) - improved autologin to user panel<br />
update: 09/01/2020 (09/Jan/2020) - show user disk/bandwidth usage in whmcs<br />
update: 30/08/2019 (30/Aug/2019) - added autologin</p>
<div class="st-alert st-alert- ">
<strong>Other Billing Systems:</strong><br />
Wisecp:<br />
<a href="https://www.wisecp.com/en/cwp" target="_blank">https://www.wisecp.com/en/cwp</a></p>
<p>HostBill:<br />
<a href="https://hostbillapp.com/products-services/controlwebpanel/" target="_blank">https://hostbillapp.com/products-services/controlwebpanel/</a></p>
<p>Blesta:<br />
<a href="https://docs.blesta.com/display/user/CentOS+Web+Panel" target="_blank">https://docs.blesta.com/display/user/CentOS+Web+Panel</a></p>
<p>Clientexec<br />
<a href="https://www.clientexec.com/addons/clientexec/server/controlwebpanel" target="_blank">https://www.clientexec.com/addons/clientexec/server/controlwebpanel</a>
</div>
<p><b>1.</b> Extract file cwp7.zip in your whmcs folder<br />
<i>WHMCS/modules/servers/</i></p>
<p>as extracted module file path will look like this<br />
<i>WHMCS/modules/servers/cwp7/cwp7.php</i></p>
<p><b>2.</b> In WHMCS<br />
In Menu goto: Setup -> Products/Services -> Servers<br />
Add New Server and under "Server Details"<br />
<i>Type = Cwp7<br />
Username: root<br />
Password: (your server password)<br />
Access Hash: copy your key from CWP API</i></p>
<p><b>3.</b> Generate API Key on the CWP server<br />
goto Left-Menu -> CWP Settings -> API Manager<br />
Use the following permissions:<br />
<i>Enable Functions for: WHMCS</i></p>
<p>That is it, now you can create CWP accounts from WHMCS.</p>
<p><strong>Video instructions for CWP</strong></p>
<p><object width="700" height="425"><param name="movie" value="https://www.youtube.com/v/6bPkzp0NLaU?version=3&amp;showinfo=0&amp;theme=light&amp;fs=1&amp;rel=0&amp;iv_load_policy=3&amp;modestbranding=1"></param><param name="allowScriptAccess" value="always"></param><param name="allowFullScreen" value="true"></param><embed src="https://www.youtube.com/v/6bPkzp0NLaU?version=3&amp;showinfo=0&amp;theme=light&amp;fs=1&amp;rel=0&amp;iv_load_policy=3&amp;modestbranding=1" type="application/x-shockwave-flash" allowScriptAccess="always" allowfullscreen="true" width="700" height="425"></embed></object></p>
<p><strong>Old Video (could be useful in some cases)</strong></p>
<p><object width="700" height="425"><param name="movie" value="https://www.youtube.com/v/96dizYdi6WY?version=3&amp;showinfo=0&amp;theme=light&amp;fs=1&amp;rel=0&amp;iv_load_policy=3&amp;modestbranding=1"></param><param name="allowScriptAccess" value="always"></param><param name="allowFullScreen" value="true"></param><embed src="https://www.youtube.com/v/96dizYdi6WY?version=3&amp;showinfo=0&amp;theme=light&amp;fs=1&amp;rel=0&amp;iv_load_policy=3&amp;modestbranding=1" type="application/x-shockwave-flash" allowScriptAccess="always" allowfullscreen="true" width="700" height="425"></embed></object></p>
<p><strong>ISSUES</strong><br />
- be sure that the api key is enabled in the cwp.admin<br />
- on the cwp server whitelist in csf firewall ip of the whmcs server<br />
- on the whmcs server whitelist in the firewall/csf ip of the cwp server<br />
- 503 Service Unavailable when Creating Account With Api: If you have whmcs on the same server where you create the new accounts then you can run whmcs with php-cgi as php-fpm gets restarted when creating a new account.</p>
]]></content:encoded>
			<wfw:commentRss>https://wiki.centos-webpanel.com/whmcs-module-for-cwp-api/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Notifications in control panel</title>
		<link>https://wiki.centos-webpanel.com/notifications-in-control-panel</link>
		<comments>https://wiki.centos-webpanel.com/notifications-in-control-panel#comments</comments>
		<pubDate>Thu, 17 Nov 2016 11:05:12 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[notifications]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=673</guid>
		<description><![CDATA[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" - [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Now you can send notifications into the cwp.admin control panel with your custom scripts.<br />
Notification generator script will help you and generate the unique id for each message.</p>
<p><img src="/wp-content/uploads/2016/11/Screenshot-from-2016-11-17-121042.png" alt="CWP Notifications" /></p>
<p><strong>Script Usage:</strong></p>
<pre>/scripts/add_alert ALERT-TYPE "Short Text" LOG-FILE-LOCATION
/scripts/add_alert alert-danger "this is my test" /var/log/php-rebuild.log</pre>
<p><strong>ALERT-TYPE</strong> - Available Alert Types<br />
alert-danger, alert-success, alert-info, alert-warning, alert-dismissable</p>
<p><strong>"Short Text"</strong> - Must be under quotes if using multiple words<br />
This is the text which will be visible in the notification after Message id.</p>
<p><strong>LOG-FILE-LOCATION</strong> (optional NOT required)<br />
This will show "Check Detailed Info" button which is a link to open a log file or text file with more detailed info.</p>
<p>by clicking on the close x of the notification bar the notification will be permanently removed.</p>
<p><em>We will use the same script for notification about background process state and to notify you when its done.</em></p>
<p>Currently we are using the notifications to notify you when some background process is done.<br />
- Mod Security installation<br />
- Apache Re-Build<br />
- PHP version swithcer<br />
- PHP selector<br />
- FFMPEG installer<br />
...</p>
]]></content:encoded>
			<wfw:commentRss>https://wiki.centos-webpanel.com/notifications-in-control-panel/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeHosting Provider Service</title>
		<link>https://wiki.centos-webpanel.com/freehosting-provider-service</link>
		<comments>https://wiki.centos-webpanel.com/freehosting-provider-service#comments</comments>
		<pubDate>Sun, 15 Nov 2015 21:29:45 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[free-hosting]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=410</guid>
		<description><![CDATA[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: [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>If you want to provide a free hosting service, now you can do that very simple with CWP, in just a few steeps.</p>
<p>You need to set Access key in the following file</p>
<pre>/usr/local/cwp/.conf/free_hosting_key.conf</pre>
<p>Example of file /usr/local/cwp/.conf/free_hosting_key.conf</p>
<pre>DPQhj9zJeMYHJkGyEW</pre>
<p>To activate a new account, you need to call this API as in the following example:</p>
<pre>http://IP:2030/index.php?scripts=free_hosting&#038;domain=NEW-USER.DOMAIN.COM&#038;username=NEW-USER&#038;password=PASSWORD&#038;package=PACKAGE-ID&#038;email=USER@EMAIL.COM&#038;inode=10000&#038;nproc=10&#038;nofile=100&#038;key=APIKEY</pre>
<p>Example</p>
<pre>http://121.122.123.124:2030/index.php?scripts=free_hosting&#038;domain=john3.cwp.com&#038;username=john3&#038;password=g3Dg5Hi9pA29&#038;package=1&#038;email=john3@gmail.com&#038;inode=10000&#038;nproc=10&#038;nofile=100&#038;key=DPQhj9zJeMYHJkGyEW</pre>
<p>When calling this script in output you will get account details back.</p>
<p>Don't forget to replace: IP, NEW-USER.DOMAIN.COM, NEW-USER, PASSWORD, PACKAGE-ID, USER@EMAIL.COM, INODE, NPROC, NOFILE and KEY<br />
IP must be CWP server IP or server hostname<br />
NEW-USER.DOMAIN.COM is users subdomain<br />
NEW-USER is account username<br />
PASSWORD is account password<br />
PACKAGE-ID is a package ID number from packages list in CWP<br />
USER@EMAIL.COM is users contact email address<br />
INODE is inode limit for a user<br />
NPROC is process number limit for a user<br />
NOFILE is a number of open files limit for a user<br />
APIKEY is API access key from /usr/local/cwp/.conf/free_hosting_key.conf</p>
<p>For additional security you also need to allow IP address which will have access to the server API (one per line)</p>
<pre>/usr/local/cwp/.conf/free_hosting_allowed.conf</pre>
]]></content:encoded>
			<wfw:commentRss>https://wiki.centos-webpanel.com/freehosting-provider-service/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to create RPM packages</title>
		<link>https://wiki.centos-webpanel.com/how-to-create-rpm-packages</link>
		<comments>https://wiki.centos-webpanel.com/how-to-create-rpm-packages#comments</comments>
		<pubDate>Thu, 25 Jun 2015 22:25:16 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[build RPM package]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=307</guid>
		<description><![CDATA[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 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><strong>How to create RPM packages like custom php or Apache</strong></p>
<p>- Download source package<br />
- Run ./configure with your desired flags<br />
- run make<br />
- run checkinstall, this will automatically create RPM package.</p>
<p>Download and install checkinstall package:</p>
<p>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</p>
<pre>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</pre>
<pre>./configure your-FLAGS
make
checkinstall --install=no</pre>
<p>and that is it, your RPM is now done.</p>
]]></content:encoded>
			<wfw:commentRss>https://wiki.centos-webpanel.com/how-to-create-rpm-packages/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to build a CWP Module</title>
		<link>https://wiki.centos-webpanel.com/how-to-build-a-cwp-module</link>
		<comments>https://wiki.centos-webpanel.com/how-to-build-a-cwp-module#comments</comments>
		<pubDate>Tue, 24 Feb 2015 02:16:13 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=40</guid>
		<description><![CDATA[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 &#60;?php $cpu_info = shell_exec("cat /proc/cpuinfo"); echo "This is example module&#60;br&#62;"; echo "You can edit this file and make new modules based on this file&#60;br&#62;"; echo "Examples and functions [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><strong>How to Build a new module for CentOS Web Panel (CWP)?</strong></p>
<p>It’s very easy to build a new module for the CentOS-WebPanel<br />
Let’s create file named: <strong>test2.php</strong>
<pre>
<code>
&lt;?php
$cpu_info = shell_exec("cat /proc/cpuinfo");
echo "This is example module&lt;br&gt;";
echo "You can edit this file and make new modules based on this file&lt;br&gt;";
echo "Examples and functions are on our website: centos-webpanel.com&lt;br&gt;";
echo "&lt;h3&gt;CPU INFO&lt;/h3&gt;";
echo "&lt;pre&gt;".$cpu_info."&lt;/pre&gt;";
?&gt;
</code></pre>
<p>to open this file in CentOS-WebPanel, upload it to the modules folder and use this link path:<br />
<code>http://SERVER_IP:2030/index.php?module=FILE_NAME</code></p>
<p>eg. http://123.123.123.123:2030/index.php?module=test2<br />
<strong><br />
How to add this module into the CentOS-WebPanel menu?</strong><br />
It’s easy, go to include folder and make a new file named 3rdparty.php, in this file you can add links (one per a line).<br />
eg.</p>
<p><strong>cwp.admin</strong>: /usr/local/cwpsrv/htdocs/resources/admin/include/3rdparty.php</p>
<pre>
<code class="bbc_code">&lt;li&gt;&lt;a href="index.php?module=test2"&gt;&lt;span class="icon16 icomoon-icon-arrow-right-3"&gt;&lt;/span&gt;Test2 Module&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="index.php?module=test3"&gt;&lt;span class="icon16 icomoon-icon-arrow-right-3"&gt;&lt;/span&gt;Test3 Module&lt;/a&gt;&lt;/li&gt;</code></pre>
<p><strong><br />
All useful modules will be added in CWP installation</strong></p>
<p><strong>Admin panel modules location</strong><br />
/usr/local/cwpsrv/htdocs/resources/admin/modules</p>
<p><strong>Client panel modules instructions</strong><br />
<a href="https://docs.control-webpanel.com/docs/developer-tools/custom-modules">https://docs.control-webpanel.com/docs/developer-tools/custom-modules</a></p>
<p><strong>Example module developed by the 3rdParty</strong></p>
<p>https://github.com/boxbillinggit/cwp_modules/blob/master/php_phalcon.php</p>
<p><strong>Instructions for building user panel modules</strong></p>
<p>https://docs.control-webpanel.com/docs/developer-tools/custom-modules/user</p>
]]></content:encoded>
			<wfw:commentRss>https://wiki.centos-webpanel.com/how-to-build-a-cwp-module/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
