<?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; Search Results  &#187;  slave</title>
	<atom:link href="http://wiki.centos-webpanel.com/search/slave/feed/rss2/" rel="self" type="application/rss+xml" />
	<link>http://wiki.centos-webpanel.com</link>
	<description>CentOS WebPanel Wiki</description>
	<lastBuildDate>Sun, 31 May 2026 15:38:19 +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>How to install ElasticSearch</title>
		<link>http://wiki.centos-webpanel.com/how-to-install-elasticsearch</link>
		<comments>http://wiki.centos-webpanel.com/how-to-install-elasticsearch#comments</comments>
		<pubDate>Mon, 06 Dec 2021 08:26:57 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[ElasticSearch]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=1627</guid>
		<description><![CDATA[Introduction Elasticsearch is a platform for distributed search and analysis of data in real-time. Its popularity is due to its ease of use, powerful features, and scalability. Elasticsearch supports RESTful operations. This means that you can use HTTP methods (GET, POST, PUT, DELETE, etc.) in combination with an HTTP URI (/collection/entry) to manipulate your data. [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><strong>Introduction</strong></p>
<p>Elasticsearch is a platform for distributed search and analysis of data in real-time. Its popularity is due to its ease of use, powerful features, and scalability.</p>
<p>Elasticsearch supports RESTful operations. This means that you can use HTTP methods (GET, POST, PUT, DELETE, etc.) in combination with an HTTP URI (/collection/entry) to manipulate your data. The intuitive RESTful approach is both developer and user-friendly, which is one of the reasons for Elasticsearch’s popularity.</p>
<p>Elasticsearch is free and open-source software with a solid company behind it — Elastic. This combination makes it suitable for use anywhere from personal testing to corporate integration.</p>
<p>This article will introduce you to Elasticsearch and show you how to install, configure, and start using it.</p>
<p><strong>Prerequisites</strong></p>
<p>Before following this tutorial, please make sure you complete the following prerequisites:</p>
<ol>
A CentOS 7 Droplet<br />
A non-root sudo user (Check out Initial Server Setup with CentOS 7 for details.)</ol>
<p>Except otherwise noted, all of the commands that require root privileges in this tutorial should be run as a non-root user with sudo privileges.</p>
<p><strong>Assumptions</strong></p>
<p>This tutorial assumes that your servers are using a VPN like the one described here: How To Use Ansible and Tinc VPN to Secure Your Server Infrastructure. This will provide private network functionality regardless of the physical network that your servers are using.</p>
<p>If you are using a shared private network, such as DigitalOcean Private Networking, you must use a VPN to protect Elasticsearch from unauthorized access. Each server must be on the same private network because Elasticsearch doesn’t have security built into its HTTP interface. The private network must not be shared with any computers you don’t trust.</p>
<p><strong>Step 1 — Installing Java</strong></p>
<p>First, you will need a Java Runtime Environment (JRE) on your Droplet because Elasticsearch is written in the Java programming language. You can use the native CentOS OpenJDK package for the JRE. This JRE is free, well-supported, and automatically managed through the CentOS Yum installation manager.</p>
<p>You can install the latest OpenJDK with the command:</p>
<pre>sudo yum install java-1.8.0-openjdk.x86_64</pre>
<p>To verify your JRE is installed and can be used, run the command:</p>
<pre>java -version</pre>
<p>The result should look like this:</p>
<pre>Output of java -version
openjdk version "1.8.0_65"
OpenJDK Runtime Environment (build 1.8.0_65-b17)
OpenJDK 64-Bit Server VM (build 25.65-b01, mixed mode)</pre>
<p>When you advance in using Elasticsearch and you start looking for better Java performance and compatibility, you may opt to install Oracle’s proprietary Java (Oracle JDK 8). For more information on how to do this, please check the article on How To Install Java on CentOS and Fedora.</p>
<p><strong>Step 2 — Downloading and Installing Elasticsearch</strong></p>
<p>Elasticsearch can be downloaded directly from elastic.co in zip, tar.gz, deb, or rpm packages. For CentOS, it’s best to use the native rpm package which will install everything you need to run Elasticsearch.</p>
<p>At the time of this writing, the latest Elasticsearch version is 1.7.3. Download it in a directory of your choosing with the command:</p>
<pre>wget https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.7.3.noarch.rpm</pre>
<p>Then install it in the usual CentOS way with the rpm command like this:</p>
<pre>sudo rpm -ivh elasticsearch-1.7.3.noarch.rpm</pre>
<p>This results in Elasticsearch being installed in /usr/share/elasticsearch/ with its configuration files placed in /etc/elasticsearch and its init script added in /etc/init.d/elasticsearch.</p>
<p>To make sure Elasticsearch starts and stops automatically with the Droplet, add its init script to the default runlevels with the command:</p>
<pre>sudo systemctl enable elasticsearch.service</pre>
<p><strong>Step 3 — Configuring Elastic</strong></p>
<p>Now that Elasticsearch and its Java dependencies have been installed, it is time to configure Elasticsearch.</p>
<p>The Elasticsearch configuration files are in the /etc/elasticsearch directory. There are two files:</p>
<p><strong>elasticsearch.yml</strong> — Configures the Elasticsearch server settings. This is where all options, except those for logging, are stored, which is why we are mostly interested in this file.<br />
<strong>logging.yml</strong> — Provides configuration for logging. In the beginning, you don’t have to edit this file. You can leave all default logging options. You can find the resulting logs in /var/log/elasticsearch by default.</p>
<p>The first variables to customize on any Elasticsearch server are node.name and cluster.name in elasticsearch.yml. As their names suggest, node.name specifies the name of the server (node) and the cluster to which the latter is associated.</p>
<p>If you don’t customize these variables, a node.name will be assigned automatically in respect to the Droplet hostname. The cluster.name will be automatically set to the name of the default cluster.</p>
<p>The cluster.name value is used by the auto-discovery feature of Elasticsearch to automatically discover and associate Elasticsearch nodes to a cluster. Thus, if you don’t change the default value, you might have unwanted nodes, found on the same network, in your cluster.</p>
<p>To start editing the main elasticsearch.yml configuration file:</p>
<pre>sudo nano /etc/elasticsearch/elasticsearch.yml</pre>
<p>Remove the # character at the beginning of the lines for node.name and cluster.name to uncomment them, and then change their values. Your first configuration changes in the /etc/elasticsearch/elasticsearch.yml file should look like this:</p>
<p>/etc/elasticsearch/elasticsearch.yml</p>
<pre>...
node.name: "My First Node"
cluster.name: mycluster1
...</pre>
<p>Another important setting is the role of the server, which could be either “master” or “slave”. “Masters” are responsible for the cluster's health and stability. In large deployments with a lot of cluster nodes, it’s recommended to have more than one dedicated “master.” Typically, a dedicated “master” will not store data or create indexes. Thus, there should be no chance of being overloaded, by which the cluster health could be endangered.</p>
<p>“Slaves” are used as “workhorses” which can be loaded with data tasks. Even if a “slave” node is overloaded, the cluster health shouldn’t be affected seriously, provided there are other nodes to take additional load.</p>
<p>The setting which determines the role of the server is called node.master. If you have only one Elasticsearch node, you should leave this option commented out so that it keeps its default value of true — i.e. the sole node should be also a master. Alternatively, if you wish to configure the node as a slave, remove the # character at the beginning of the node.master line, and change the value to false:</p>
<p>/etc/elasticsearch/elasticsearch.yml</p>
<pre>...
node.master: false
...</pre>
<p>Another important configuration option is node.data, which determines whether a node will store data or not. In most cases, this option should be left to its default value (true), but there are two cases in which you might wish not to store data on a node. One is when the node is a dedicated “master,” as we have already mentioned. The other is when a node is used only for fetching data from nodes and aggregating results. In the latter case, the node will act up as a “search load balancer”.</p>
<p>Again, if you have only one Elasticsearch node, you should leave this setting commented out so that it keeps the default true value. Otherwise, to disable storing data locally, uncomment the following line and change the value to false:</p>
<p>/etc/elasticsearch/elasticsearch.yml</p>
<pre>...
node.data: false
...</pre>
<p>Two other important options are index.number_of_shards and index.number_of_replicas. The first determines into how many pieces (shards) the index will be split into. The second defines the number of replicas that will be distributed across the cluster. Having more shards improves the indexing performance while having more replicas makes searching faster.</p>
<p>Assuming that you are still exploring and testing Elasticsearch on a single node, it’s better to start with only one shard and no replicas. Thus, their values should be set to the following (make sure to remove the # at the beginning of the lines):</p>
<p>/etc/elasticsearch/elasticsearch.yml</p>
<pre>...
index.number_of_shards: 1
index.number_of_replicas: 0
...</pre>
<p>One final setting which you might be interested in changing is path.data, which determines the path where data is stored. The default path is /var/lib/elasticsearch. In a production environment, it’s recommended that you use a dedicated partition and mount point for storing Elasticsearch data. In the best case, this dedicated partition will be a separate storage media which will provide better performance and data isolation. You can specify a different path.data path by uncommenting the path.data line and changing its value:</p>
<p>/etc/elasticsearch/elasticsearch.yml</p>
<pre>...
path.data: /media/different_media
...</pre>
<p>Once you make all the changes, please save and exit the file. Now you can start Elasticsearch for the first time with the command:</p>
<pre>sudo service elasticsearch start</pre>
<p>Please allow at least 10 seconds for Elasticsearch to fully start before you are able to use it. Otherwise, you may get errors about not being able to connect.</p>
<p><strong>Step 4 — Securing Elastic</strong></p>
<p>Elasticsearch has no built-in security and can be controlled by anyone who can access the HTTP API. This section is not a comprehensive guide to securing Elasticsearch. Take whatever measures are necessary to prevent unauthorized access to it and the server/virtual machine on which it is running. Consider using iptables to further secure your system.</p>
<p>The first security tweak is to prevent public access. To remove public access edit the file elasticsearch.yml:</p>
<p>sudo nano /etc/elasticsearch/elasticsearch.yml<br />
Find the line that contains the network.bind_host, uncomment it by removing the # character at the beginning of the line, and changing the value to localhost so it looks like this:</p>
<p>/etc/elasticsearch/elasticsearch.yml</p>
<pre>...
network.bind_host: localhost
...</pre>
<p><strong>Warning:</strong> Because Elasticsearch doesn’t have any built-in security, it is very important that you do not set this to any IP address that is accessible to any servers that you do not control or trust. Do not bind Elasticsearch to a public or shared private network IP address!</p>
<p>Also, for additional security, you can disable dynamic scripts which are used to evaluate custom expressions. By crafting a custom malicious expression, an attacker might be able to compromise your environment.</p>
<p>To disable custom expressions, add the following line is at the end of the /etc/elasticsearch/elasticsearch.yml file:</p>
<p>/etc/elasticsearch/elasticsearch.yml</p>
<pre>...
script.disable_dynamic: true
...</pre>
<p>For the above changes to take effect, you will have to restart Elasticsearch with the command:</p>
<pre>sudo service elasticsearch restart</pre>
<p><strong>Step 5 — Testing</strong></p>
<p>By now, Elasticsearch should be running on port 9200. You can test it with curl, the command line client-side URL transfers tool, and a simple GET request like this:</p>
<pre>curl -X GET 'http://localhost:9200'</pre>
<p>You should see the following response:</p>
<pre>Output of curl
{
  "status" : 200,
  "name" : "CentOS Node",
  "cluster_name" : "mysqluster",
  "version" : {
    "number" : "1.7.3",
    "build_hash" : "05d4530971ef0ea46d0f4fa6ee64dbc8df659682",
    "build_timestamp" : "2015-10-15T09:14:17Z",
    "build_snapshot" : false,
    "lucene_version" : "4.10.4"
  },
  "tagline" : "You Know, for Search"
}</pre>
<p>If you see a response similar to the one above, Elasticsearch is working properly. If not, make sure that you have followed correctly the installation instructions and you have allowed some time for Elasticsearch to fully start.</p>
<p><strong>Step 6 — Using Elasticsearch</strong></p>
<p>To start using Elasticsearch, let’s add some data first. As already mentioned, Elasticsearch uses a RESTful API, which responds to the usual CRUD commands: Create, Read, Update, and Delete. For working with it, we’ll use again curl.</p>
<p>You can add your first entry with the command:</p>
<pre>curl -X POST 'http://localhost:9200/tutorial/helloworld/1' -d '{ "message": "Hello World!" }'</pre>
<p>You should see the following response:</p>
<pre>Output
{"_index":"tutorial","_type":"helloworld","_id":"1","_version":1,"created":true}</pre>
<p>With curl, we have sent an HTTP POST request to the Elasticseach server. The URI of the request was /tutorial/helloworld/1. It’s important to understand the parameters here:</p>
<p>the tutorial is the index of the data in Elasticsearch.</p>
<p>helloworld is the type.</p>
<p>1 is the id of our entry under the above index and type.</p>
<p>You can retrieve this first entry with an HTTP GET request like this:</p>
<pre>curl -X GET 'http://localhost:9200/tutorial/helloworld/1'</pre>
<p>The result should look like:</p>
<pre>Output
{"_index":"tutorial","_type":"helloworld","_id":"1","_version":1,"found":true,"_source":{ "message": "Hello World!" }}</pre>
<p>To modify an existing entry you can use an HTTP PUT request like this:</p>
<pre>curl -X PUT 'localhost:9200/tutorial/helloworld/1?pretty' -d '
{
  "message": "Hello People!"
}'</pre>
<p>Elasticsearch should acknowledge successful modification like this:</p>
<pre>Output
{
  "_index" : "tutorial",
  "_type" : "helloworld",
  "_id" : "1",
  "_version" : 2,
  "created" : false
}</pre>
<p>In the above example, we have modified the message of the first entry to “Hello People!”. With that, the version number has been automatically increased to 2.</p>
<p>You may have noticed the extra argument pretty in the above request. It enables a human-readable format so that you can write each data field on a new row. You can also “prettify” your results when retrieving data and get much nicer output like this:</p>
<pre>curl -X GET 'http://localhost:9200/tutorial/helloworld/1?pretty'</pre>
<p>Now the response will be in a much better format:</p>
<pre>Output
{
  "_index" : "tutorial",
  "_type" : "helloworld",
  "_id" : "1",
  "_version" : 2,
  "found" : true,
  "_source":{ "message": "Hello World!" }
}</pre>
<p>Setup web server to host ElasticSearch Application</p>
<p>These options depend on the webservers you have currently installed</p>
<p>For example, if you have installed nginx/varnish/apache you can use:<br />
i. nginx -> custom port - This will proxy directly to ElasticSearch Application(RECOMMENDED)<br />
ii. nginx/varnish/apache -> custom port - This will proxy to varnish cache and then to apache and then to ElasticSearch Application</p>
<p>So far we have added to and queried data in Elasticsearch. To learn about the other operations please check the API documentation.</p>
<p><strong>Conclusion</strong></p>
<p>That’s how easy it is to install, configure, and begin using Elasticsearch. Once you have played enough with manual queries, your next task will be to start using it from your applications.</p>
]]></content:encoded>
			<wfw:commentRss>http://wiki.centos-webpanel.com/how-to-install-elasticsearch/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Slave2 DNS Server</title>
		<link>http://wiki.centos-webpanel.com/slave2-dns-server</link>
		<comments>http://wiki.centos-webpanel.com/slave2-dns-server#comments</comments>
		<pubDate>Thu, 11 Jul 2019 00:02:21 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[DNS]]></category>
		<category><![CDATA[Slave2 DNS Server]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=1205</guid>
		<description><![CDATA[Slave2 DNS Server - Cluster Setup If you need to have multiple DNS servers then you can have them connected to the slave dns manager. Slave2 DNS Server requires that you have previously installed Slave DNS Server &#038; Manager. Please read more detailed info here. Create configuration file: /root/dns_sync_slave2.conf USERNAME="slave" SERVER="121.122.123.124" SSHPORT="22" SOURCESYNCLOCATION="/var/named/slave" CHECKMAINDNS="centos-webpanel.com" LOCALSYNCLOCATION="/var/named/slave" [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><strong>Slave2 DNS Server - Cluster Setup</strong><br />
If you need to have multiple DNS servers then you can have them connected to the slave dns manager.<br />
Slave2 DNS Server requires that you have previously installed Slave DNS Server &#038; Manager.</p>
<p>Please read more detailed info <a href="/slave-dns-server-manager-dns-cluster" title="Slave DNS Server &#038; Manager – DNS Cluster">here</a>.</p>
<p>Create configuration file: /root/dns_sync_slave2.conf</p>
<pre>USERNAME="slave"
SERVER="121.122.123.124"
SSHPORT="22"
SOURCESYNCLOCATION="/var/named/slave"
CHECKMAINDNS="centos-webpanel.com"
LOCALSYNCLOCATION="/var/named/slave"
LOCALCONFFILE="/etc/named/slave_additional.conf"</pre>
<p>* SERVER = IP of Slave DNS Server &#038; Manager.<br />
* SSHPORT = SSH-Port of Slave DNS Server &#038; Manager.<br />
* SOURCESYNCLOCATION = Location of DNS zone files on Slave DNS Server &#038; Manager.<br />
* CHECKMAINDNS = This is a domain used for testing Slave DNS Server &#038; Manager, it can be any and it doesn't need to be on the server.<br />
* LOCALSYNCLOCATION = Location for DNS zone files on this local server.<br />
* LOCALCONFFILE = Configuration files which contains the list of all zone files on this local server.</p>
<p>Setup cron how often you want to check for changes</p>
<pre>crontab -e</pre>
<p>* On servers with many clients and domains 100+ we recommend 5min cron.<br />
* For servers with 1000+ you can go even with every 1-2 minutes.<br />
example every 1 minute</p>
<pre>* * * * * sh /scripts/dns_sync_slave2</pre>
<p>In file /etc/named.conf after last include add:</p>
<pre>include "/etc/named/slave_additional.conf";</pre>
<p>Prepare config files</p>
<pre>touch /etc/named/slave_additional.conf
chown named.named /etc/named/slave_additional.conf</pre>
<p>go in cwp.admin -> Server Settings -> SSH Key Generator<br />
there you need to generate new Keys</p>
<p>Go to Slave DNS Server &#038; Manager<br />
add key to the Slave DNS Server &#038; Manager user you are using as "slave"</p>
<pre>mkdir /home/slave/.ssh
nano /home/slave/.ssh/authorized_keys</pre>
<p><em>** paste your key here which you had generated on the Slave2 DNS Server</em></p>
<pre>chown -R slave.slave /home/slave/.ssh
chmod 600 /home/slave/.ssh/authorized_keys
chmod 700 /home/slave/.ssh/</pre>
<p>You will also need to enable bash shell for that user so rsync could work</p>
<pre>chsh -s /bin/bash slave</pre>
<p>You can now test ssh connection like this from Slave2 DNS Server to Slave DNS Server &#038; Manager<br />
ssh slave@SERVER-IP -p SSH-PORT<br />
If your connection goes ok without asking for the password then you are fully set.</p>
]]></content:encoded>
			<wfw:commentRss>http://wiki.centos-webpanel.com/slave2-dns-server/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Slave DNS Server &amp; Manager download version</title>
		<link>http://wiki.centos-webpanel.com/slave-dns-server-manager-download-version</link>
		<comments>http://wiki.centos-webpanel.com/slave-dns-server-manager-download-version#comments</comments>
		<pubDate>Wed, 10 Jul 2019 23:42:15 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[DNS]]></category>
		<category><![CDATA[Slave DNS Manager Download]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=1199</guid>
		<description><![CDATA[Slave DNS Server &#038; Manager download version - installation instructions Please read more detailed info here. Latest Update: March 7, 2021 For Slave DNS Manager is recommended that you have a clean server with CWP which will be used as Slave DNS (ns2). Create a New Account on the CWPpro Server * This is the [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><strong>Slave DNS Server &#038; Manager download version - installation instructions</strong><br />
Please read more detailed info <a href="/slave-dns-server-manager-dns-cluster" title="Slave DNS Server &#038; Manager – DNS Cluster">here</a>.</p>
<p><strong>Latest Update:</strong> March 7, 2021</p>
<p><em>For Slave DNS Manager is recommended that you have a clean server with CWP which will be used as Slave DNS (ns2).</em></p>
<p><strong>Create a New Account on the CWPpro Server</strong><br />
<em>* This is the server you plan to use as Slave DNS Server &#038; Manager</em><br />
username: recommended is slave (as it will be used in the tutorial)<br />
domain: domain which you plan to use for slave dns manager gui and API access</p>
<p><strong>Download Slave DNS Manage and upload it to public_html folder on your cwp account</strong><br />
Latest update: July 20, 2019. (manual update required by overwriting files)</p>
<pre>cd /home/USERNAME/public_html
wget http://dl1.centos-webpanel.com/files/cwp/addons/cwp-slave_dns.zip
unzip cwp-slave_dns.zip
mv slave_dns/* .
rm -f index.html</pre>
<p><strong>Fix file permissions (you can do that also from cwp)</strong></p>
<pre>chown -R USERNAME.USERNAME /home/USERNAME/public_html/*</pre>
<p><strong>MySQL: Create User and Database</strong><br />
Go to CWP module: MySQL Manager --> Create Database and User </p>
<p>Edit file /home/USERNAME/public_html/inc/db_conn.php.sample and enter your database connection details<br />
Rename sample file to get DB connection into production</p>
<pre>mv inc/db_conn.php.sample inc/db_conn.php</pre>
<p>Import database by using PhpMyAdmin or with MySQL command</p>
<pre>mysql DATABASENAME < sql/slave_dns.sql</pre>
<p>Create permissions for the user to be able to control the bind DNS.<br />
Replace USERNAME with the user of the account you had created in cwp</p>
<p>FILENAME: /etc/sudoers.d/USERNAME</p>
<pre>
%USERNAME  ALL= NOPASSWD: /bin/systemctl start named
%USERNAME  ALL= NOPASSWD: /bin/systemctl stop named
%USERNAME  ALL= NOPASSWD: /bin/systemctl restart named
%USERNAME  ALL= NOPASSWD: /bin/systemctl reload named
%USERNAME  ALL= NOPASSWD: /bin/systemctl status named
%USERNAME  ALL= NOPASSWD: /bin/systemctl is-active named
</pre>
<pre>touch /etc/named/slave.conf
chmod 771 /etc/named
usermod -a -G named USERNAME
chown USERNAME.named /etc/named/slave.conf

mkdir /var/named/slave
chown named.named /var/named/slave</pre>
<p>Edit File: /etc/named.conf and add this in options section before closing }</p>
<pre>masterfile-format text;</pre>
<p>Add after options{} where other include lines are specifed</p>
<pre>//Slave dns configuration
include "/etc/named/slave.conf";</pre>
<p>Now you can login to DNS Manager GUI by using a domain link of the account you have created</p>
<p><strong>Default login for DNS Manager GUI admin/root</strong><br />
Username: root<br />
Password: FX8QKxvQ<br />
<em>* Please change the default password after the first login</em></p>
<p><strong>Adding WebServers to DNS</strong><br />
- On dns manager GUI create a new user for each server or use a single for all webservers if you plan to transfer accounts from one to another webserver.<br />
- On CWP WebServer go to DNS Functions -> Slave DNS Manager</p>
<p>For Slave Host you need to use the same URL you are accessing DNS Manager GUI, example</p>
<p>http://slave-dns.manager.domain.com</p>
<p>* You can also add this as an addon domain to the account later.</p>
<h1>CWPpro WebServer configuration</h1>
<p>Edit File: /etc/named.conf and add this in options section before closing }</p>
<pre>//Slave dns configuration
allow-transfer {111.112.113.114;};
allow-recursion {111.112.113.114;};
also-notify {111.112.113.114;};
masterfile-format text;
</pre>
<p><strong>Mostly know issues</strong><br />
issue: domain/zone not deleted from /etc/named/slave.conf<br />
apache logs file: /usr/local/apache/domlogs/DOMAIN.error.log<br />
apache logs line: sed: couldn't open temporary file /etc/named/sedzizIXw: Permission denied<br />
solution: chmod 771 /etc/named</p>
<p>issue: Slave BIND/DNS not showing changes<br />
solution: try to restart named and check if the service has some errors in the /var/log/messages</p>
]]></content:encoded>
			<wfw:commentRss>http://wiki.centos-webpanel.com/slave-dns-server-manager-download-version/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Slave DNS Server &amp; Manager - DNS Cluster</title>
		<link>http://wiki.centos-webpanel.com/slave-dns-server-manager-dns-cluster</link>
		<comments>http://wiki.centos-webpanel.com/slave-dns-server-manager-dns-cluster#comments</comments>
		<pubDate>Wed, 10 Jul 2019 23:06:54 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[Clusters]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[Slave DNS Server]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=1197</guid>
		<description><![CDATA[CWP SLAVE DNS and DNS Clusters Please note that we have two options of slave DNS: - Slave DNS Server on our hosted server (you get an account with domain limit you need) - Slave DNS Server download version (a full and FREE Slave DNS Manager where you can add/remove users, set domain limits and [&#8230;]]]></description>
				<content:encoded><![CDATA[<h1>CWP SLAVE DNS and DNS Clusters</h1>
<p>Please note that we have two options of slave DNS:<br />
- Slave DNS Server on our hosted server (you get an account with domain limit you need)<br />
- Slave DNS Server download version (a full and FREE Slave DNS Manager where you can add/remove users, set domain limits and manage domains)<br />
<em>* The only requirement is to have a CWPpro license.</em></p>
<p><a href="http://wiki.centos-webpanel.com/wp-content/uploads/2019/07/CWP_DNS_Cluster1.png"><img src="/wp-content/uploads/2019/07/CWP_DNS_Cluster-e1562804855974.png" alt="CWP_DNS_Cluster" class="alignnone size-medium wp-image-1211" /></a></p>
<p><strong>Slave DNS Server &#038; Manager on our hosted server</strong><br />
For those having only a single VPS or dedicated server and with a need additional remote DNS server as ns2 they can order a slave DNS from our website.</p>
<p>Features of CWP Slave DNS server hosted by us:<br />
- Automatic sync DNS zones from a master server (your CWPpro) on serial change.<br />
- Automatic sync DNS zones on add/remove.<br />
- Manage DNS zones/domains from your CWP or our Website GUI.<br />
- You get an account on our Slave DNS Manager where you have a limited number of domains based on the package you order.<br />
- You don't need to buy an additional server and manually setup DNS on it.</p>
<p>You can order it <a href="https://support.centos-webpanel.com/cart.php?a=add&#038;pid=13" title="CWP - Slave DNS Server" target="_blank">here</a>.</p>
<p><strong>Slave DNS Server &#038; Manager download version</strong><br />
A Full and FREE Slave DNS Server &#038; Manager where you can add/remove users, set domain limits and manage domains.<br />
The most important part is that this is a completely FREE and scalable for bigger hosting providers with many domains.</p>
<p>Features of CWP Slave DNS Server &#038; Manager download version:<br />
- Completely FREE, The only requirement is to have CWPpro to be able to sync zones.<br />
- Automatic sync DNS zones from a master server (your CWPpro) on serial change.<br />
- Automatic sync DNS zones on add/remove.<br />
- Unlimited number of accounts.<br />
- Option to limit the number of domains per account (if you sell/offer DNS cluster to other clients).<br />
- Ability to connect multiple Slave2 DNS Servers (used as DNS Cluster).<br />
- Ability to connect multiple CWPpro WebServers on a single account.<br />
- Ability to connect multiple CWPpro WebServers on separate accounts.</p>
<p>You can check the installation instructions <a href="/slave-dns-server-manager-download-version" title="CWP - Slave DNS Server &#038; Manager download" target="_blank">here</a>.</p>
<p>Possible scenarios:<br />
You can connect multiple CWPpro WebServers to single Slave DNS Manager and make it as ns2 for all of the CWPpro Webservers.<br />
You can also use it as ns1 and then add multiple additional Slave2 DNS Servers as ns2, ns3, ns4....</p>
<p><strong>Slave DNS Server &#038; Manager - How it works:</strong><br />
In CWPpro WebServer on dns zone serial change, new account/domain/subdomain add/remove/edit it syncs DNS zone to the Slave DNS Manager.<br />
DNS Zone is added to Slave DNS Manager from CWPpro WebServer via API on the Slave DNS Manager then Bind dns server (on the slave) transfers zone to itself acting as a slave dns server.</p>
<p><strong>Slave2 DNS Server - How it works:</strong><br />
Big providers mostly have a custom DNS Cluster which handles all dns domains they have on multiple webservers to reduce resource usage by dns on the webservers.<br />
Slave2 DNS Server is designed to be an additional DNS Server for big providers which need to have stability if some DNS servers get overloaded or unavailable.</p>
<p>It's using rsync running via cron which checks for changes on the Slave DNS Manager and based on the changes from rsync it will add or remove dns zone from itself.<br />
It also has the ability to check if Slave DNS Manage is responding on dns queries before accepting new changes to prevent multiple DNS servers to be down at the same time.</p>
<p>Slave DNS Servers can be located in different data centers worldwide.</p>
<p>You can check the installation instructions for Slave2 DNS Servere <a href="/slave2-dns-server" title="CWP - Slave2 DNS Server" target="_blank">here</a>.</p>
<p><strong>INFO</strong><br />
<em>* Only WebServers need to have CWPpro, DNS servers don't need to have it.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://wiki.centos-webpanel.com/slave-dns-server-manager-dns-cluster/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CWP Scripts</title>
		<link>http://wiki.centos-webpanel.com/cwp-scripts</link>
		<comments>http://wiki.centos-webpanel.com/cwp-scripts#comments</comments>
		<pubDate>Tue, 31 Mar 2015 17:52:35 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=241</guid>
		<description><![CDATA[CentOS Web Panel has also a scripts folder to help you with the upgrades or additional tool installations. For all of you liking to work in a shell, we are preparing an additional scripts list. Available Scripts with the latest version /scripts/upgrade_mysql &#62;&#62; Upgrade phpMyAdmin and MySQL to 5.5 /scripts/install_imagick &#62;&#62; Installs Image Magick /scripts/install_maldet [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>CentOS Web Panel has also a scripts folder to help you with the upgrades or additional tool installations.<br />
For all of you liking to work in a shell, we are preparing an additional scripts list.</p>
<p><strong>Available Scripts with the latest version</strong></p>
<hr />
<pre>/scripts/upgrade_mysql</pre>
<p>&gt;&gt; Upgrade phpMyAdmin and MySQL to 5.5</p>
<pre>/scripts/install_imagick</pre>
<p>&gt;&gt; Installs Image Magick</p>
<pre>/scripts/install_maldet</pre>
<p>&gt;&gt; Installs Maldet</p>
<pre>/scripts/install_net2ftp</pre>
<p>&gt;&gt; Installs Net2FTP, Usage http:&gt;&gt; IP/net2ftp</p>
<pre>/scripts/user_backup</pre>
<p>&gt;&gt; Create User backup, Usage: sh /scripts/user_backup USERNAME</p>
<pre>/scripts/whoowns</pre>
<p>&gt;&gt; Get Domain owner, Usage: sh /scripts/whoowns DOMAIN</p>
<pre>/scripts/list_users</pre>
<p>&gt;&gt; List all user accounts</p>
<pre>/scripts/list_domains</pre>
<p>&gt;&gt; List all addon domains</p>
<pre>/scripts/list_subdomains</pre>
<p>&gt;&gt; List all Sub-Domains</p>
<pre>/scripts/cwp_bruteforce_protection</pre>
<p>&gt;&gt; Enable CSF/LFD Brute/Force protection</p>
<pre>/scripts/mysql_pwd_reset</pre>
<p>&gt;&gt; Reset root MySQL password</p>
<pre>/scripts/restart_cwpsrv</pre>
<p>&gt;&gt; Restart CWP (restarts panel only)</p>
<pre>/scripts/cwp_version</pre>
<p>&gt;&gt; Check CWP version</p>
<pre>/scripts/add_alert</pre>
<p>&gt;&gt; Additional alert addition</p>
<pre>/scripts/apache_mpm_calculator</pre>
<p>&gt;&gt; To generate Apache MPM configuration</p>
<pre>/scripts/autossl_fix_tmp_path</pre>
<p>&gt;&gt; AutoSSL temp/tmp path correction</p>
<pre>/scripts/autossl_generate_apache_conf</pre>
<p>&gt;&gt; AutoSSL generation</p>
<pre>/scripts/autossl_reload</pre>
<p>&gt;&gt; AutoSSL reload</p>
<pre>/scripts/bandwidth_run</pre>
<p>&gt;&gt; Bandwidth check</p>
<pre>/scripts/cgroups_blkio</pre>
<p>&gt;&gt; Gets disk id for cgroups</p>
<pre>/scripts/check_api</pre>
<p>&gt;&gt; API detailed check</p>
<pre>/scripts/checkdb</pre>
<p>&gt;&gt; Database error check</p>
<pre>/scripts/check_postqueue</pre>
<p>&gt;&gt; MailQueue check</p>
<pre>/scripts/chroot_add</pre>
<p>&gt;&gt; To add JailKit</p>
<pre>/scripts/chroot_remove</pre>
<p>&gt;&gt; To remove JailKit</p>
<pre>/scripts/clamd_fix_100_cpu_usage</pre>
<p>&gt;&gt; Clamd 100% CPU usage fix</p>
<pre>/scripts/cpanel_addhandlers</pre>
<p>&gt;&gt; Add cPanel AddHandler into cwp suphp</p>
<pre>/scripts/cron_fix_openbasedir</pre>
<p>&gt;&gt; Openbase Dir Cron Fix</p>
<pre>/scripts/cwp_bruteforce_protection</pre>
<p>&gt;&gt; Apply BruteForce Protection to CWP</p>
<pre>/scripts/cwp_monitor</pre>
<p>&gt;&gt; Server load parameter check</p>
<pre>/scripts/cwpsecure_update_rules</pre>
<p>&gt;&gt; Secure Kernel rules update</p>
<pre>/scripts/cwp_set_memory_limit</pre>
<p>&gt;&gt; Memory limit variable change</p>
<pre>/scripts/cwpsrv_rebuild_user_conf</pre>
<p>&gt;&gt; Rebuild User Configuration files for all users</p>
<pre>/scripts/disk_check</pre>
<p>&gt;&gt; Disk Partition Usage check</p>
<pre>/scripts/dns_sync_slave2</pre>
<p>&gt;&gt; DNS Zones sync command</p>
<pre>/scripts/dso_handler_remove</pre>
<p>&gt;&gt; PHP DSO Handler remover</p>
<pre>/scripts/el8_stream_convert_to_cwp_stable</pre>
<p>&gt;&gt; CentOS 8 Stream to CentOS 8 Stable conversion (enable cwp delayed update repo)</p>
<pre>/scripts/freshclam</pre>
<p>&gt;&gt; ClamAV update</p>
<pre>/scripts/generate_hostname_ssl</pre>
<p>&gt;&gt; Server Hostname SSL Generation</p>
<pre>/scripts/hostname_ssl_restart_services</pre>
<p>&gt;&gt; Hostname Service Restart</p>
<pre>/scripts/image_rebuild_server_config</pre>
<p>&gt;&gt; Server Configuration rebuild to default</p>
<pre>/scripts/install_acme</pre>
<p>&gt;&gt; Install Let's Encrypt SSL Installer</p>
<pre>/scripts/install_api</pre>
<p>&gt;&gt; CWP API Generation/Installation</p>
<pre>/scripts/install_cbpolicyd</pre>
<p>&gt;&gt; Install Hourly Email sending limit</p>
<pre>/scripts/install_imagick</pre>
<p>&gt;&gt; Install PHP Imagick</p>
<pre>/scripts/install_pure-ftpd_tls</pre>
<p>&gt;&gt; Install TLS Services on FTP Server</p>
<pre>/scripts/install_supportKey</pre>
<p>&gt;&gt; Install Support Key to grant access of server to support team</p>
<pre>/scripts/install_terminal</pre>
<p>&gt;&gt; CWP INSTALL APP TERMINAL</p>
<pre>/scripts/list_domains</pre>
<p>&gt;&gt; List Hosted Domains</p>
<pre>/scripts/list_subdomains</pre>
<p>&gt;&gt; List hosted sub-domains</p>
<pre>/scripts/list_users</pre>
<p>&gt;&gt; List usernames on server</p>
<pre>/scripts/mail_queue_stats</pre>
<p>&gt;&gt; MailQueue statistics</p>
<pre>/scripts/mail_roundcube_update</pre>
<p>&gt;&gt; RoundCube version update</p>
<pre>/scripts/mail_vmail_import</pre>
<p>&gt;&gt; Script to import all email accounts from /var/vmail folder</p>
<pre>/scripts/mail_rebuild_sni_certs</pre>
<p>&gt;&gt; Script to rebuild mail postfix and dovecot certificates for all domains</p>
<pre>/scripts/mysql_fix_myisam_tables</pre>
<p>&gt;&gt; Repair MySQL MyISAM Tables</p>
<pre>/scripts/mysql_phpmyadmin_update</pre>
<p>&gt;&gt; PHPMyAdmin update</p>
<pre>/scripts/mysql_set_max_connections</pre>
<p>&gt;&gt; MySQL Max_Connection parameter settings</p>
<pre>/scripts/mysql_show_max_connections</pre>
<p>&gt;&gt; Shows Current Max_Connection parameter settings</p>
<pre>/scripts/net_show_connections</pre>
<p>&gt;&gt; CWP show connection number and sort them by size</p>
<pre>/scripts/open_basedir-suphp</pre>
<p>&gt;&gt; this script will activate and force open_basedir for all users</p>
<pre>/scripts/php_big_file_upload</pre>
<p>&gt;&gt; To set file upload limit</p>
<pre>/scripts/phpfpm_rebuild_user_conf</pre>
<p>&gt;&gt; Rebuild PHP-FPM user configuration file</p>
<pre>/scripts/reinstall_clamd_amavisd</pre>
<p>&gt;&gt; Reinstall Clamd and Amavis</p>
<pre>/scripts/reinstall_pure-ftpd</pre>
<p>&gt;&gt; Reinstall Pure-FTP</p>
<pre>/scripts/reload_cwpsrv</pre>
<p>&gt;&gt; Deamon Reload</p>
<pre>/scripts/restart_cwpsrv</pre>
<p>&gt;&gt; CWP Service restarts</p>
<pre>/scripts/restart_httpd</pre>
<p>&gt;&gt; Service Apache restarts</p>
<pre>/scripts/security_is_my_server_hacked</pre>
<p>&gt;&gt; Check for mostly know hacked servers</p>
<pre>/scripts/softaculous_fix_update</pre>
<p>&gt;&gt; If softaculous is not working</p>
<pre>/scripts/ulimit_user_check</pre>
<p>&gt;&gt; Limit check for specific user</p>
<pre>/scripts/update_cwp</pre>
<p>&gt;&gt; CWP Server Update to next version</p>
<pre>/scripts/update_ioncube</pre>
<p>&gt;&gt; IonCube installer (this script will update ioncube to latest possible version)</p>
<pre>/scripts/user_backup</pre>
<p>&gt;&gt; Backup a specific user</p>
<pre>/scripts/varnish_clear_cache</pre>
<p>&gt;&gt; Clear Varnish Cache</p>
<p><strong>Usage</strong><br />
sh /scripts/SCRIPT-NAME<br />
/scripts/SCRIPT-NAME</p>
<p>You can check for scripts in the <strong>/scripts/</strong> folder.<br />
...many others coming soon.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://wiki.centos-webpanel.com/cwp-scripts/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
