<?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="http://wiki.centos-webpanel.com/feed" rel="self" type="application/rss+xml" />
	<link>http://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>MySQL: Recover Crashed innodb tables</title>
		<link>http://wiki.centos-webpanel.com/mysql-recover-crashed-innodb-tables</link>
		<comments>http://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>http://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>http://wiki.centos-webpanel.com/centos-7-could-not-resolve-host-mirrorlist-centos-org</link>
		<comments>http://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>http://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>http://wiki.centos-webpanel.com/no-space-left-on-device-ah00023-couldnt-create-the-proxy-mutex</link>
		<comments>http://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>http://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>http://wiki.centos-webpanel.com/cwp-expired-error-500</link>
		<comments>http://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>http://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>http://wiki.centos-webpanel.com/update-curl-to-latest-version-in-centos</link>
		<comments>http://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>http://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>http://wiki.centos-webpanel.com/how-to-update-netdata-in-cwp</link>
		<comments>http://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>http://wiki.centos-webpanel.com/how-to-update-netdata-in-cwp/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to create a wildcard subdomain with NGINX and Apache</title>
		<link>http://wiki.centos-webpanel.com/how-to-create-a-wildcard-subdomain-with-nginx-and-apache</link>
		<comments>http://wiki.centos-webpanel.com/how-to-create-a-wildcard-subdomain-with-nginx-and-apache#comments</comments>
		<pubDate>Fri, 16 Dec 2022 21:49:43 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[wildcard subdomain]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=1833</guid>
		<description><![CDATA[In this tutorial, you'll learn how you can create wildcard subdomains in CWP NGINX and Apache easily via the predefined template. First Ensure and check that you've wildcard DNS added to your current DNS hosting provider or in CWP DNS if you're using your own nameservers : example DNS entry:- *.domain.tld. 14400 IN A 192.168.1.100 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>In this tutorial, you'll learn how you can create wildcard subdomains in CWP NGINX and Apache easily via the predefined template.</p>
<h3>First</h3>
<p>Ensure and check that you've wildcard DNS added to your current DNS hosting provider or in CWP DNS if you're using your own nameservers :</p>
<p>example DNS entry:-</p>
<pre>*.domain.tld. 14400 IN A 192.168.1.100
</pre>
<h3>Second</h3>
<p>Go to <strong>CWP-admin dashboard &gt;&gt; Webserver Settings &gt;&gt; Webservers Domain Settings</strong></p>
<p>there you need to choose the user and then the domain name where you need to set the wildcard subdomain support.</p>
<h3>Third</h3>
<p>Click on the button "<strong>Create configuration</strong>" which is located next to the domain name for which you need to enable the wildcard subdomain</p>
<h3>Fourth</h3>
<p>Choose "<strong>Nginx + Php-fpm</strong>" or "<strong>apache + php-fpm</strong>" or "<strong>nginx + apache + php-fpm</strong>" or "<strong>nginx + apache + php-cgi</strong>" according to your choice of engines.</p>
<blockquote><p>If you've chosen "<strong>nginx + php-fpm</strong>" select the "<strong>wildcard</strong>" template under "<strong>Nginx default vhost template</strong>" and save the changes by click on rebuild vhost option.</p>
<p>If "<strong>apache + php-fpm</strong>" is chosen select "<strong>wildcard</strong>" template under "<strong>Apache default vhost template</strong>" and save the changes by click on rebuild vhost option.</p>
<p>If "<strong>nginx + apache + php-fpm</strong>" or "<strong>nginx + apache + php-cgi</strong>" is chosen select the "<strong>wildcard</strong>" template under "<strong>Nginx default vhost template</strong>" also select "<strong>wildcard</strong>" template under "<strong>Apache default vhost template</strong>" and save the changes by click on rebuild vhost option.</p></blockquote>
<p>That's it you've easily enabled wildcard subdomain support for your domain</p>
<p>**SAME CAN BE DONE FOR SUB-DOMAIN</p>
]]></content:encoded>
			<wfw:commentRss>http://wiki.centos-webpanel.com/how-to-create-a-wildcard-subdomain-with-nginx-and-apache/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Can&#039;t log into CWP user/admin panel</title>
		<link>http://wiki.centos-webpanel.com/cant-log-into-cwp-useradmin-panel</link>
		<comments>http://wiki.centos-webpanel.com/cant-log-into-cwp-useradmin-panel#comments</comments>
		<pubDate>Tue, 04 Oct 2022 06:16:53 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[User-Panel]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=1829</guid>
		<description><![CDATA[User Panel If you can't log into the user panel you can try to reset the user password from the admin panel. Admin Panel If your root password is not working then the only option is to reset it via shell using passwd command. If you also don't have shell/ssh/console access then you would need [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><strong>User Panel</strong><br />
If you can't log into the user panel you can try to reset the user password from the admin panel.</p>
<p><strong>Admin Panel</strong><br />
If your root password is not working then the only option is to reset it via shell using passwd command.</p>
<p>If you also don't have shell/ssh/console access then you would need to request your hosting provider to recover the root password or try to recover it by yourself using a rescue boot.</p>
]]></content:encoded>
			<wfw:commentRss>http://wiki.centos-webpanel.com/cant-log-into-cwp-useradmin-panel/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Installation Failing</title>
		<link>http://wiki.centos-webpanel.com/php-installation-failing</link>
		<comments>http://wiki.centos-webpanel.com/php-installation-failing#comments</comments>
		<pubDate>Tue, 27 Sep 2022 18:07:39 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=1827</guid>
		<description><![CDATA[If you're experiencing PHP build failing you need to check the following requirements in order to fix the issue 1st case : you've low on RAM we recommend adding at least 1.5-2 Gb of available ram to compile PHP 7.xx and 8.xx as the compiler needs more memory for this version of PHP you can [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>If you're experiencing PHP build failing you need to check the following requirements in order to fix the issue</p>
<h2>1st case :</h2>
<p>you've low on RAM we recommend adding at least 1.5-2 Gb of available ram to compile PHP 7.xx and 8.xx as the compiler needs more memory for this version of PHP</p>
<p>you can check if you've sufficient RAM by this command :</p>
<pre>free -h
</pre>
<p>example output :</p>
<pre>root@server:~# free -h
               total        used        free      shared  buff/cache   available
Mem:           1.9Gi       328Mi        90Mi        56Mi       1.4Gi       1.5Gi
Swap:          2.0Gi        38Mi       1.9Gi
</pre>
<p>here you can see <strong>Mem</strong> which indicates the total RAM and you need to check the `<strong>available</strong>` memory which should be more than <strong>1.5Gb listed</strong></p>
<p>Also for low memory servers, we always recommend adding at least <strong>2Gb of Swap memory to prevent OOM</strong> (Out of memory) incidents.</p>
<h2>2nd Case :</h2>
<p>You're using an outdated OS that is already ON EOL period</p>
<p>Like Centos 6 and Centos 8 which are already in the EOL period and many repositories are disabled in this OS and you may experience non-availability of packages and dependencies which are required to build the PHP.</p>
<p>We always recommend upgrading you to Following OS :</p>
<p><strong>Centos 7</strong><br />
<strong>Centos 8 stream</strong><br />
<b>AlmaLinux 8</b><br />
<b>Rocky Linux 8</b><br />
<strong>Oracle Linux 7 and 8</strong></p>
<h2>3rd Case :</h2>
<p>Internet issue/Resolver issue</p>
<p>We've seen some cases where the OS resolver is not correctly set and many packages are not downloading due to the resolver failing.<br />
Ensure you have the correct resolver added in /etc/resolv.conf</p>
<p>you can add this lines at the end of the file in <strong>/etc/resolv.conf</strong> :</p>
<pre>nameserver 1.1.1.1
nameserver 8.8.8.8</pre>
<p>* Your server provider might also have some custom resolvers</p>
<p>Now lock the file :</p>
<pre>chattr +i /etc/resolv.conf</pre>
<p>The next step is to reboot the server :</p>
<pre>reboot</pre>
<p>Make sure you check the logs as it can be also any other reason</p>
]]></content:encoded>
			<wfw:commentRss>http://wiki.centos-webpanel.com/php-installation-failing/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MariaDB Upgrade from 10.2 to 10.4</title>
		<link>http://wiki.centos-webpanel.com/mariadb-upgrade-from-10-2-to-10-4</link>
		<comments>http://wiki.centos-webpanel.com/mariadb-upgrade-from-10-2-to-10-4#comments</comments>
		<pubDate>Sun, 11 Sep 2022 07:10:01 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[MariaDB Upgrade]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=1824</guid>
		<description><![CDATA[Verify if MariaDB 10.2 is installed rpm -qa&#124;grep -i maria&#124;grep "\-10.2." First you need to change the MariaDB repo and replace it with MariaDB 10.4 repo: sed -i 's/10.2/10.4/g' /etc/yum.repos.d/mariadb.repo Second remove MariaDB 10.2 : systemctl stop mariadb mysql mysqld systemctl disable mariadb rpm --nodeps -ev MariaDB-server Third Install MariaDB 10.4 : yum clean all [&#8230;]]]></description>
				<content:encoded><![CDATA[<div class="st-alert st-alert- ">
Before starting an upgrade please confirm that you have the backup of MySQL databases and users. Default backup is in the folder /backup/mysql
</div>
<p>Verify if MariaDB 10.2 is installed</p>
<pre>rpm -qa|grep -i maria|grep "\-10.2."</pre>
<p><strong>First you need to change the MariaDB repo and replace it with MariaDB 10.4 repo:</strong></p>
<pre>sed -i 's/10.2/10.4/g' /etc/yum.repos.d/mariadb.repo
</pre>
<p><strong>Second remove MariaDB 10.2 :</strong></p>
<pre>systemctl stop mariadb mysql mysqld
systemctl disable mariadb
rpm --nodeps -ev MariaDB-server
</pre>
<p><strong>Third Install MariaDB 10.4 :</strong></p>
<pre>yum clean all
yum -y update "MariaDB-*"
yum -y install MariaDB-server
systemctl enable mariadb
systemctl start mariadb
</pre>
<p><strong>Fourth you need to upgrade your database tables to the latest version:</strong></p>
<pre>mysql_upgrade --force</pre>
<p>After upgrade, you can use "mysql" command to verify the MariaDB version running on your server</p>
<pre>mysql --version</pre>
]]></content:encoded>
			<wfw:commentRss>http://wiki.centos-webpanel.com/mariadb-upgrade-from-10-2-to-10-4/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
