<?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"
	>

<channel>
	<title>GNUSYS &#124;    GNU/Linux sysadmin notes</title>
	<atom:link href="http://gnusys.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://gnusys.net</link>
	<description>GNU/LINUX System Administration notes</description>
	<pubDate>Thu, 21 Aug 2008 03:58:12 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>Howto install yum on a Virtuozzo container</title>
		<link>http://gnusys.net/howto-install-yum-on-a-virtuozzo-container/</link>
		<comments>http://gnusys.net/howto-install-yum-on-a-virtuozzo-container/#comments</comments>
		<pubDate>Thu, 21 Aug 2008 03:58:12 +0000</pubDate>
		<dc:creator>Anoop Alias</dc:creator>
		
		<category><![CDATA[virtuozzo]]></category>

		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://gnusys.net/?p=44</guid>
		<description><![CDATA[Please follow the following commands to install yum on your Virtuozzo container . The follwoing commands are to be run from the hardware node .
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;
[root@vps1 ~]# vzlist  -a
CTID      NPROC STATUS    IP_ADDR         HOSTNAME
1         91 running   192.168.46.242  ServiceCT
105         49 running   69.72.234.148   asdf
107         49 running   69.72.234.150   test.test.com2
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;
This will list all the configured containers and their container ID (CTID) [...]]]></description>
			<content:encoded><![CDATA[<p>Please follow the following commands to install yum on your Virtuozzo container . The follwoing commands are to be run from the hardware node .</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>[root@vps1 ~]# vzlist  -a<br />
CTID      NPROC STATUS    IP_ADDR         HOSTNAME<br />
1         91 running   192.168.46.242  ServiceCT<br />
105         49 running   69.72.234.148   asdf<br />
107         49 running   69.72.234.150   test.test.com2</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>This will list all the configured containers and their container ID (CTID) which is of importance to us</p>
<p>Assume you have to install yum on container 107</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>[root@vps1 ~]# vzpkg install -p 107 yum</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>!please note that  If there is no yum available in the template repository it will fail.</p>
]]></content:encoded>
			<wfw:commentRss>http://gnusys.net/howto-install-yum-on-a-virtuozzo-container/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Howto install Nginx from source</title>
		<link>http://gnusys.net/howto-install-nginx-from-source/</link>
		<comments>http://gnusys.net/howto-install-nginx-from-source/#comments</comments>
		<pubDate>Wed, 13 Aug 2008 11:23:30 +0000</pubDate>
		<dc:creator>Anoop Alias</dc:creator>
		
		<category><![CDATA[hosting]]></category>

		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://gnusys.net/?p=43</guid>
		<description><![CDATA[Nginx is a very fast ,powerful asynchronous web server that can be considered as a good replacement for the Apache HTTPD web server. Below are the steps required to get Nginx installed on your system. It is preffered to install Nginx from source as we get the latest stable version of this project as compared [...]]]></description>
			<content:encoded><![CDATA[<p>Nginx is a very fast ,powerful asynchronous web server that can be considered as a good replacement for the Apache HTTPD web server. Below are the steps required to get Nginx installed on your system. It is preffered to install Nginx from source as we get the latest stable version of this project as compared to installing from your operating systems package repository as this may be sometimes outdated</p>
<p>Get the latest stable release from http://nginx.net</p>
<p>At the time of writing i downloaded  http://sysoev.ru/nginx/nginx-0.6.32.tar.gz</p>
<p>I installed the following development libraries using apt-get</p>
<p>apt-get install libgcrypt11-dev libpcre3-dev libssl-dev</p>
<p>tar -xvzf nginx-0.6.32.tar.gz</p>
<p>cd nginx-0.6.32</p>
<p>mkdir /usr/local/nginx</p>
<p>./configure &#8211;prefix=/usr/local/nginx &#8211;user=nobody &#8211;group=nogroup &#8211;with-http_ssl_module &#8211;with-http_realip_module &#8211;with-http_addition_module &#8211;with-http_sub_module &#8211;with-http_gzip_static_module &#8211;with-http_stub_status_module &#8211;without-mail_pop3_module &#8211;without-mail_imap_module &#8211;without-mail_smtp_module &#8211;with-md5=/usr/lib</p>
<p>make</p>
<p>make install</p>
<p>Thats it we now have to configure nginx and start the daemon to start serving web</p>
]]></content:encoded>
			<wfw:commentRss>http://gnusys.net/howto-install-nginx-from-source/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Howto install php-fpm: PHP FastCGI Process Manager</title>
		<link>http://gnusys.net/howto-install-php-fpm-php-fastcgi-process-manager/</link>
		<comments>http://gnusys.net/howto-install-php-fpm-php-fastcgi-process-manager/#comments</comments>
		<pubDate>Mon, 11 Aug 2008 13:19:55 +0000</pubDate>
		<dc:creator>Anoop Alias</dc:creator>
		
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://gnusys.net/?p=42</guid>
		<description><![CDATA[A PHP FastCGI Process manager can be a used to spawn php fastcgi server instances when you have configured your web server to pass php scripts to a FastCGI server .This can be used with web servers like Nginx and lighthttpd .
Download the patch file for your php version from http://php-fpm.anight.org/
Download your php version of [...]]]></description>
			<content:encoded><![CDATA[<p>A PHP FastCGI Process manager can be a used to spawn php fastcgi server instances when you have configured your web server to pass php scripts to a FastCGI server .This can be used with web servers like Nginx and lighthttpd .</p>
<p>Download the patch file for your php version from http://php-fpm.anight.org/</p>
<p>Download your php version of choice from http://php.net</p>
<p>Heres what i did..remember that both these project are actively updated.So by the time you read this they have better versions available <img src='http://gnusys.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>cd /usr/local/src</p>
<p>wget http://php-fpm.anight.org/downloads/head/php-5.2.6-fpm-0.5.8.diff.gz</p>
<p>wget  http://in.php.net/get/php-5.2.6.tar.bz2/from/us2.php.net/mirror</p>
<p>gzip -cd php-5.2.6-fpm-0.5.8.diff.gz | patch -d php-5.2.6 -p1</p>
<p>cd php-5.2.6</p>
<p>mkdir /usr/local/php</p>
<p>./configure &#8211;prefix=/usr/local/php &#8211;enable-fastcgi &#8211;enable-fpm &#8211;with-mcrypt &#8211;with-zlib &#8211;enable-mbstring &#8211;with-openssl &#8211;with-mysql &#8211;with-mysqli &#8211;with-gd &#8211;with-jpeg-dir &#8211;enable-gd-native-ttf &#8211;without-sqlite &#8211;disable-pdo &#8211;disable-reflection &#8211;with-curl &#8211;with-curlwrappers &#8211;enable-inline-optimization &#8211;disable-debug &#8211;disable-ipv6</p>
<p>make</p>
<p>make install</p>
<p>Please note that your ./configure script may produce error of missing libraries or header files.You must install these using your OS&#8217;s package manager. I use apt-cache search &#8220;the missing libs&#8221; to get this done easily</p>
]]></content:encoded>
			<wfw:commentRss>http://gnusys.net/howto-install-php-fpm-php-fastcgi-process-manager/feed/</wfw:commentRss>
		</item>
		<item>
		<title>SSH Service failed and you can&#8217;t start it using Cpanel..</title>
		<link>http://gnusys.net/ssh-service-failed-and-you-cant-start-it-using-cpanel/</link>
		<comments>http://gnusys.net/ssh-service-failed-and-you-cant-start-it-using-cpanel/#comments</comments>
		<pubDate>Wed, 06 Aug 2008 12:53:12 +0000</pubDate>
		<dc:creator>manu suresh</dc:creator>
		
		<category><![CDATA[cpanel]]></category>

		<guid isPermaLink="false">http://gnusys.net/?p=40</guid>
		<description><![CDATA[Consider the scenario :- SSH service in your server ( CPanel ) has falied and its not allowing you to login from backend. But you can login to WHM with any issues. Trying to restart SSH using WHM &#62; Restart Services also is giving a &#8220;Failed&#8221; result .
or
You have changed the SSH port for server [...]]]></description>
			<content:encoded><![CDATA[<p>Consider the scenario :- SSH service in your server ( CPanel ) has falied and its not allowing you to login from backend. But you can login to WHM with any issues. Trying to restart SSH using WHM &gt; Restart Services also is giving a &#8220;Failed&#8221; result .</p>
<p>or</p>
<p>You have changed the SSH port for server hardening , but forgot to add the new port to the firewall rules. And after you logout from the current shell you cant login using both ports: -</p>
<p>Please paste the following to your browser</p>
<p>http://your_server_ip:2086/scripts2/doautofixer?autofix=safesshrestart</p>
<p>This will reset the current SSH configuration to default configuration and safely restart SSH. As you all know this only works on a Cpanel Server!</p>
]]></content:encoded>
			<wfw:commentRss>http://gnusys.net/ssh-service-failed-and-you-cant-start-it-using-cpanel/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Find machine architecture of a linux system</title>
		<link>http://gnusys.net/find-machine-architecture-of-a-linux-system/</link>
		<comments>http://gnusys.net/find-machine-architecture-of-a-linux-system/#comments</comments>
		<pubDate>Fri, 01 Aug 2008 16:40:16 +0000</pubDate>
		<dc:creator>Anoop Alias</dc:creator>
		
		<category><![CDATA[hardware]]></category>

		<category><![CDATA[system]]></category>

		<guid isPermaLink="false">http://gnusys.net/?p=39</guid>
		<description><![CDATA[This information will be useful in finding out the particular rpm that you have to download when the rpms made for all architectures are available from public repos like rpmind.net , rpm.pbone.net etc
Run the following command
=====
uname -m
or
/bin/arch
====
]]></description>
			<content:encoded><![CDATA[<p>This information will be useful in finding out the particular rpm that you have to download when the rpms made for all architectures are available from public repos like rpmind.net , rpm.pbone.net etc</p>
<p>Run the following command</p>
<p>=====</p>
<p>uname -m</p>
<p>or</p>
<p>/bin/arch</p>
<p>====</p>
]]></content:encoded>
			<wfw:commentRss>http://gnusys.net/find-machine-architecture-of-a-linux-system/feed/</wfw:commentRss>
		</item>
		<item>
		<title>apache startup fail</title>
		<link>http://gnusys.net/apache-startup-fail/</link>
		<comments>http://gnusys.net/apache-startup-fail/#comments</comments>
		<pubDate>Mon, 21 Jul 2008 18:57:28 +0000</pubDate>
		<dc:creator>Anoop Alias</dc:creator>
		
		<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://gnusys.net/?p=38</guid>
		<description><![CDATA[You may sometimes encounter the following problem while starting apache server
====
[root@epsilon root]# /etc/init.d/httpd start
Starting httpd: (98)Address already in use: make_sock: could not bind to address 0.0.0.0:443
no listening sockets available, shutting down
Unable to open logs
[FAILED]
====
To fix this run the following commands
fuser -k -n tcp 443
]]></description>
			<content:encoded><![CDATA[<p>You may sometimes encounter the following problem while starting apache server</p>
<p>====</p>
<p>[root@epsilon root]# /etc/init.d/httpd start<br />
Starting httpd: (98)Address already in use: make_sock: could not bind to address 0.0.0.0:443<br />
no listening sockets available, shutting down<br />
Unable to open logs<br />
[FAILED]<br />
====</p>
<p>To fix this run the following commands</p>
<p>fuser -k -n tcp 443</p>
]]></content:encoded>
			<wfw:commentRss>http://gnusys.net/apache-startup-fail/feed/</wfw:commentRss>
		</item>
		<item>
		<title>gnusys is now powered by nginx</title>
		<link>http://gnusys.net/gnusys-is-now-powered-by-nginx/</link>
		<comments>http://gnusys.net/gnusys-is-now-powered-by-nginx/#comments</comments>
		<pubDate>Sun, 20 Jul 2008 15:14:15 +0000</pubDate>
		<dc:creator>Anoop Alias</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://gnusys.net/?p=37</guid>
		<description><![CDATA[gnusys.net has changed its webserver to the Russian legend nginx (pronounced engineX )
I have also added APC for caching the php bytecode ( APC is used by Yahoo Inc ,Wikipedia.org etc among others). I will post the configuration shortly over here&#8230;  What i liked more about nginx is its simple and clean configuration which i [...]]]></description>
			<content:encoded><![CDATA[<p>gnusys.net has changed its webserver to the Russian legend nginx (pronounced engineX )</p>
<p>I have also added APC for caching the php bytecode ( APC is used by Yahoo Inc ,Wikipedia.org etc among others). I will post the configuration shortly over here&#8230;  What i liked more about nginx is its simple and clean configuration which i found what lighthttpd lacks (at least from my point of view!) . I had every subproject including the wiki ,proxy, domain registration stuff running fine now except the nagios cgi <img src='http://gnusys.net/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>the reason being that nginx does not support cgi inherently. but there are ways to accomplish this by fastcgi;maybe i will accomplish this at a later time</p>
<p>As of now i am happy with my brand new web server <img src='http://gnusys.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://gnusys.net/gnusys-is-now-powered-by-nginx/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Apache mod_proxy</title>
		<link>http://gnusys.net/apache-mod_proxy/</link>
		<comments>http://gnusys.net/apache-mod_proxy/#comments</comments>
		<pubDate>Sat, 19 Jul 2008 22:05:46 +0000</pubDate>
		<dc:creator>manu suresh</dc:creator>
		
		<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://gnusys.net/?p=36</guid>
		<description><![CDATA[Imagine your  domain has ROR ( Ruby On Rails ) installed and it connects on port 1200
eg :- http://gnusys.net:1200 and you want to change the way it appears on the address bar as simply http://gnusys.net. Normally Apache won&#8217;t allow this as it is configured to work on port 80 as you all know. But [...]]]></description>
			<content:encoded><![CDATA[<p>Imagine your  domain has ROR ( Ruby On Rails ) installed and it connects on port 1200</p>
<p>eg :- http://gnusys.net:1200 and you want to change the way it appears on the address bar as simply http://gnusys.net. Normally Apache won&#8217;t allow this as it is configured to work on port 80 as you all know. But there is a workaround for this issue ie by compiling Apache with mod_proxy . This module implements a proxy/gateway for Apache. I will now explain methods to compile this module in to Apache.</p>
<p>For a raw linux server ( with out any control panels ) you will get the mod_proxy module from the Apache source itself and if it is for any control panel specific server like Cpanel , Plesk etc  just locate mod_proxy.c file and execute the follwoing command :-</p>
<blockquote><p>/usr/local/apache/bin/apxs -cia /path/to/mod_proxy.c/file</p></blockquote>
<p>and the compilation will be over in may be as fast as ten seconds. You can verify the compiled in module by running the command /usr/local/apache/bin/httpd -l</p>
<blockquote><p>mod_proxy.c<br />
proxy_connect.c<br />
proxy_ftp.c<br />
proxy_http.c</p></blockquote>
<p>and you can also see the LoadModule option for mod_proxy inside httpd.conf .</p>
]]></content:encoded>
			<wfw:commentRss>http://gnusys.net/apache-mod_proxy/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Semaphore Arrays</title>
		<link>http://gnusys.net/semaphore-arrays/</link>
		<comments>http://gnusys.net/semaphore-arrays/#comments</comments>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<dc:creator>manu suresh</dc:creator>
		
		<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://gnusys.net/?p=35</guid>
		<description><![CDATA[Semaphore, it is a lot like a locking mechanism. In any server there is an order of precedence in which tasks must be accomplished. The semaphore is used to maintain that precedence order; more to the point, the precedence order is maintained by the semaphores. A succeeding task may not start until it has received [...]]]></description>
			<content:encoded><![CDATA[<p>Semaphore, it is a lot like a locking mechanism. In any server there is an order of precedence in which tasks must be accomplished. The semaphore is used to maintain that precedence order; more to the point, the precedence order is maintained by the semaphores. A succeeding task may not start until it has received the semaphores from all of it&#8217;s predecessors. Likewise  child processes of services gets killed or removed before it passes information to its succeeding processes. So it leads them to a hung state because of this incomplete transaction. This will result to failure of these services until we remove the Sem-ids manually from their arrays. Given below is a  small script to remove these arrays:-</p>
<blockquote><p>ipcs -s | grep nobody | perl -e &#8216;while (&lt;STDIN&gt;) {<br />
@a=split(/\s+/); print `ipcrm sem $a[1]`}&#8217;</p></blockquote>
<p>There will be situations when Apache will fail because of the above reason , so you will need to just execute the above piece of code and restart Apache.</p>
<blockquote></blockquote>
<blockquote></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://gnusys.net/semaphore-arrays/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Plesk Control Panel icons missing!</title>
		<link>http://gnusys.net/control-panel-icons-missing/</link>
		<comments>http://gnusys.net/control-panel-icons-missing/#comments</comments>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<dc:creator>manu suresh</dc:creator>
		
		<category><![CDATA[hosting]]></category>

		<category><![CDATA[plesk]]></category>

		<guid isPermaLink="false">http://gnusys.net/?p=34</guid>
		<description><![CDATA[Scenario:- Add Application icon missing or grayed out
&#8220;Add New Application&#8221; icon can be missing if &#8220;Hide all greyed out buttons by default&#8221; is enabled on the Server -&#62; Interface management page in Plesk CP.
&#8220;Add New Application&#8221; can be greyed out if some application is already installed in the domains&#8217; DocumentRoot folder (httpdocs or httpsdocs). It [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>Scenario:- Add Application icon missing or grayed out</p></blockquote>
<p>&#8220;Add New Application&#8221; icon can be missing if &#8220;Hide all greyed out buttons by default&#8221; is enabled on the Server -&gt; Interface management page in Plesk CP.</p>
<p>&#8220;Add New Application&#8221; can be greyed out if some application is already installed in the domains&#8217; DocumentRoot folder (httpdocs or httpsdocs). It is impossible to add another application in this case because of possible applications conflict.</p>
]]></content:encoded>
			<wfw:commentRss>http://gnusys.net/control-panel-icons-missing/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
