<?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>System Administration Archives - CNERIS</title>
	<atom:link href="https://cneris.com/en/category/system-administration/feed/" rel="self" type="application/rss+xml" />
	<link>https://cneris.com/en/category/system-administration/</link>
	<description></description>
	<lastBuildDate>Sun, 17 Nov 2024 22:22:32 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.1</generator>
	<item>
		<title>The option &#8220;Hide other shipping methods when free shipping is available&#8221; is not displayed</title>
		<link>https://cneris.com/en/the-option-hide-other-shipping-methods-when-free-shipping-is-available-is-not-displayed/</link>
					<comments>https://cneris.com/en/the-option-hide-other-shipping-methods-when-free-shipping-is-available-is-not-displayed/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sun, 17 Nov 2024 22:22:01 +0000</pubDate>
				<category><![CDATA[System Administration]]></category>
		<category><![CDATA[Web Applications]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[free shipping]]></category>
		<category><![CDATA[shipping methods]]></category>
		<category><![CDATA[woocommerce]]></category>
		<guid isPermaLink="false">https://cneris.com/?p=2706</guid>

					<description><![CDATA[<p>If the option "Hide other shipping methods when free shipping is available" is not displayed, you can achieve this behavior manually or by adding custom code. Option 1: Use predefined rules Go to WooCommerce &gt; Settings &gt; Shipping and select your shipping zone. Configure: A Free Shipping method with a minimum order of 60 euros. [...]</p>
<p>The post <a href="https://cneris.com/en/the-option-hide-other-shipping-methods-when-free-shipping-is-available-is-not-displayed/">The option &#8220;Hide other shipping methods when free shipping is available&#8221; is not displayed</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>If the option <strong>&#8220;Hide other shipping methods when free shipping is available&#8221;</strong> is not displayed, you can achieve this behavior manually or by adding custom code.</p>
<h4>Option 1: Use predefined rules</h4>
<ol>
<li>Go to <strong>WooCommerce &gt; Settings &gt; Shipping</strong> and select your shipping zone.</li>
<li>Configure:
<ul>
<li>A <strong>Free Shipping</strong> method with a minimum order of 60 euros.</li>
<li>A <strong>Flat Rate Shipping</strong> method with a base cost of 5 euros.</li>
</ul>
</li>
<li>While WooCommerce may not automatically hide the flat rate, customers will be able to choose free shipping when eligible.</li>
</ol>
<h4>Option 2: Use custom code</h4>
<p>Add this code to your <code>functions.php</code> file to automatically hide other shipping methods when free shipping is available:</p>
<div class="contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950">
<div class="overflow-y-auto p-4" dir="ltr"><code class="!whitespace-pre hljs language-php">add_filter( 'woocommerce_package_rates', 'hide_shipping_methods_when_free_is_available', 100 );<br />
function hide_shipping_methods_when_free_is_available( $rates ) {<br />
$free = array();<br />
foreach ( $rates as $rate_id =&gt; $rate ) {<br />
if ( 'free_shipping' === $rate-&gt;method_id ) {<br />
$free[ $rate_id ] = $rate;<br />
break;<br />
}<br />
}<br />
return ! empty( $free ) ? $free : $rates;<br />
}<br />
</code></div>
</div>
<h4>Final Step</h4>
<ul>
<li>Save your changes and refresh the checkout page to test</li>
</ul>
<p>The post <a href="https://cneris.com/en/the-option-hide-other-shipping-methods-when-free-shipping-is-available-is-not-displayed/">The option &#8220;Hide other shipping methods when free shipping is available&#8221; is not displayed</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cneris.com/en/the-option-hide-other-shipping-methods-when-free-shipping-is-available-is-not-displayed/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Error: Terminating since out of inotify watches. Consider increasing /proc/sys/fs/inotify/max_user_watches</title>
		<link>https://cneris.com/en/error-terminating-since-out-of-inotify-watches-consider-increasing-proc-sys-fs-inotify-max_user_watches-en/</link>
					<comments>https://cneris.com/en/error-terminating-since-out-of-inotify-watches-consider-increasing-proc-sys-fs-inotify-max_user_watches-en/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sun, 03 Nov 2024 17:42:35 +0000</pubDate>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Dedicated servers]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[System Administration]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[inotify watches]]></category>
		<category><![CDATA[max_user_watches]]></category>
		<guid isPermaLink="false">https://cneris.com/?p=2699</guid>

					<description><![CDATA[<p>Error: The error means that the system has reached the maximum number of "inotify watches," which limits the ability to monitor files and directories. This typically happens when there are many applications or processes trying to observe file and directory changes. Solution: To increase the inotify watches limit, follow these steps: Open a terminal and [...]</p>
<p>The post <a href="https://cneris.com/en/error-terminating-since-out-of-inotify-watches-consider-increasing-proc-sys-fs-inotify-max_user_watches-en/">Error: Terminating since out of inotify watches. Consider increasing /proc/sys/fs/inotify/max_user_watches</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>Error:</strong> The error means that the system has reached the maximum number of &#8220;inotify watches,&#8221; which limits the ability to monitor files and directories. This typically happens when there are many applications or processes trying to observe file and directory changes.</p>
<p><strong>Solution:</strong> To increase the <code>inotify watches</code> limit, follow these steps:</p>
<ol>
<li>Open a terminal and check the current value with:
<div class="contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950">
<div class="sticky top-9 md:top-[5.75rem]"></div>
<div class="overflow-y-auto p-4" dir="ltr"><code class="!whitespace-pre hljs language-bash"><span class="hljs-built_in">cat</span> /proc/sys/fs/inotify/max_user_watches<br />
</code></div>
</div>
</li>
<li>Temporarily increase the value (e.g., to 524288) by running:
<div class="contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950">
<div class="sticky top-9 md:top-[5.75rem]"></div>
<div class="overflow-y-auto p-4" dir="ltr"><code class="!whitespace-pre hljs language-bash">sudo sysctl fs.inotify.max_user_watches=524288<br />
</code></div>
</div>
</li>
<li>To make the change permanent, edit the <code>/etc/sysctl.conf</code> file:
<div class="contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950">
<div class="sticky top-9 md:top-[5.75rem]"></div>
<div class="overflow-y-auto p-4" dir="ltr"><code class="!whitespace-pre hljs language-bash">sudo nano /etc/sysctl.conf<br />
</code></div>
</div>
</li>
<li>Add this line at the end of the file:
<div class="contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950">
<div class="sticky top-9 md:top-[5.75rem]"></div>
<div class="overflow-y-auto p-4" dir="ltr"><code class="!whitespace-pre hljs language-bash">fs.inotify.max_user_watches=524288<br />
</code></div>
</div>
</li>
<li>Save the file and apply the change with:
<div class="contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950">
<div class="sticky top-9 md:top-[5.75rem]"></div>
<div class="overflow-y-auto p-4" dir="ltr"><code class="!whitespace-pre hljs language-bash">sudo sysctl -p<br />
</code></div>
</div>
</li>
</ol>
<p>After these steps, the system should allow more <code>inotify</code> watchers, and the error should no longer appear.</p>
<p>The post <a href="https://cneris.com/en/error-terminating-since-out-of-inotify-watches-consider-increasing-proc-sys-fs-inotify-max_user_watches-en/">Error: Terminating since out of inotify watches. Consider increasing /proc/sys/fs/inotify/max_user_watches</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cneris.com/en/error-terminating-since-out-of-inotify-watches-consider-increasing-proc-sys-fs-inotify-max_user_watches-en/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>In the WordPress administration panel, how can I see the server&#8217;s performance?</title>
		<link>https://cneris.com/en/in-the-wordpress-administration-panel-how-can-i-see-the-servers-performance/</link>
					<comments>https://cneris.com/en/in-the-wordpress-administration-panel-how-can-i-see-the-servers-performance/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 29 Oct 2024 09:16:03 +0000</pubDate>
				<category><![CDATA[System Administration]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Query Monitor]]></category>
		<category><![CDATA[site health]]></category>
		<category><![CDATA[system information plugin]]></category>
		<category><![CDATA[WP-ServerInfo]]></category>
		<guid isPermaLink="false">https://cneris.com/?p=2687</guid>

					<description><![CDATA[<p>In the WordPress administration panel, how can I see the server's performance? Install a system information plugin Go to the WordPress admin panel, select Plugins &gt; Add New, and search for plugins like Site Health, WP-ServerInfo, or Query Monitor. Use "Site Health" WordPress includes a Site Health tool under Tools &gt; Site Health. Here, you [...]</p>
<p>The post <a href="https://cneris.com/en/in-the-wordpress-administration-panel-how-can-i-see-the-servers-performance/">In the WordPress administration panel, how can I see the server&#8217;s performance?</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In the WordPress administration panel, how can I see the server&#8217;s performance?</p>
<ul>
<li><strong>Install a system information plugin</strong><br />
Go to the WordPress admin panel, select <strong>Plugins &gt; Add New</strong>, and search for plugins like <strong>Site Health</strong>, <strong>WP-ServerInfo</strong>, or <strong>Query Monitor</strong>.</li>
<li><strong>Use &#8220;Site Health&#8221;</strong><br />
WordPress includes a <strong>Site Health</strong> tool under <strong>Tools &gt; Site Health</strong>. Here, you can view server environment details such as PHP version, memory limit, and maximum execution time.</li>
<li><strong>View additional details</strong><br />
For more specific information, you can install <strong>WP-ServerInfo</strong>. This plugin shows data about the server, such as MySQL version, CPU usage, RAM, and more.</li>
</ul>
<p>The post <a href="https://cneris.com/en/in-the-wordpress-administration-panel-how-can-i-see-the-servers-performance/">In the WordPress administration panel, how can I see the server&#8217;s performance?</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cneris.com/en/in-the-wordpress-administration-panel-how-can-i-see-the-servers-performance/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>A PHP session was created by a session_start() function call. This interferes with REST API and loopback requests. The session should be closed by session_write_close() before making any HTTP requests.</title>
		<link>https://cneris.com/en/a-php-session-was-created-by-a-session_start-function-call-this-interferes-with-rest-api-and-loopback-requests-the-session-should-be-closed-by-session_write_close-before-making-any-http-requests-2/</link>
					<comments>https://cneris.com/en/a-php-session-was-created-by-a-session_start-function-call-this-interferes-with-rest-api-and-loopback-requests-the-session-should-be-closed-by-session_write_close-before-making-any-http-requests-2/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 29 Oct 2024 09:09:24 +0000</pubDate>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Dedicated servers]]></category>
		<category><![CDATA[Plesk]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[System Administration]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[session_close]]></category>
		<category><![CDATA[session_start]]></category>
		<category><![CDATA[wordpress]]></category>
		<guid isPermaLink="false">https://cneris.com/?p=2680</guid>

					<description><![CDATA[<p>This error occurs because the session_start() function is creating a PHP session, which interferes with REST API and loopback requests in WordPress. To resolve this: Locate the session_start() code Search your theme or active plugins for the session_start() function. It may be in the theme’s functions.php file or in a custom plugin. Add session_write_close() after [...]</p>
<p>The post <a href="https://cneris.com/en/a-php-session-was-created-by-a-session_start-function-call-this-interferes-with-rest-api-and-loopback-requests-the-session-should-be-closed-by-session_write_close-before-making-any-http-requests-2/">A PHP session was created by a session_start() function call. This interferes with REST API and loopback requests. The session should be closed by session_write_close() before making any HTTP requests.</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>This error occurs because the <code>session_start()</code> function is creating a PHP session, which interferes with REST API and loopback requests in WordPress. To resolve this:</p>
<ol>
<li><strong>Locate the <code>session_start()</code> code</strong><br />
Search your theme or active plugins for the <code>session_start()</code> function. It may be in the theme’s <code>functions.php</code> file or in a custom plugin.</li>
<li><strong>Add <code>session_write_close()</code> after <code>session_start()</code></strong><br />
Ensure <code>session_write_close()</code> is called after each <code>session_start()</code> call, before making any HTTP requests. This will close the session and allow the REST API to work correctly. For example:</p>
<div class="contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950">
<div class="sticky top-9 md:top-[5.75rem]"></div>
<div class="overflow-y-auto p-4" dir="ltr"><code class="!whitespace-pre hljs language-php"><span class="hljs-title function_ invoke__">session_start</span>();<br />
<span class="hljs-comment">// Your code here</span><br />
<span class="hljs-title function_ invoke__">session_write_close</span>();<br />
</code></div>
</div>
</li>
<li><strong>Use the <code>init</code> hook in WordPress</strong><br />
If <code>session_start()</code> needs to be in <code>functions.php</code>, make sure to wrap it in the <code>init</code> hook and use <code>session_write_close()</code> like this:</p>
<div class="contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950">
<div class="sticky top-9 md:top-[5.75rem]"></div>
<div class="overflow-y-auto p-4" dir="ltr"><code class="!whitespace-pre hljs language-php"><span class="hljs-title function_ invoke__">add_action</span>(<span class="hljs-string">'init'</span>, function() {<br />
    <span class="hljs-keyword">if</span> (!<span class="hljs-title function_ invoke__">session_id</span>()) {<br />
        <span class="hljs-title function_ invoke__">session_start</span>();<br />
        <span class="hljs-title function_ invoke__">session_write_close</span>();<br />
    }<br />
});</code></div>
</div>
</li>
</ol>
<p>The post <a href="https://cneris.com/en/a-php-session-was-created-by-a-session_start-function-call-this-interferes-with-rest-api-and-loopback-requests-the-session-should-be-closed-by-session_write_close-before-making-any-http-requests-2/">A PHP session was created by a session_start() function call. This interferes with REST API and loopback requests. The session should be closed by session_write_close() before making any HTTP requests.</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cneris.com/en/a-php-session-was-created-by-a-session_start-function-call-this-interferes-with-rest-api-and-loopback-requests-the-session-should-be-closed-by-session_write_close-before-making-any-http-requests-2/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How you can set a default featured image for each post category</title>
		<link>https://cneris.com/en/how-you-can-set-a-default-featured-image-for-each-post-category/</link>
					<comments>https://cneris.com/en/how-you-can-set-a-default-featured-image-for-each-post-category/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 29 Oct 2024 08:59:48 +0000</pubDate>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Dedicated servers]]></category>
		<category><![CDATA[Plesk]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[System Administration]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Web Applications]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[featured image]]></category>
		<category><![CDATA[post category]]></category>
		<category><![CDATA[wordpress]]></category>
		<guid isPermaLink="false">https://cneris.com/?p=2671</guid>

					<description><![CDATA[<p>In WordPress, you can set a default featured image for each post category by using a snippet of code in your theme's functions.php file. This code checks if a post has a featured image assigned; if not, it sets a default image based on the post's category. Code to Assign Default Featured Image by Category [...]</p>
<p>The post <a href="https://cneris.com/en/how-you-can-set-a-default-featured-image-for-each-post-category/">How you can set a default featured image for each post category</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In WordPress, you can set a default featured image for each post category by using a snippet of code in your theme&#8217;s <code>functions.php</code> file. This code checks if a post has a featured image assigned; if not, it sets a default image based on the post&#8217;s category.</p>
<h4>Code to Assign Default Featured Image by Category</h4>
<ol>
<li>Open your theme&#8217;s <code>functions.php</code> file (preferably a child theme to avoid losing changes with updates).</li>
<li>Add the following code, replacing the URLs with your default images for each category:</li>
</ol>
<div class="contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950">
<div class="overflow-y-auto p-4" dir="ltr"><code class="!whitespace-pre hljs language-php"><br />
</code></div>
</div>
<p>function set_default_thumbnail($post_id) {<br />
if (has_post_thumbnail($post_id)) {<br />
return;<br />
}</p>
<p>// Define default images for each category<br />
$default_images = [<br />
&#8216;category-1&#8217; =&gt; &#8216;https://your-site.com/wp-content/uploads/category-image1.jpg&#8217;,<br />
&#8216;category-2&#8217; =&gt; &#8216;https://your-site.com/wp-content/uploads/category-image2.jpg&#8217;,<br />
&#8216;category-3&#8217; =&gt; &#8216;https://your-site.com/wp-content/uploads/category-image3.jpg&#8217;,<br />
];</p>
<p>// Get post categories<br />
$categories = get_the_category($post_id);</p>
<p>// Check if categories are assigned and find a matching default image<br />
foreach ($categories as $category) {<br />
if (array_key_exists($category-&gt;slug, $default_images)) {<br />
$image_url = $default_images[$category-&gt;slug];</p>
<p>// Download image and set as featured image<br />
$image_id = attach_image_from_url($image_url, $post_id);<br />
if ($image_id) {<br />
set_post_thumbnail($post_id, $image_id);<br />
}<br />
break;<br />
}<br />
}<br />
}<br />
add_action(&#8216;save_post&#8217;, &#8216;set_default_thumbnail&#8217;);</p>
<p>// Function to download and attach the image to the post<br />
function attach_image_from_url($image_url, $post_id) {<br />
$upload_dir = wp_upload_dir();<br />
$image_data = file_get_contents($image_url);<br />
$filename = basename($image_url);</p>
<p>if (wp_mkdir_p($upload_dir[&#8216;path&#8217;])) {<br />
$file = $upload_dir[&#8216;path&#8217;] . &#8216;/&#8217; . $filename;<br />
} else {<br />
$file = $upload_dir[&#8216;basedir&#8217;] . &#8216;/&#8217; . $filename;<br />
}</p>
<p>file_put_contents($file, $image_data);</p>
<p>$wp_filetype = wp_check_filetype($filename, null);<br />
$attachment = [<br />
&#8216;post_mime_type&#8217; =&gt; $wp_filetype[&#8216;type&#8217;],<br />
&#8216;post_title&#8217; =&gt; sanitize_file_name($filename),<br />
&#8216;post_content&#8217; =&gt; &#8221;,<br />
&#8216;post_status&#8217; =&gt; &#8216;inherit&#8217;<br />
];</p>
<p>$attach_id = wp_insert_attachment($attachment, $file, $post_id);<br />
require_once(ABSPATH . &#8216;wp-admin/includes/image.php&#8217;);<br />
$attach_data = wp_generate_attachment_metadata($attach_id, $file);<br />
wp_update_attachment_metadata($attach_id, $attach_data);</p>
<p>return $attach_id;<br />
}</p>
<h4>Code Explanation</h4>
<ul>
<li><strong><code>$default_images</code></strong>: Defines default images for each category using the category slug as the key and the image URL as the value.</li>
<li><strong><code>set_default_thumbnail</code></strong>: This function runs when a post is saved. If the post has no featured image, it finds the first category with a default image in <code>$default_images</code> and sets it as the featured image.</li>
<li><strong><code>attach_image_from_url</code></strong>: This function downloads the image from the URL and attaches it to the post as a media file, making it the featured image.</li>
</ul>
<p>This code will automatically assign a default featured image for new or edited posts based on their category.</p>
<p><strong>Note</strong>: Make sure to test this code in a development environment before implementing it on your live site, and replace the example URLs with your actual default image URLs.</p>
<p>The post <a href="https://cneris.com/en/how-you-can-set-a-default-featured-image-for-each-post-category/">How you can set a default featured image for each post category</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cneris.com/en/how-you-can-set-a-default-featured-image-for-each-post-category/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>JPG Image Viewers in Linux Terminal</title>
		<link>https://cneris.com/en/jpg-image-viewers-in-linux-terminal/</link>
					<comments>https://cneris.com/en/jpg-image-viewers-in-linux-terminal/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Fri, 25 Oct 2024 19:32:35 +0000</pubDate>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Dedicated servers]]></category>
		<category><![CDATA[Plesk]]></category>
		<category><![CDATA[System Administration]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[install catimg]]></category>
		<category><![CDATA[install fim]]></category>
		<category><![CDATA[install viu]]></category>
		<category><![CDATA[sudo apt install]]></category>
		<guid isPermaLink="false">https://cneris.com/?p=2546</guid>

					<description><![CDATA[<p>To view JPG files directly from the terminal in Linux, there are several tools available. Here are some popular viewers and how to use them: 1. FIM (Framebuffer Image Viewer) FIM is a command-line image viewer that utilizes the framebuffer to display images directly in the terminal. Installation: sudo apt install fim Usage: fim image.jpg [...]</p>
<p>The post <a href="https://cneris.com/en/jpg-image-viewers-in-linux-terminal/">JPG Image Viewers in Linux Terminal</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>To view JPG files directly from the terminal in Linux, there are several tools available. Here are some popular viewers and how to use them:</p>
<h4>1. <strong>FIM (Framebuffer Image Viewer)</strong></h4>
<ul>
<li>FIM is a command-line image viewer that utilizes the framebuffer to display images directly in the terminal.</li>
<li><strong>Installation</strong>:
<div class="contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950">
<div class="sticky top-9 md:top-[5.75rem]"></div>
<div class="overflow-y-auto p-4" dir="ltr"><code class="!whitespace-pre hljs language-bash">sudo apt install fim<br />
</code></div>
</div>
</li>
<li><strong>Usage</strong>:
<div class="contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950">
<div class="sticky top-9 md:top-[5.75rem]"></div>
<div class="overflow-y-auto p-4" dir="ltr"><code class="!whitespace-pre hljs language-bash">fim image.jpg<br />
</code></div>
</div>
</li>
<li><strong>Example</strong>: Run <code>fim /path/to/image.jpg</code> to open an image in the terminal. FIM allows navigation through multiple images in a folder with arrow keys.</li>
</ul>
<h4>2. <strong>VIU</strong></h4>
<ul>
<li>Viu is another lightweight image viewer for the terminal, compatible with color images in most terminals.</li>
<li><strong>Installation</strong> (requires <code>cargo</code> from Rust):
<div class="contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950">
<div class="sticky top-9 md:top-[5.75rem]"></div>
<div class="overflow-y-auto p-4" dir="ltr"><code class="!whitespace-pre hljs language-bash">cargo install viu<br />
</code></div>
</div>
</li>
<li><strong>Usage</strong>:
<div class="contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950">
<div class="sticky top-9 md:top-[5.75rem]"></div>
<div class="overflow-y-auto p-4" dir="ltr"><code class="!whitespace-pre hljs language-bash">viu image.jpg<br />
</code></div>
</div>
</li>
<li><strong>Example</strong>: Run <code>viu /path/to/image.jpg</code> for a quick view. Viu is great for 24-bit color terminals.</li>
</ul>
<h4>3. <strong>Catimg</strong></h4>
<ul>
<li>Catimg converts images into ASCII format to display in the terminal.</li>
<li><strong>Installation</strong>:
<div class="contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950">
<div class="sticky top-9 md:top-[5.75rem]"></div>
<div class="overflow-y-auto p-4" dir="ltr"><code class="!whitespace-pre hljs language-bash">sudo apt install catimg<br />
</code></div>
</div>
</li>
<li><strong>Usage</strong>:
<div class="contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950">
<div class="sticky top-9 md:top-[5.75rem]"></div>
<div class="overflow-y-auto p-4" dir="ltr"><code class="!whitespace-pre hljs language-bash">catimg image.jpg<br />
</code></div>
</div>
</li>
<li><strong>Example</strong>: Run <code>catimg /path/to/image.jpg</code> to view an ASCII representation of the image.</li>
</ul>
<p>The post <a href="https://cneris.com/en/jpg-image-viewers-in-linux-terminal/">JPG Image Viewers in Linux Terminal</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cneris.com/en/jpg-image-viewers-in-linux-terminal/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to change the database character set in WordPress</title>
		<link>https://cneris.com/en/how-to-change-the-database-character-set-in-wordpress/</link>
					<comments>https://cneris.com/en/how-to-change-the-database-character-set-in-wordpress/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sun, 20 Oct 2024 16:52:26 +0000</pubDate>
				<category><![CDATA[System Administration]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[charaters]]></category>
		<category><![CDATA[codification]]></category>
		<category><![CDATA[utf-8]]></category>
		<category><![CDATA[utf8mb4]]></category>
		<category><![CDATA[wordpress]]></category>
		<guid isPermaLink="false">https://cneris.com/?p=2519</guid>

					<description><![CDATA[<p>To change the database character set in WordPress, follow these steps: Access the wp-config.php file located in the root directory of your WordPress installation. Look for the following lines: php Copiar código define('DB_CHARSET', 'utf8mb4'); define('DB_COLLATE', ''); If these lines are missing or set to a different value, change DB_CHARSET to utf8mb4, which is the recommended [...]</p>
<p>The post <a href="https://cneris.com/en/how-to-change-the-database-character-set-in-wordpress/">How to change the database character set in WordPress</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>To change the database character set in WordPress, follow these steps:</p>
<ol>
<li><strong>Access the <code>wp-config.php</code> file</strong> located in the root directory of your WordPress installation.</li>
<li>Look for the following lines:
<div class="contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950">
<div class="flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary">php</div>
<div class="sticky top-9 md:top-[5.75rem]">
<div class="absolute bottom-0 right-2 flex h-9 items-center">
<div class="flex items-center rounded bg-token-sidebar-surface-primary px-2 font-sans text-xs text-token-text-secondary dark:bg-token-main-surface-secondary"><span class="" data-state="closed"><button class="flex gap-1 items-center py-1">Copiar código</button></span></div>
</div>
</div>
<div class="overflow-y-auto p-4" dir="ltr"><code class="!whitespace-pre hljs language-php"><span class="hljs-title function_ invoke__">define</span>(<span class="hljs-string">'DB_CHARSET'</span>, <span class="hljs-string">'utf8mb4'</span>);<br />
<span class="hljs-title function_ invoke__">define</span>(<span class="hljs-string">'DB_COLLATE'</span>, <span class="hljs-string">''</span>);<br />
</code></div>
</div>
</li>
<li>If these lines are missing or set to a different value, change <strong><code>DB_CHARSET</code></strong> to <strong><code>utf8mb4</code></strong>, which is the recommended character set for supporting special characters, including Chinese. <strong><code>DB_COLLATE</code></strong> should be left empty or set to <strong><code>utf8mb4_unicode_ci</code></strong> if you want to specify a collation.</li>
<li>Save the changes and upload the file back to the server if you are working locally.</li>
</ol>
<p>With this change, WordPress will be configured to use the UTF-8 character set, ensuring that special characters, such as Chinese, display correctly.</p>
<p>The post <a href="https://cneris.com/en/how-to-change-the-database-character-set-in-wordpress/">How to change the database character set in WordPress</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cneris.com/en/how-to-change-the-database-character-set-in-wordpress/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Steps to Convert the Database from utf8 to utf8mb4 in MySQL</title>
		<link>https://cneris.com/en/steps-to-convert-the-database-from-utf8-to-utf8mb4-in-mysql/</link>
					<comments>https://cneris.com/en/steps-to-convert-the-database-from-utf8-to-utf8mb4-in-mysql/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sun, 20 Oct 2024 16:45:14 +0000</pubDate>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[System Administration]]></category>
		<category><![CDATA[convert the columns]]></category>
		<category><![CDATA[mysql]]></category>
		<guid isPermaLink="false">https://cneris.com/?p=2511</guid>

					<description><![CDATA[<p>Connect to MySQL:First, log into MySQL using the following command: mysql -u your_user -p Enter your password when prompted. Convert the Database:Run the following command to convert the entire database to utf8mb4. Replace your_database_name with the actual name of your database. ALTER DATABASE your_database_name CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; Convert the Tables:After converting the database, [...]</p>
<p>The post <a href="https://cneris.com/en/steps-to-convert-the-database-from-utf8-to-utf8mb4-in-mysql/">Steps to Convert the Database from utf8 to utf8mb4 in MySQL</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></description>
										<content:encoded><![CDATA[<ul>
<li><strong>Connect to MySQL</strong>:First, log into MySQL using the following command:
<div class="contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950">
<div class="sticky top-9 md:top-[5.75rem]"></div>
<div class="overflow-y-auto p-4" dir="ltr"><code class="!whitespace-pre hljs language-bash">mysql -u your_user -p<br />
</code></div>
</div>
<p>Enter your password when prompted.</li>
<li><strong>Convert the Database</strong>:Run the following command to convert the entire database to <strong>utf8mb4</strong>. Replace <code>your_database_name</code> with the actual name of your database.
<div class="contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950">
<div class="sticky top-9 md:top-[5.75rem]"></div>
<div class="overflow-y-auto p-4" dir="ltr"><code class="!whitespace-pre hljs language-sql"><span class="hljs-keyword">ALTER</span> DATABASE your_database_name <span class="hljs-type">CHARACTER</span> <span class="hljs-keyword">SET</span> utf8mb4 <span class="hljs-keyword">COLLATE</span> utf8mb4_unicode_ci;<br />
</code></div>
</div>
</li>
<li><strong>Convert the Tables</strong>:After converting the database, you need to convert each table within the database:
<div class="contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950">
<div class="sticky top-9 md:top-[5.75rem]"></div>
<div class="overflow-y-auto p-4" dir="ltr"><code class="!whitespace-pre hljs language-sql"><span class="hljs-keyword">ALTER</span> <span class="hljs-keyword">TABLE</span> your_table_name <span class="hljs-keyword">CONVERT</span> <span class="hljs-keyword">TO</span> <span class="hljs-type">CHARACTER</span> <span class="hljs-keyword">SET</span> utf8mb4 <span class="hljs-keyword">COLLATE</span> utf8mb4_unicode_ci;<br />
</code></div>
</div>
<p>Do this for each table in your database.</li>
<li><strong>Convert the Columns</strong> (optional):If any columns within your tables need to be converted specifically, you can do so with the following command:
<div class="contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950">
<div class="sticky top-9 md:top-[5.75rem]"></div>
<div class="overflow-y-auto p-4" dir="ltr"><code class="!whitespace-pre hljs language-sql"><span class="hljs-keyword">ALTER</span> <span class="hljs-keyword">TABLE</span> your_table_name MODIFY your_column_name <span class="hljs-type">VARCHAR</span>(<span class="hljs-number">255</span>) <span class="hljs-type">CHARACTER</span> <span class="hljs-keyword">SET</span> utf8mb4 <span class="hljs-keyword">COLLATE</span> utf8mb4_unicode_ci;<br />
</code></div>
</div>
<p>This will convert the column to <strong>utf8mb4</strong>.</li>
</ul>
<p>The post <a href="https://cneris.com/en/steps-to-convert-the-database-from-utf8-to-utf8mb4-in-mysql/">Steps to Convert the Database from utf8 to utf8mb4 in MySQL</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cneris.com/en/steps-to-convert-the-database-from-utf8-to-utf8mb4-in-mysql/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to increase the memory limit in WordPress (wp_max_memory_limit)?</title>
		<link>https://cneris.com/en/how-to-increase-the-memory-limit-in-wordpress-wp_max_memory_limit/</link>
					<comments>https://cneris.com/en/how-to-increase-the-memory-limit-in-wordpress-wp_max_memory_limit/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sun, 20 Oct 2024 16:30:39 +0000</pubDate>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Dedicated servers]]></category>
		<category><![CDATA[Plesk]]></category>
		<category><![CDATA[System Administration]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[php.ini]]></category>
		<category><![CDATA[restart the server]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wp-config]]></category>
		<category><![CDATA[wp_memory_limit]]></category>
		<guid isPermaLink="false">https://cneris.com/?p=2496</guid>

					<description><![CDATA[<p>To increase the memory limit in WordPress (wp_max_memory_limit), you need to edit the wp-config.php file or your server's configuration file. Here are the steps: Edit the wp-config.php file: Access the wp-config.php file in your WordPress installation. Add the following line of code before the line that says "/* That's all, stop editing! */": define('WP_MEMORY_LIMIT', '256M'); [...]</p>
<p>The post <a href="https://cneris.com/en/how-to-increase-the-memory-limit-in-wordpress-wp_max_memory_limit/">How to increase the memory limit in WordPress (wp_max_memory_limit)?</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>To increase the memory limit in WordPress (<strong>wp_max_memory_limit</strong>), you need to edit the <strong>wp-config.php</strong> file or your server&#8217;s configuration file. Here are the steps:</p>
<ol>
<li><strong>Edit the wp-config.php file</strong>:
<ul>
<li>Access the <strong>wp-config.php</strong> file in your WordPress installation.</li>
<li>Add the following line of code before the line that says &#8220;/* That&#8217;s all, stop editing! */&#8221;:
<div class="contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950">
<div class="sticky top-9 md:top-[5.75rem]"></div>
<div class="overflow-y-auto p-4" dir="ltr"><code class="!whitespace-pre hljs language-php"><span class="hljs-title function_ invoke__">define</span>(<span class="hljs-string">'WP_MEMORY_LIMIT'</span>, <span class="hljs-string">'256M'</span>);<br />
</code></div>
</div>
</li>
</ul>
<p>This sets the memory limit to 256 MB. You can adjust the value depending on your needs, such as <strong>128M</strong> or <strong>512M</strong>.</li>
<li><strong>Edit php.ini</strong> (optional):
<ul>
<li>If you have access to the <strong>php.ini</strong> file on your server, find the line:
<div class="contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950">
<div class="sticky top-9 md:top-[5.75rem]"></div>
<div class="overflow-y-auto p-4" dir="ltr"><code class="!whitespace-pre hljs language-ini"><span class="hljs-attr">memory_limit</span> = <span class="hljs-number">128</span>M<br />
</code></div>
</div>
</li>
<li>Change the value to a higher one, like <strong>256M</strong> or more, according to your requirements.</li>
</ul>
</li>
<li><strong>Restart the server</strong>:
<ul>
<li>After making the changes, if you modified the <strong>php.ini</strong> file, you need to restart the server for the changes to take effect.</li>
</ul>
</li>
</ol>
<p>The post <a href="https://cneris.com/en/how-to-increase-the-memory-limit-in-wordpress-wp_max_memory_limit/">How to increase the memory limit in WordPress (wp_max_memory_limit)?</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cneris.com/en/how-to-increase-the-memory-limit-in-wordpress-wp_max_memory_limit/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>why does my server have a high ttfb?</title>
		<link>https://cneris.com/en/why-does-my-server-have-a-high-ttfb/</link>
					<comments>https://cneris.com/en/why-does-my-server-have-a-high-ttfb/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sun, 13 Oct 2024 10:58:10 +0000</pubDate>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Computer Security]]></category>
		<category><![CDATA[Dedicated servers]]></category>
		<category><![CDATA[System Administration]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[caching]]></category>
		<category><![CDATA[server performance]]></category>
		<category><![CDATA[ttfb]]></category>
		<category><![CDATA[web server]]></category>
		<guid isPermaLink="false">https://cneris.com/?p=2480</guid>

					<description><![CDATA[<p>A high TTFB (Time to First Byte) on your server can occur due to several factors, meaning there’s a delay between a user's request and the moment your server sends the first byte of response. Below are some of the common reasons: Database issues: If your server relies on a database (like MySQL or MariaDB), [...]</p>
<p>The post <a href="https://cneris.com/en/why-does-my-server-have-a-high-ttfb/">why does my server have a high ttfb?</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>A high <strong>TTFB (Time to First Byte)</strong> on your server can occur due to several factors, meaning there’s a delay between a user&#8217;s request and the moment your server sends the first byte of response. Below are some of the common reasons:</p>
<ol>
<li><strong>Database issues</strong>: If your server relies on a database (like MySQL or MariaDB), slow or unoptimized queries can delay response generation. Ensure that tables are properly indexed and that there are no queries taking too long to execute.</li>
<li><strong>Server performance</strong>: If your server is underperforming (CPU overload, low RAM, or high disk usage), request processing will be slower. Check resource usage using tools like <code>top</code> or <code>htop</code> to identify bottlenecks.</li>
<li><strong>Web server configuration</strong>: If your web server (such as Apache or Nginx) is not optimized, it could cause delays. Reviewing configurations like output compression (Gzip), caching usage, and concurrent connection parameters can help improve TTFB.</li>
<li><strong>Slow connection to external networks</strong>: If your server relies on external services (APIs, data sources) or is located in a data center far from your users, network latency can increase the TTFB.</li>
<li><strong>Caching</strong>: If caching is not properly used, every request needs to be processed from scratch. Setting up appropriate caching on the server can significantly reduce TTFB.</li>
</ol>
<p>The post <a href="https://cneris.com/en/why-does-my-server-have-a-high-ttfb/">why does my server have a high ttfb?</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cneris.com/en/why-does-my-server-have-a-high-ttfb/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
