<?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>FAQforge &#187; Server</title> <atom:link href="http://www.faqforge.com/category/linux/server/feed/" rel="self" type="application/rss+xml" /><link>http://www.faqforge.com</link> <description>Just another WordPress weblog</description> <lastBuildDate>Fri, 03 Feb 2012 13:47:23 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>Apache mod-security installation on Debian 6.0 (squeeze)</title><link>http://www.faqforge.com/linux/apache-mod-security-installation-on-debian-6-0-squeeze/</link> <comments>http://www.faqforge.com/linux/apache-mod-security-installation-on-debian-6-0-squeeze/#comments</comments> <pubDate>Mon, 02 Jan 2012 11:20:06 +0000</pubDate> <dc:creator>Till</dc:creator> <category><![CDATA[Controlpanels]]></category> <category><![CDATA[Debian]]></category> <category><![CDATA[Distributions]]></category> <category><![CDATA[ISPConfig 3]]></category> <category><![CDATA[Linux & Unix]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[Webserver]]></category> <category><![CDATA[apache]]></category> <category><![CDATA[squeeze]]></category><guid
isPermaLink="false">http://www.faqforge.com/?p=1486</guid> <description><![CDATA[Install the apache mod-security 2 module with apt from the Debian repositories apt-get install libapache-mod-security Create the folder for the mod-security configuration files mkdir /etc/apache2/mod-security chmod 600 /etc/apache2/mod-security Download and unpack the mod-security rules cd /tmp wget http://www.modsecurity.org/download/modsecurity-core-rules_2.5-1.6.1.tar.gz tar fvx modsecurity-core-rules_2.5-1.6.1.tar.gz mv *.conf /etc/apache2/mod-security/ ln -s /var/log/apache2 /etc/apache2/logs Configure apache to load the activated mod-security [...]]]></description> <content:encoded><![CDATA[<p>Install the apache mod-security 2 module with apt from the Debian repositories</p><p
class="command">apt-get install libapache-mod-security</p><p>Create the folder for the mod-security configuration files</p><p
class="command">mkdir /etc/apache2/mod-security<br
/> chmod 600 /etc/apache2/mod-security</p><p>Download and unpack the mod-security rules</p><p
class="command">cd /tmp<br
/> wget http://www.modsecurity.org/download/modsecurity-core-rules_2.5-1.6.1.tar.gz<br
/> tar fvx modsecurity-core-rules_2.5-1.6.1.tar.gz<br
/> mv *.conf /etc/apache2/mod-security/<br
/> ln -s /var/log/apache2 /etc/apache2/logs</p><p>Configure apache to load the activated mod-security rules</p><p
class="command">vi /etc/apache2/conf.d/mod-security.conf</p><p><span
class="system">Include /etc/apache2/mod-security/*.conf</span></p><p>To enable mod-security, edit the file</p><p
class="command">vi /etc/apache2/mod-security/modsecurity_crs_10_config.conf</p><p>and remove the # in front of the line:</p><p
class="system">SecDefaultAction &#8220;phase:2,log,deny,status:403,t:lowercase,t:replaceNulls,t:compressWhitespace&#8221;</p><p>Then reload apache.</p><p
class="command">/etc/init.d/apache2 force-reload</p><p>Mod security will now start to block hack attempts to your websites and log the actions in the file /var/log/apache2/modsec_audit.log.</p><p
class="command">tail /var/log/apache2/modsec_audit.log</p><p>You will see very likely some falsely blocked URL&#8217;s. To whitelist them, you can add the ID&#8217;s of the rules that should not be used in the whitelist file.</p><p>Example:</p><p
class="command">vi /etc/apache2/mod-security/modsecurity_crs_99_whitelist.conf</p><p
class="system">SecRuleRemoveById 960015<br
/> SecRuleRemoveById 960016</p> ]]></content:encoded> <wfw:commentRss>http://www.faqforge.com/linux/apache-mod-security-installation-on-debian-6-0-squeeze/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>nginx server error: 413 Request Entity Too Large</title><link>http://www.faqforge.com/linux/nginx-server-error-413-request-entity-too-large/</link> <comments>http://www.faqforge.com/linux/nginx-server-error-413-request-entity-too-large/#comments</comments> <pubDate>Mon, 21 Nov 2011 11:34:10 +0000</pubDate> <dc:creator>Till</dc:creator> <category><![CDATA[Debian]]></category> <category><![CDATA[ISPConfig 3]]></category> <category><![CDATA[Linux & Unix]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[Webserver]]></category> <category><![CDATA[nginx]]></category><guid
isPermaLink="false">http://www.faqforge.com/?p=1316</guid> <description><![CDATA[The nginx webserver has a max. body size limit of 1 MB for requests as default. This might be too low for file uploads in scripts and you will see the following error message when you try to upload a file:  413 Request Entity Too Large The configuration variable for this option is &#8220;client_max_body_size&#8221; and [...]]]></description> <content:encoded><![CDATA[<p>The nginx webserver has a max. body size limit of 1 MB for requests as default. This might be too low for file uploads in scripts and you will see the following error message when you try to upload a file:</p><p
class="system"> 413 Request Entity Too Large</p><p>The configuration variable for this option is &#8220;<span
class="system">client_max_body_size</span>&#8221; and it can be set in the <span
class="system">http, server</span> and<span
class="system"> location</span> sections of the nginx configuration file. To set the Limit globally to 25 MB, edit the nginx.conf file and add:</p><p
class="system">client_max_body_size 20M;</p><p>in the http section.</p><p>Example for Ubuntu Linux:</p><pre class="system" dir="ltr">user www-data;
worker_processes 4;
pid /var/run/nginx.pid;

events {
        worker_connections 768;
        # multi_accept on;
}

http {
        geoip_country  /etc/nginx/geoip/GeoIP.dat; # the country IP database
        geoip_city     /etc/nginx/geoip/GeoLiteCity.dat; # the city IP database
        ##
        # Basic Settings
        ##

        sendfile on;
        tcp_nopush on;
        tcp_nodelay on;
        keepalive_timeout 65;
        types_hash_max_size 2048;</pre><pre dir="ltr">        client_max_body_size 20M;

        include /etc/nginx/mime.types;
        default_type application/octet-stream;

        ##
        # Logging Settings
        ##

        access_log /var/log/nginx/access.log;
        error_log /var/log/nginx/error.log;

        ##
        # Gzip Settings
        ##

        gzip on;
        gzip_disable "msie6";

        ##
        # Virtual Host Configs
        ##

        include /etc/nginx/conf.d/*.conf;
        include /etc/nginx/sites-enabled/*;
}</pre>]]></content:encoded> <wfw:commentRss>http://www.faqforge.com/linux/nginx-server-error-413-request-entity-too-large/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Enhanced e-mail SPAM protection in ISPConfig 3</title><link>http://www.faqforge.com/linux/enhanced-e-mail-spam-protection-in-ispconfig-3/</link> <comments>http://www.faqforge.com/linux/enhanced-e-mail-spam-protection-in-ispconfig-3/#comments</comments> <pubDate>Mon, 21 Nov 2011 10:22:41 +0000</pubDate> <dc:creator>Till</dc:creator> <category><![CDATA[CentOS]]></category> <category><![CDATA[Controlpanels]]></category> <category><![CDATA[Debian]]></category> <category><![CDATA[Distributions]]></category> <category><![CDATA[Email]]></category> <category><![CDATA[ISPConfig 3]]></category> <category><![CDATA[Linux & Unix]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[postfix]]></category><guid
isPermaLink="false">http://www.faqforge.com/?p=1312</guid> <description><![CDATA[The command below enables a stricter SPAM handling for postfix on ISPConfig 3 servers. In Detail: Reject sender hostnames with invalid syntax Reject sender hostnames that are no fully qualified domains (e.g. reject &#8220;server1&#8243; but allow server1.domain.tld) Reject sender domains that have no DNS records Check sender IP addresses against realtime blacklists. First make a [...]]]></description> <content:encoded><![CDATA[<p>The command below enables a stricter SPAM handling for postfix on ISPConfig 3 servers.</p><p>In Detail:</p><ul><li>Reject sender hostnames with invalid syntax</li><li>Reject sender hostnames that are no fully qualified domains (e.g. reject &#8220;server1&#8243; but allow server1.domain.tld)</li><li>Reject sender domains that have no DNS records</li><li>Check sender IP addresses against realtime blacklists.</li></ul><p>First make a backup of the postfix main.cf file in case that you want to reverse the changes later:</p><p
class="command">cp -pf /etc/postfix/main.cf /etc/postfix/main.cf.bak</p><p>Then execute this command to enable the additional spam protection functions (the command is one line!).</p><p
class="command">postconf -e &#8216;smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_invalid_hostname, reject_non_fqdn_hostname, reject_unknown_recipient_domain, reject_non_fqdn_recipient, reject_unauth_destination, reject_non_fqdn_sender, reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_rbl_client cbl.abuseat.org,reject_rbl_client dul.dnsbl.sorbs.net,reject_rbl_client ix.dnsbl.manitu.net, check_recipient_access mysql:/etc/postfix/mysql-virtual_recipient.cf, reject_unauth_destination&#8217;</p><p>Then restart postfix:</p><p
class="command">/etc/init.d/postfix restart</p> ]]></content:encoded> <wfw:commentRss>http://www.faqforge.com/linux/enhanced-e-mail-spam-protection-in-ispconfig-3/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>How to change the welcome email message text in ISPConfig 3</title><link>http://www.faqforge.com/linux/controlpanels/how-to-change-the-welcome-email-message-text-in-ispconfig-3/</link> <comments>http://www.faqforge.com/linux/controlpanels/how-to-change-the-welcome-email-message-text-in-ispconfig-3/#comments</comments> <pubDate>Thu, 10 Nov 2011 11:00:05 +0000</pubDate> <dc:creator>Till</dc:creator> <category><![CDATA[Controlpanels]]></category> <category><![CDATA[Email]]></category> <category><![CDATA[ISPConfig 3]]></category> <category><![CDATA[Server]]></category><guid
isPermaLink="false">http://www.faqforge.com/?p=1262</guid> <description><![CDATA[As of ISPConfig 3.0.4, the text of the welcome email message that is sent to new email accounts is stored in the folder /usr/local/ispconfig/server/conf/mail/. The message has this format: &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; From: ISPConfig &#60;postmaster@localhost.localdomain&#62; Subject: Welcome to your new email account. Welcome to your new email account. Your webmaster. &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; The first line starts with &#8220;From: [...]]]></description> <content:encoded><![CDATA[<p>As of ISPConfig 3.0.4, the text of the welcome email message that is sent to new email accounts is stored in the folder <span
class="system">/usr/local/ispconfig/server/conf/mail/</span>.</p><p>The message has this format:</p><p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br
/> From: ISPConfig &lt;postmaster@localhost.localdomain&gt;<br
/> Subject: Welcome to your new email account.</p><p>Welcome to your new email account. Your webmaster.<br
/> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p><p>The first line starts with &#8220;From: &#8221; followed by the sender email address. The second line starts with &#8220;Subject: &#8221; followed by the email subject. The third line should be empty. All following lines are the email text.</p><p>The email text files are named &#8220;welcome_email_&lt;language&gt;.txt&#8221; where &lt;language&gt; has to be replaced with the system language like &#8220;en&#8221; for English or &#8220;de&#8221; for German language, e.g. &#8220;welcome_email_en.txt&#8221; for the english welcome email.</p><p>The customized language file should be stored in the folder<span
class="system"> /usr/local/ispconfig/server/conf-custom/mail/</span> so that it does not get overwritten by ISPConfig updates.</p> ]]></content:encoded> <wfw:commentRss>http://www.faqforge.com/linux/controlpanels/how-to-change-the-welcome-email-message-text-in-ispconfig-3/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Webalizer: Error Opening file /usr/share/GeoIP/GeoIP.dat on Debian Linux</title><link>http://www.faqforge.com/linux/webalizer-error-opening-file-usrsharegeoipgeoip-dat-on-debian-linux/</link> <comments>http://www.faqforge.com/linux/webalizer-error-opening-file-usrsharegeoipgeoip-dat-on-debian-linux/#comments</comments> <pubDate>Tue, 25 Oct 2011 14:06:44 +0000</pubDate> <dc:creator>Till</dc:creator> <category><![CDATA[Controlpanels]]></category> <category><![CDATA[ISPConfig 2]]></category> <category><![CDATA[ISPConfig 3]]></category> <category><![CDATA[Linux & Unix]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[Webserver]]></category> <category><![CDATA[apache]]></category> <category><![CDATA[Debian]]></category> <category><![CDATA[webalizer]]></category><guid
isPermaLink="false">http://www.faqforge.com/?p=1030</guid> <description><![CDATA[The webalizer package in Debain 6 has currently small bug as the required package for the  GeoIP database is not installed automatically when webalizer is isntalled. The symptoms are that webalizer statistics are not created and this error message is displayed when webalizer is run: Error Opening file /usr/share/GeoIP/GeoIP.dat The solution is to install the [...]]]></description> <content:encoded><![CDATA[<p>The webalizer package in Debain 6 has currently small bug as the required package for the  GeoIP database is not installed automatically when webalizer is isntalled. The symptoms are that webalizer statistics are not created and this error message is displayed when webalizer is run:</p><p
class="system">Error Opening file /usr/share/GeoIP/GeoIP.dat</p><p>The solution is to install the missing package manually:</p><p
class="command">apt-get install geoip-database</p> ]]></content:encoded> <wfw:commentRss>http://www.faqforge.com/linux/webalizer-error-opening-file-usrsharegeoipgeoip-dat-on-debian-linux/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Send all outgoing email trough one IP address in postfix</title><link>http://www.faqforge.com/linux/send-all-outgoing-email-trough-one-ip-address-in-postfix/</link> <comments>http://www.faqforge.com/linux/send-all-outgoing-email-trough-one-ip-address-in-postfix/#comments</comments> <pubDate>Tue, 25 Oct 2011 13:59:05 +0000</pubDate> <dc:creator>Till</dc:creator> <category><![CDATA[Basics]]></category> <category><![CDATA[CentOS]]></category> <category><![CDATA[Controlpanels]]></category> <category><![CDATA[Debian]]></category> <category><![CDATA[Distributions]]></category> <category><![CDATA[Email]]></category> <category><![CDATA[ISPConfig 2]]></category> <category><![CDATA[ISPConfig 3]]></category> <category><![CDATA[Linux & Unix]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[bind]]></category> <category><![CDATA[postfix]]></category> <category><![CDATA[smtp_bind_address]]></category><guid
isPermaLink="false">http://www.faqforge.com/?p=1028</guid> <description><![CDATA[When a server has more then one IP address, then postfix will use all IP addresses randomly to send out emails. This can cause your emails to be listed as SPAM on other servers because the sending IP does not match the reverse IP of the server hostname. The solution is to bind postfix to [...]]]></description> <content:encoded><![CDATA[<p>When a server has more then one IP address, then postfix will use all IP addresses randomly to send out emails. This can cause your emails to be listed as SPAM on other servers because the sending IP does not match the reverse IP of the server hostname. The solution is to bind postfix to the primary IP address of the server.</p><p>Edit the postfix main.cf file:</p><p
class="command">vi /etc/postfix/main.cf</p><p>and add the line:</p><p
class="command">smtp_bind_address = 192.168.0.1</p><p>were 192.168.0.1 has to be replaced with the primary IP address of the server. Then restart postfix:</p><p
class="command">/etc/init.d/postfix restart</p> ]]></content:encoded> <wfw:commentRss>http://www.faqforge.com/linux/send-all-outgoing-email-trough-one-ip-address-in-postfix/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Fix for OpenSuSE error: postfix/master: fatal: 0.0.0.0:smtps: Servname not supported for ai_socktype</title><link>http://www.faqforge.com/linux/fix-for-opensuse-error-postfixmaster-fatal-0-0-0-0smtps-servname-not-supported-for-ai_socktype/</link> <comments>http://www.faqforge.com/linux/fix-for-opensuse-error-postfixmaster-fatal-0-0-0-0smtps-servname-not-supported-for-ai_socktype/#comments</comments> <pubDate>Thu, 06 Oct 2011 09:00:06 +0000</pubDate> <dc:creator>Till</dc:creator> <category><![CDATA[Email]]></category> <category><![CDATA[Linux & Unix]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[OpenSuSE]]></category> <category><![CDATA[postfix]]></category><guid
isPermaLink="false">http://www.faqforge.com/?p=734</guid> <description><![CDATA[You might see the error: postfix/master[5309]: fatal: 0.0.0.0:smtps: Servname not supported for ai_socktype On a OpenSuSE server when you enable smtps in postfix master.cf file. The reason for the error is that the definition of the smtps port in /etc/services is missing. Solution Edit the /etc/services file vi /etc/services and add the following lines: smtps [...]]]></description> <content:encoded><![CDATA[<p>You might see the error:</p><p
class="system">postfix/master[5309]: fatal: 0.0.0.0:smtps: Servname not supported for ai_socktype</p><p>On a OpenSuSE server when you enable smtps in postfix master.cf file. The reason for the error is that the definition of the smtps port in /etc/services is missing.</p><p><strong>Solution</strong></p><p>Edit the /etc/services file</p><p
class="command">vi /etc/services</p><p>and add the following lines:</p><p
class="system">smtps 465/tcp # Secure SMTP<br
/> smtps 465/udp # Secure SMTP</p><p>Then restart postfix</p><p
class="command">/etc/init.d/postfix restart</p> ]]></content:encoded> <wfw:commentRss>http://www.faqforge.com/linux/fix-for-opensuse-error-postfixmaster-fatal-0-0-0-0smtps-servname-not-supported-for-ai_socktype/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>How to connect to an SSH-Server</title><link>http://www.faqforge.com/linux/how-to-connect-to-an-ssh-server/</link> <comments>http://www.faqforge.com/linux/how-to-connect-to-an-ssh-server/#comments</comments> <pubDate>Fri, 16 Sep 2011 13:54:08 +0000</pubDate> <dc:creator>CSch</dc:creator> <category><![CDATA[Basics]]></category> <category><![CDATA[Linux & Unix]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[connect]]></category> <category><![CDATA[server]]></category> <category><![CDATA[ssh]]></category><guid
isPermaLink="false">http://www.faqforge.com/?p=635</guid> <description><![CDATA[To connect to a system&#8217;s terminal with a static network IP and an SSH-Server installed, open a terminal and enter following command, exchanging the network IP with the one of your SSH-Server: ssh root@192.168.0.110 Enter the target SSH-Server&#8217;s root password afterwards. To exit the server&#8217;s shell, enter exit]]></description> <content:encoded><![CDATA[<p>To connect to a system&#8217;s terminal with a static network IP and an SSH-Server installed, open a terminal and enter following command, exchanging the network IP with the one of your SSH-Server:</p><pre>ssh root@192.168.0.110</pre><p>Enter the target SSH-Server&#8217;s root password afterwards. To exit the server&#8217;s shell, enter</p><p
class="command">exit</p> ]]></content:encoded> <wfw:commentRss>http://www.faqforge.com/linux/how-to-connect-to-an-ssh-server/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Redirect http requests to a new folder with apache rewrite rules</title><link>http://www.faqforge.com/linux/redirect-http-requests-to-a-new-folder-with-apache-rewrite-rules/</link> <comments>http://www.faqforge.com/linux/redirect-http-requests-to-a-new-folder-with-apache-rewrite-rules/#comments</comments> <pubDate>Fri, 12 Aug 2011 08:21:59 +0000</pubDate> <dc:creator>Till</dc:creator> <category><![CDATA[Linux & Unix]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[Webserver]]></category> <category><![CDATA[apache]]></category> <category><![CDATA[rewriterule]]></category><guid
isPermaLink="false">http://www.faqforge.com/?p=598</guid> <description><![CDATA[When you reorganize the structure of a website, you might want to redirect requests to files in a old folder to a new one without loosing the pagerank. In this example, I will redirect all requests from directory &#8220;olddir&#8221; to directory &#8220;newdir&#8221;, so that requests like http://www.yourdomain.tld/olddir/page.htm get redirected to http://www.yourdomain.tld/newdir/page.htm without loosing the Google pagerank [...]]]></description> <content:encoded><![CDATA[<p>When you reorganize the structure of a website, you might want to redirect requests to files in a old folder to a new one without loosing the pagerank. In this example, I will redirect all requests from directory &#8220;olddir&#8221; to directory &#8220;newdir&#8221;, so that requests like http://www.yourdomain.tld/olddir/page.htm get redirected to http://www.yourdomain.tld/newdir/page.htm without loosing the Google pagerank of the pages.</p><p>The following rewrite rules can be added into a <span
class="system">.htaccess</span> file in the website directory or in the vhost configuration.</p><p
class="command">RewriteEngine on<br
/> RewriteRule ^olddir/(.*)$ newdir/$1 [R=301,L]</p><p>This rewrite rule redirects automatically all requests to pages or subdirectorys of &#8220;olddir&#8221; to the same page or subdirectory in &#8220;newdir&#8221;.</p> ]]></content:encoded> <wfw:commentRss>http://www.faqforge.com/linux/redirect-http-requests-to-a-new-folder-with-apache-rewrite-rules/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Reduce load of backup scripts with nice and ionice</title><link>http://www.faqforge.com/linux/reduce-load-of-backup-scripts-with-nice-and-ionice/</link> <comments>http://www.faqforge.com/linux/reduce-load-of-backup-scripts-with-nice-and-ionice/#comments</comments> <pubDate>Wed, 10 Aug 2011 11:46:33 +0000</pubDate> <dc:creator>Till</dc:creator> <category><![CDATA[Basics]]></category> <category><![CDATA[CentOS]]></category> <category><![CDATA[Debian]]></category> <category><![CDATA[Distributions]]></category> <category><![CDATA[Linux & Unix]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[Backup]]></category> <category><![CDATA[ionice]]></category> <category><![CDATA[nice]]></category><guid
isPermaLink="false">http://www.faqforge.com/?p=595</guid> <description><![CDATA[Runing a nightly backup script on a server system like a webhosting server can produce high load and longer latencys for other processes, e.g. HTML or .php pages load slow during backup because the backup script takes too much I/O or CPU resources. On Linux systems there are two shell utilitys available to set the [...]]]></description> <content:encoded><![CDATA[<p>Runing a nightly backup script on a server system like a webhosting server can produce high load and longer latencys for other processes, e.g. HTML or .php pages load slow during backup because the backup script takes too much I/O or CPU resources.</p><p>On Linux systems there are two shell utilitys available to set the I/O and CPU Scheduling for a appliaction or script. The utilitys are named nice and ionice.</p><p>Reduce the I/O priority of the script &#8220;/usr/local/bin/backup.sh&#8221; so that it does not disrupt other processes:</p><p
class="command">/usr/bin/ionice -c2 -n7 /usr/local/bin/backup.sh</p><p>The -n parameter must be between 0 and 7, where lower numbers mean higher priority.</p><p>To reduce the CPU priority, use the command nice:</p><p
class="command">/usr/bin/nice -n 19 /usr/local/bin/backup.sh</p><p>The -n parameter can range from -20 to 19, where lower numbers mean higher priority</p><p>Nice and ionice can also be combined, to run a script at low I/O and CPU priority:</p><p
class="command">/usr/bin/nice -n 19 /usr/bin/ionice -c2 -n7 /usr/local/bin/backup.sh</p><p>&nbsp;</p> ]]></content:encoded> <wfw:commentRss>http://www.faqforge.com/linux/reduce-load-of-backup-scripts-with-nice-and-ionice/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)
Database Caching 1/34 queries in 0.033 seconds using disk: basic
Object Caching 1518/1597 objects using disk: basic

Served from: www.faqforge.com @ 2012-02-05 00:21:55 -->
