<?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>Dedicated servers Archives - CNERIS</title>
	<atom:link href="https://cneris.com/en/category/system-administration/dedicated-servers/feed/" rel="self" type="application/rss+xml" />
	<link>https://cneris.com/en/category/system-administration/dedicated-servers/</link>
	<description></description>
	<lastBuildDate>Sun, 03 Nov 2024 17:42:56 +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>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>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 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>
		<item>
		<title>How can I test the SSL negotiation of my website</title>
		<link>https://cneris.com/en/how-can-i-test-the-ssl-negotiation-of-my-website/</link>
					<comments>https://cneris.com/en/how-can-i-test-the-ssl-negotiation-of-my-website/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sun, 13 Oct 2024 10:37:06 +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[nmap]]></category>
		<category><![CDATA[openssl]]></category>
		<category><![CDATA[ssl labs]]></category>
		<category><![CDATA[ssl negotiations]]></category>
		<category><![CDATA[ssl/tls website]]></category>
		<guid isPermaLink="false">https://cneris.com/?p=2472</guid>

					<description><![CDATA[<p>You can test the SSL negotiation of your website using online tools or specific commands. Here are some options: SSL Labs: Use the free service from SSL Labs to perform a comprehensive analysis of your SSL certificate, including the SSL/TLS negotiation. Simply enter your website URL, and it will generate a detailed report about supported [...]</p>
<p>The post <a href="https://cneris.com/en/how-can-i-test-the-ssl-negotiation-of-my-website/">How can I test the SSL negotiation of my website</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>You can test the SSL negotiation of your website using online tools or specific commands. Here are some options:</p>
<ol>
<li><strong>SSL Labs</strong>:
<ul>
<li>Use the free service from <strong><a target="_new" rel="noopener">SSL Labs</a></strong> to perform a comprehensive analysis of your SSL certificate, including the SSL/TLS negotiation.</li>
<li>Simply enter your website URL, and it will generate a detailed report about supported SSL/TLS versions, cipher configurations, and more.</li>
</ul>
</li>
<li><strong>OpenSSL</strong>:
<ul>
<li>From the command line, you can use <code>openssl</code> to test SSL/TLS negotiations.</li>
<li>Example:
<div class="dark bg-gray-950 contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative">
<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">openssl s_client -connect yourwebsite.com:443<br />
</code></div>
</div>
<p>This will give you details about the SSL handshake process, including TLS version and certificates.</li>
</ul>
</li>
<li><strong>Nmap</strong>:
<ul>
<li>Nmap, with the <code>ssl-enum-ciphers</code> script, can help you verify SSL negotiations.</li>
<li>Example:
<div class="dark bg-gray-950 contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative">
<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">nmap --script ssl-enum-ciphers -p 443 yourwebsite.com</code></div>
</div>
</li>
</ul>
</li>
</ol>
<p>The post <a href="https://cneris.com/en/how-can-i-test-the-ssl-negotiation-of-my-website/">How can I test the SSL negotiation of my website</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cneris.com/en/how-can-i-test-the-ssl-negotiation-of-my-website/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How can I measure the number of requests a website can handle?</title>
		<link>https://cneris.com/en/how-can-i-measure-the-number-of-requests-a-website-can-handle/</link>
					<comments>https://cneris.com/en/how-can-i-measure-the-number-of-requests-a-website-can-handle/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sun, 13 Oct 2024 10:28:35 +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[concurrent requests]]></category>
		<category><![CDATA[website requests]]></category>
		<guid isPermaLink="false">https://cneris.com/?p=2465</guid>

					<description><![CDATA[<p>To measure the number of requests a website can handle (known as concurrent requests), you can follow these steps: Load testing: Use tools like Apache JMeter, Loader.io, or k6 to simulate multiple users making requests to your website simultaneously. This will help you determine how many requests your website can handle before performance starts to [...]</p>
<p>The post <a href="https://cneris.com/en/how-can-i-measure-the-number-of-requests-a-website-can-handle/">How can I measure the number of requests a website can handle?</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>To measure the number of requests a website can handle (known as <strong>concurrent requests</strong>), you can follow these steps:</p>
<ol>
<li><strong>Load testing</strong>: Use tools like <strong>Apache JMeter</strong>, <strong>Loader.io</strong>, or <strong>k6</strong> to simulate multiple users making requests to your website simultaneously. This will help you determine how many requests your website can handle before performance starts to degrade.</li>
<li><strong>Server resource monitoring</strong>: During load testing, monitor the server&#8217;s CPU, memory, and bandwidth usage to identify bottlenecks.</li>
<li><strong>Web server tuning</strong>: Adjust the web server configuration to optimize the handling of concurrent connections, such as setting the maximum number of simultaneous connections (e.g., in Apache or Nginx).</li>
<li><strong>Test results</strong>: Load testing tools will provide a detailed report that shows the maximum number of requests your server can efficiently handle.</li>
</ol>
<p>The post <a href="https://cneris.com/en/how-can-i-measure-the-number-of-requests-a-website-can-handle/">How can I measure the number of requests a website can handle?</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cneris.com/en/how-can-i-measure-the-number-of-requests-a-website-can-handle/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Where can I configure the number of connections on the hosting?</title>
		<link>https://cneris.com/en/where-can-i-configure-the-number-of-connections-on-the-hosting/</link>
					<comments>https://cneris.com/en/where-can-i-configure-the-number-of-connections-on-the-hosting/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sun, 13 Oct 2024 10:19:38 +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[connections]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[php-fpm]]></category>
		<category><![CDATA[plesk]]></category>
		<category><![CDATA[system administration]]></category>
		<guid isPermaLink="false">https://cneris.com/?p=2457</guid>

					<description><![CDATA[<p>On a hosting server, the number of simultaneous connections that a server can handle can be configured at different levels, depending on the type of web server and the environment it's set up in. Below is a detailed guide on how to configure it for the most common web servers, like Apache, Nginx, and PHP-FPM: [...]</p>
<p>The post <a href="https://cneris.com/en/where-can-i-configure-the-number-of-connections-on-the-hosting/">Where can I configure the number of connections on the hosting?</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>On a hosting server, the number of simultaneous connections that a server can handle can be configured at different levels, depending on the type of web server and the environment it&#8217;s set up in. Below is a detailed guide on how to configure it for the most common web servers, like <strong>Apache</strong>, <strong>Nginx</strong>, and <strong>PHP-FPM</strong>:</p>
<h4>1. <strong>Apache</strong></h4>
<p>Apache allows configuring the number of concurrent connections through its modules and directives in the main configuration file, usually located at <code>/etc/apache2/apache2.conf</code> or <code>/etc/httpd/httpd.conf</code>, depending on the operating system.</p>
<h5>Key parameters:</h5>
<ul>
<li><strong>MaxRequestWorkers</strong>: Defines the maximum number of simultaneous requests that Apache can handle.
<div class="dark bg-gray-950 contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative">
<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-apache">&lt;IfModule mpm_prefork_module&gt;<br />
MaxRequestWorkers 150<br />
&lt;/IfModule&gt;<br />
</code></div>
</div>
</li>
<li><strong>ServerLimit</strong>: Defines the maximum number of processes Apache can spawn.
<div class="dark bg-gray-950 contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative">
<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-apache">&lt;IfModule mpm_worker_module&gt;<br />
ServerLimit 256<br />
&lt;/IfModule&gt;<br />
</code></div>
</div>
</li>
<li><strong>MaxConnectionsPerChild</strong>: Defines the maximum number of connections each child process handles before being recycled.
<div class="dark bg-gray-950 contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative">
<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-apache">MaxConnectionsPerChild 1000<br />
</code></div>
</div>
</li>
</ul>
<p>After making these changes, restart Apache with:</p>
<div class="dark bg-gray-950 contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative">
<div class="overflow-y-auto p-4" dir="ltr"><code class="!whitespace-pre hljs language-bash">sudo systemctl restart apache2<br />
</code></div>
</div>
<h4>2. <strong>Nginx</strong></h4>
<p>In Nginx, the configuration of simultaneous connections is mainly controlled through the following parameters in the configuration file located at <code>/etc/nginx/nginx.conf</code>:</p>
<h5>Key parameters:</h5>
<ul>
<li><strong>worker_processes</strong>: Defines the number of worker processes Nginx will run. This should align with the number of CPU cores on the server.
<div class="dark bg-gray-950 contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative">
<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-nginx">worker_processes auto;<br />
</code></div>
</div>
</li>
<li><strong>worker_connections</strong>: Defines the maximum number of simultaneous connections that a single worker process can handle.
<div class="dark bg-gray-950 contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative">
<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-nginx">worker_connections 1024;<br />
</code></div>
</div>
</li>
<li><strong>events</strong>: This section allows configuring event handling parameters, such as the I/O method used.
<div class="dark bg-gray-950 contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative">
<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-nginx">events {<br />
worker_connections 1024;<br />
}<br />
</code></div>
</div>
</li>
</ul>
<p>The total number of simultaneous connections Nginx can handle is the product of <code>worker_processes</code> and <code>worker_connections</code>.</p>
<p>Once the changes are made, restart Nginx with:</p>
<div class="dark bg-gray-950 contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative">
<div class="overflow-y-auto p-4" dir="ltr"><code class="!whitespace-pre hljs language-bash">sudo systemctl restart nginx<br />
</code></div>
</div>
<h4>3. <strong>PHP-FPM</strong></h4>
<p>If your web application uses PHP-FPM to handle PHP requests, you should configure the number of concurrent connections in the <code>php-fpm.conf</code> file or in the pool files, located in <code>/etc/php/7.4/fpm/pool.d/www.conf</code> (the path may vary depending on the PHP version).</p>
<h5>Key parameters:</h5>
<ul>
<li><strong>pm.max_children</strong>: Sets the maximum number of PHP-FPM processes that can run simultaneously.
<div class="dark bg-gray-950 contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative">
<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">pm.max_children</span> = <span class="hljs-number">50</span><br />
</code></div>
</div>
</li>
<li><strong>pm.start_servers</strong>: The number of processes that start when the service begins.
<div class="dark bg-gray-950 contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative">
<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">pm.start_servers</span> = <span class="hljs-number">5</span><br />
</code></div>
</div>
</li>
<li><strong>pm.max_spare_servers</strong>: The maximum number of spare (idle) processes.
<div class="dark bg-gray-950 contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative">
<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">pm.max_spare_servers</span> = <span class="hljs-number">10</span><br />
</code></div>
</div>
</li>
</ul>
<p>After making changes, restart PHP-FPM:</p>
<div class="dark bg-gray-950 contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative">
<div class="overflow-y-auto p-4" dir="ltr"><code class="!whitespace-pre hljs language-bash">sudo systemctl restart php7.4-fpm</code></div>
</div>
<p>The post <a href="https://cneris.com/en/where-can-i-configure-the-number-of-connections-on-the-hosting/">Where can I configure the number of connections on the hosting?</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cneris.com/en/where-can-i-configure-the-number-of-connections-on-the-hosting/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>how many maximum connections your MySQL server allows</title>
		<link>https://cneris.com/en/how-many-maximum-connections-your-mysql-server-allows/</link>
					<comments>https://cneris.com/en/how-many-maximum-connections-your-mysql-server-allows/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sun, 13 Oct 2024 09:16:15 +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[maximum connections]]></category>
		<category><![CDATA[mysql server]]></category>
		<guid isPermaLink="false">https://cneris.com/?p=2449</guid>

					<description><![CDATA[<p>To check how many maximum connections your MySQL server allows, follow these steps: Open the MySQL command line: mysql -u root -p Once inside MySQL, run the following command to see the maximum allowed connections: SHOW VARIABLES LIKE 'max_connections'; This will display the current value of max_connections, which is the maximum number of simultaneous connections [...]</p>
<p>The post <a href="https://cneris.com/en/how-many-maximum-connections-your-mysql-server-allows/">how many maximum connections your MySQL server allows</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>To check how many maximum connections your MySQL server allows, follow these steps:</p>
<ol>
<li>Open the MySQL command line:
<div class="dark bg-gray-950 contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative">
<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 root -p<br />
</code></div>
</div>
</li>
<li>Once inside MySQL, run the following command to see the maximum allowed connections:
<div class="dark bg-gray-950 contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative">
<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">SHOW</span> VARIABLES <span class="hljs-keyword">LIKE</span> <span class="hljs-string">'max_connections'</span>;<br />
</code></div>
</div>
<p>This will display the current value of <code>max_connections</code>, which is the maximum number of simultaneous connections MySQL can handle.</li>
</ol>
<p>The post <a href="https://cneris.com/en/how-many-maximum-connections-your-mysql-server-allows/">how many maximum connections your MySQL server allows</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cneris.com/en/how-many-maximum-connections-your-mysql-server-allows/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
