<?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</title>
	<atom:link href="https://wiki.centos-webpanel.com/feed" rel="self" type="application/rss+xml" />
	<link>https://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>Clean all server logs</title>
		<link>https://wiki.centos-webpanel.com/clean-all-server-logs</link>
		<comments>https://wiki.centos-webpanel.com/clean-all-server-logs#comments</comments>
		<pubDate>Sun, 31 May 2026 15:38:19 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Clean server logs]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=1894</guid>
		<description><![CDATA[This script will help you to get your server disk space cleaned from old and active logs. * WARNING!!! It will delete all server logs! This script deletes: - messages logs - maillog logs - apache/nginx domain logs - apache standard logs - php-fpm logs - /tmp and session logs - root maillog - acme/letsencrypt [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>This script will help you to get your server disk space cleaned from old and active logs.<br />
<strong>* WARNING!!! It will delete all server logs!</strong></p>
<p><strong>This script deletes:</strong><br />
- messages logs<br />
- maillog logs<br />
- apache/nginx domain logs<br />
- apache standard logs<br />
- php-fpm logs<br />
- /tmp and session logs<br />
- root maillog<br />
- acme/letsencrypt logs<br />
- cwp logs</p>
<p><strong>Usage: </strong></p>
<pre>sh /scripts/clean_all_server_logs</pre>
]]></content:encoded>
			<wfw:commentRss>https://wiki.centos-webpanel.com/clean-all-server-logs/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Show Disk Usage per User</title>
		<link>https://wiki.centos-webpanel.com/show-disk-usage-per-user</link>
		<comments>https://wiki.centos-webpanel.com/show-disk-usage-per-user#comments</comments>
		<pubDate>Sun, 31 May 2026 15:31:14 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Disk Usage per User]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=1888</guid>
		<description><![CDATA[This script will list all users and disk space used by users per partition, it will sort highest disk space users on the top. It will also show quota limits per user. Usage: sh /scripts/disk_usage_per_user Example output: [root@webserver ~]# sh /scripts/disk_usage_per_user -------------------------------------------------------------------------------- USER PARTITION USED SOFT LIMIT HARD LIMIT -------------------------------------------------------------------------------- crwcave /dev/md3 110G 147G 147G [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>This script will list all users and disk space used by users per partition, it will sort highest disk space users on the top. It will also show quota limits per user.</p>
<p><strong>Usage: </strong></p>
<pre>sh /scripts/disk_usage_per_user</pre>
<p><strong>Example output: </strong></p>
<pre>[root@webserver ~]# sh /scripts/disk_usage_per_user
--------------------------------------------------------------------------------
USER                   PARTITION    USED       SOFT LIMIT   HARD LIMIT  
--------------------------------------------------------------------------------
crwcave                /dev/md3     110G       147G         147G        
root                   /dev/md3     101G       Unlimited    Unlimited   
rexlestatevrt          /dev/md3     89192M     147G         147G        
devlfgfd               /dev/md3     86660M     147G         147G        
elektrocpp             /dev/md3     75215M     99999M       99999M      
autocop                /dev/md3     61517M     147G         147G        
</pre>
]]></content:encoded>
			<wfw:commentRss>https://wiki.centos-webpanel.com/show-disk-usage-per-user/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clean GoAccess Files/Data</title>
		<link>https://wiki.centos-webpanel.com/clean-goaccess-filesdata</link>
		<comments>https://wiki.centos-webpanel.com/clean-goaccess-filesdata#comments</comments>
		<pubDate>Sun, 31 May 2026 15:23:06 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[goAcceess Clean]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=1885</guid>
		<description><![CDATA[To clean all GoAccess Files/Data older than X months you can use our script Example: Clean all files older than 3 months sh /scripts/clean_goaccess_files 3 * This script will delete all goAccess Files/Data and free some disk space on your server.]]></description>
				<content:encoded><![CDATA[<p>To clean all GoAccess Files/Data older than <strong>X</strong> months you can use our script</p>
<p><strong>Example:</strong> Clean all files older than 3 months</p>
<pre>sh /scripts/clean_goaccess_files 3</pre>
<p>* This script will delete all goAccess Files/Data and free some disk space on your server.</p>
]]></content:encoded>
			<wfw:commentRss>https://wiki.centos-webpanel.com/clean-goaccess-filesdata/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Amavisd process using 100% CPU</title>
		<link>https://wiki.centos-webpanel.com/amavisd-process-using-100-cpu</link>
		<comments>https://wiki.centos-webpanel.com/amavisd-process-using-100-cpu#comments</comments>
		<pubDate>Sun, 31 May 2026 14:55:08 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[E-Mail]]></category>
		<category><![CDATA[amavisd 100% CPU]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=1879</guid>
		<description><![CDATA[If amavisd process in your server is taking 100% CPU then try the following Add this configuration in file /etc/mail/spamassassin/local.cf use_bayes 0 bayes_auto_learn 0 then restart amavisd systemctl restart amavisd]]></description>
				<content:encoded><![CDATA[<p>If amavisd process in your server is taking 100% CPU then try the following</p>
<p>Add this configuration in file <strong>/etc/mail/spamassassin/local.cf</strong></p>
<pre>use_bayes 0
bayes_auto_learn 0
</pre>
<p>then restart amavisd</p>
<pre>systemctl restart amavisd</pre>
]]></content:encoded>
			<wfw:commentRss>https://wiki.centos-webpanel.com/amavisd-process-using-100-cpu/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL: Recover Crashed innodb tables</title>
		<link>https://wiki.centos-webpanel.com/mysql-recover-crashed-innodb-tables</link>
		<comments>https://wiki.centos-webpanel.com/mysql-recover-crashed-innodb-tables#comments</comments>
		<pubDate>Wed, 12 Feb 2025 20:22:12 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[InnoDB Recovery]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=1865</guid>
		<description><![CDATA[How Innodb crash can happen ? - Innodb table can crash if there is power lose for your dedicated server. - Force shutdown of MySQL service can end up in Innodb crash. - Space issue on the serve can case Innodb crash, if the server space is 100% filled and mysql not able to write [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><strong>How Innodb crash can happen ?</strong></p>
<p>- Innodb table can crash if there is power lose for your dedicated server.<br />
- Force shutdown of MySQL service can end up in Innodb crash.<br />
- Space issue on the serve can case Innodb crash, if the server space is 100% filled and mysql not able to write on the disk.<br />
- High load on the server can cause Innodb crash.<br />
- High I/O wait on the disk can also cause MySQL innodb crash.</p>
<p><strong>How to determine if innodb is crashed.?</strong><br />
You can determine this by checking MySQL logs, On most of the servers location of the Log is /var/lib/mysql/HOSTNAME.err<br />
You can also use commands:</p>
<pre>systemctl status mariadb.service
journalctl -xe</pre>
<p><strong>Full MySQL backup</strong><br />
Backup MySQL users and permissions</p>
<pre>pt-show-grants > /root/pt-show-grants.sql</pre>
<p>Backup Full MySQL folder, Make sure MySQL is <strong>STOPPED</strong> for this step</p>
<pre>rsync -a /var/lib/mysql /home/mysql_bkp/ </pre>
<p><strong>Instructions for full mysql reinstall and recovery</strong><br />
If you can't start mysql, you can try by adding the following code in file /etc/my.cnf.d/server.cnf under <strong>[galera]</strong> settings</p>
<pre>innodb_force_recovery = 1</pre>
<p><strong>Now try to start/restart MariaDB</strong></p>
<pre>systemctl restart mariadb.service</pre>
<p>* If started successfully then you can start with backup, please note that MySQL is now in read-only  mode.<br />
* If not starting then try increasing recovery number for one number in each test</p>
<pre>innodb_force_recovery = 2</pre>
<pre>innodb_force_recovery = 3</pre>
<pre>innodb_force_recovery = 4</pre>
<pre>innodb_force_recovery = 5</pre>
<pre>innodb_force_recovery = 6</pre>
<p>When the MySQL is started in recovery mode we need to take backup of all the crashed databases and restore it</p>
<p><strong>Create backup location folders</strong></p>
<pre>mkdir /home/mysql_innodb_recovery
mkdir /home/mysql_innodb_recovery/database_backup
</pre>
<p><strong>Create the list of databases</strong></p>
<pre>mysql -e 'show databases;' | grep -v information_schema | grep -v Database  > /home/mysql_innodb_recovery/database_list.txt</pre>
<p>* Please confirm that all databases are listed in the file /home/mysql_innodb_recovery/database_list.txt</p>
<p><strong>Make backup of each databases including the database called mysql which is very important. </strong></p>
<pre>for db in `cat /home/mysql_innodb_recovery/database_list.txt`; do mysqldump $db > /home/mysql_innodb_recovery/database_backup/$db.sql;done</pre>
<p>* this process can take a lot of time depending on your MySQL disk usage.<br />
* Make sure you confirm that all <strong>.sql</strong> files in folder <strong>/home/mysql_innodb_recovery/database_backup/</strong> are not empty.</p>
<p><strong>Drop current databases</strong> (We can remove them if the backup was successful)</p>
<pre>for db in `cat /home/mysql_innodb_recovery/database_list.txt`; do mysqladmin drop $db;done</pre>
<p>Some database won’t get dropped which can be directly removed using the rm -Rf command</p>
<pre>rm -Rf /var/lib/mysql/DATABASENAME</pre>
<p>Next is to remove ibdata and ib_log files</p>
<pre>rm -f ibdata* ib_logfile*</pre>
<p><strong>Restarting MariaDB</strong><br />
Remove recovery line <strong>innodb_force_recovery</strong> from <strong>/etc/my.cnf.d/server.cnf</strong> and restart MariaDB</p>
<pre>systemctl restart mariadb.service</pre>
<p><strong>Creating Databases</strong><br />
If the MySQL now works we can start restoring databases, first create databases</p>
<pre>for db in `cat /home/mysql_innodb_recovery/database_list.txt`; do mysqladmin create $db;done</pre>
<p><strong>Restoring Databases</strong><br />
Now we will restore the backups we have taken.</p>
<pre>for db in `cat /home/mysql_innodb_recovery/database_list.txt`; do mysqldump $db < /home/mysql_innodb_recovery/database_backup/$db.sql;done</pre>
<p>* This process will take some time, after it is done confirm that there are no any issues in the MySQL logs.</p>
<p>In case of some issues you still have the exact replica of databases in folder /home/mysql_bkp/<br />
MySQL users and permissions are stored in file /root/pt-show-grants.sql<br />
Individual databases backups are stored in .sql files in folder /home/mysql_innodb_recovery/database_backup/</p>
<p>* We suggest to keep all those files few days after the successful restore.</p>
]]></content:encoded>
			<wfw:commentRss>https://wiki.centos-webpanel.com/mysql-recover-crashed-innodb-tables/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS 7: Could not resolve host: mirrorlist.centos.org</title>
		<link>https://wiki.centos-webpanel.com/centos-7-could-not-resolve-host-mirrorlist-centos-org</link>
		<comments>https://wiki.centos-webpanel.com/centos-7-could-not-resolve-host-mirrorlist-centos-org#comments</comments>
		<pubDate>Sun, 09 Feb 2025 21:10:03 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[CentOS 7 EOL]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=1861</guid>
		<description><![CDATA[Errors with yum on CentOS 7 when updating server packages Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&#038;arch=x86_64&#038;repo=os&#038;infra=stock error was 14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Name or service not known" On July 1, 2024, CentOS 7 reached end of life, and the CentOS team has moved its repositories to the archive at vault.centos.org. Without updating [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Errors with yum on CentOS 7 when updating server packages</p>
<pre>
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&#038;arch=x86_64&#038;repo=os&#038;infra=stock error was
14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Name or service not known"</pre>
<p><em>On July 1, 2024, CentOS 7 reached end of life, and the CentOS team has moved its repositories to the archive at vault.centos.org. Without updating the repository URLs, packages cannot be updated or validated, resulting in these errors.<br />
</em></p>
<p>Solution, run script:</p>
<pre>/scripts/centos7_fix_repository</pre>
]]></content:encoded>
			<wfw:commentRss>https://wiki.centos-webpanel.com/centos-7-could-not-resolve-host-mirrorlist-centos-org/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>No space left on device: AH00023: Couldn&#039;t create the proxy mutex</title>
		<link>https://wiki.centos-webpanel.com/no-space-left-on-device-ah00023-couldnt-create-the-proxy-mutex</link>
		<comments>https://wiki.centos-webpanel.com/no-space-left-on-device-ah00023-couldnt-create-the-proxy-mutex#comments</comments>
		<pubDate>Sat, 20 Jan 2024 21:36:05 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=1852</guid>
		<description><![CDATA[Example error messages in apache log file /usr/local/apache/logs/error_log [core:emerg] [pid 2013449:tid 140639997298560] (28)No space left on device: AH00023: Couldn't create the proxy mutex [proxy:crit] [pid 2013449:tid 140639997298560] (28)No space left on device: AH02478: failed to create proxy mutex In most cases this error message will not allow you to start apache, solution is to restart [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Example error messages in apache log file <strong>/usr/local/apache/logs/error_log</strong></p>
<p>[core:emerg] [pid 2013449:tid 140639997298560] (28)No space left on device: AH00023: Couldn't create the proxy mutex<br />
[proxy:crit] [pid 2013449:tid 140639997298560] (28)No space left on device: AH02478: failed to create proxy mutex</p>
<p>In most cases this error message will not allow you to start apache, solution is to restart the server or use the command bellow.</p>
<p><strong>Solution:</strong></p>
<pre>ipcs -s | awk -v user=nobody '$3==user {system("ipcrm -s "$2)}'</pre>
]]></content:encoded>
			<wfw:commentRss>https://wiki.centos-webpanel.com/no-space-left-on-device-ah00023-couldnt-create-the-proxy-mutex/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CWP Expired: Error 500</title>
		<link>https://wiki.centos-webpanel.com/cwp-expired-error-500</link>
		<comments>https://wiki.centos-webpanel.com/cwp-expired-error-500#comments</comments>
		<pubDate>Fri, 23 Jun 2023 10:43:58 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[Updates]]></category>
		<category><![CDATA[cron.php]]></category>
		<category><![CDATA[CWP Expired]]></category>
		<category><![CDATA[Error 500]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=1840</guid>
		<description><![CDATA[If you are getting error 500 when trying to access CWP that means that for some reason your CWP automatic updates don't work Example Error message: PHP Fatal error: The encoded file /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php has expired. in Unknown on line 0 The solution is to manually update CWP from the bash shell. cd /usr/local/cwpsrv/htdocs chattr -i [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>If you are getting error 500 when trying to access CWP that means that for some reason your CWP automatic updates don't work</p>
<p><strong>Example Error message:</strong></p>
<pre>PHP Fatal error: 
The encoded file /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php has expired.
 in Unknown on line 0</pre>
<p>The solution is to manually update CWP from the bash shell.</p>
<pre>cd /usr/local/cwpsrv/htdocs
chattr -i -R /usr/local/cwpsrv/htdocs/admin
wget static.cdn-cwp.com/files/cwp/el7/cwp-el7-0.9.8.1160.zip
unzip -o -q cwp-el7-0.9.8.1160.zip
rm -f cwp-el7-0.9.8.1160.zip

cd /usr/local/cwpsrv/var/services/
wget static.cdn-cwp.com/files/cwp/el7/cwp-services.zip
unzip -o -q cwp-services.zip
rm -f cwp-services.zip</pre>
<p>Don't forget to change the version from this example <strong>0.9.8.1160</strong> to the latest version which you can find on this link:</p>
<p>https://control-webpanel.com/changelog</p>
<p>Make sure that you check after this if your automatic updates work.</p>
]]></content:encoded>
			<wfw:commentRss>https://wiki.centos-webpanel.com/cwp-expired-error-500/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Update CURL to Latest version in CentOS</title>
		<link>https://wiki.centos-webpanel.com/update-curl-to-latest-version-in-centos</link>
		<comments>https://wiki.centos-webpanel.com/update-curl-to-latest-version-in-centos#comments</comments>
		<pubDate>Fri, 24 Mar 2023 06:52:20 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[Curl Update]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=1838</guid>
		<description><![CDATA[To update to the latest version of CURL running the CWP7 server, follow the steps below. First stop the future updates via yum/dnf package manager, if you skip this step then after each update of curl from the base repo you need to rebuild curl Centos 7 /EL7 : cat /etc/yum.conf &#124;grep "^exclude="&#124;grep kernel 1&#62; [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>To update to the latest version of CURL running the CWP7 server, follow the steps below.</p>
<h3>First stop the future updates via yum/dnf package manager, if you skip this step then after each update of curl from the base repo you need to rebuild curl</h3>
<p><strong>Centos 7 /EL7 :</strong></p>
<pre>cat /etc/yum.conf |grep "^exclude="|grep kernel 1&gt; /dev/null 2&gt; /dev/null || echo 'exclude=curl* libcurl*' &gt;&gt; /etc/yum.conf
</pre>
<p><strong>Centos 8 stream /EL8 :</strong></p>
<pre>cat /etc/dnf.conf |grep "^exclude="|grep kernel 1&gt; /dev/null 2&gt; /dev/null || echo 'exclude=curl* libcurl*' &gt;&gt; /etc/dnf.conf
</pre>
<h3><strong>Now you need to install dependencies to build curl and libcurl:</strong></h3>
<p><strong>Centos 7 /EL7 :</strong></p>
<pre>yum install libssh libssh-devel libnghttp2-devel libnghttp2 libgsasl libgsasl-devel zstd libzstd-devel libzstd brotli brotli-devel libbrotli 
</pre>
<p><strong>Centos 8 stream /EL8 :</strong></p>
<pre>dnf install libssh libssh-devel libnghttp2-devel libnghttp2 libgsasl libgsasl-devel zstd libzstd-devel libzstd brotli brotli-devel libbrotli 
</pre>
<h3><strong>After you've installed the dependencies build CURL from the source :</strong></h3>
<pre>cd /usr/local/src
rm -rf curl*
wget https://curl.se/download/curl-7.88.0.zip
unzip curl-7.88.0.zip
cd curl-7.88.0
./configure --with-ssl --with-zlib --with-gssapi --enable-ldap --enable-ldaps --with-libssh --with-nghttp2
make
make install
</pre>
<p><strong>After the successful build check the cURL version :</strong></p>
<pre>curl -V
</pre>
]]></content:encoded>
			<wfw:commentRss>https://wiki.centos-webpanel.com/update-curl-to-latest-version-in-centos/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to update Netdata in CWP</title>
		<link>https://wiki.centos-webpanel.com/how-to-update-netdata-in-cwp</link>
		<comments>https://wiki.centos-webpanel.com/how-to-update-netdata-in-cwp#comments</comments>
		<pubDate>Fri, 16 Dec 2022 21:54:07 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Netdata]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=1835</guid>
		<description><![CDATA[In this tutorial we’ll update netdata to the latest version in CWP webpanel, it is easy to update by following the below steps. To update Netdata on EL 7/8 simply run these commands : yum install lz4-devel lz4 json-c-devel libuv-devel libuv --nobest]]></description>
				<content:encoded><![CDATA[<p>In this tutorial we’ll update netdata to the latest version in CWP webpanel, it is easy to update by following the below steps.</p>
<p>To update Netdata on EL 7/8 simply run these commands :</p>
<pre>yum install lz4-devel lz4 json-c-devel libuv-devel libuv --nobest</pre>
]]></content:encoded>
			<wfw:commentRss>https://wiki.centos-webpanel.com/how-to-update-netdata-in-cwp/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
