<?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>WING LOON &#187; Linux</title>
	<atom:link href="http://wingloon.com/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://wingloon.com</link>
	<description>decoding my knowledge through blogging</description>
	<lastBuildDate>Fri, 03 Sep 2010 10:51:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Install and Configure NTLMAPS to Access ISA Server</title>
		<link>http://wingloon.com/2010/08/16/install-and-configure-ntlmaps-to-access-isa-server/</link>
		<comments>http://wingloon.com/2010/08/16/install-and-configure-ntlmaps-to-access-isa-server/#comments</comments>
		<pubDate>Mon, 16 Aug 2010 05:32:24 +0000</pubDate>
		<dc:creator>wingloon</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://wingloon.com/?p=1131</guid>
		<description><![CDATA[This blog post describes how to install and configure NTLM Authorization Proxy Server (NTLMAPS) 0.9.9.0.1 in CentOS 5.5 connected to a Microsoft ISA server which enable your web browsing capability. Decide to write this simple blog post because I am experiencing road block while browsing website in a Linux box. Pre-requisite Python language interpreter version [...]]]></description>
			<content:encoded><![CDATA[<p>This blog post describes how to install and configure NTLM Authorization Proxy Server (NTLMAPS) 0.9.9.0.1 in CentOS 5.5 connected to a Microsoft ISA server which enable your web browsing capability. Decide to write this simple blog post because I am experiencing road block while browsing website in a Linux box. </p>
<p><span id="more-1131"></span></p>
<p><strong>Pre-requisite</strong><br />
Python language interpreter version 1.5.2 or higher.</p>
<p><strong>Getting NTLMAPS</strong><br />
Download the current stable version ntlmaps-0.9.9.0.1.tar.gz source file from <a href="http://ntlmaps.sourceforge.net" target="_blank">ntlmaps.sourceforge.net</a></p>
<p><strong>Install NTLMAPS</strong><br />
Run the command below to extract downloaded file to a target directory: -<br />
<code>tar xvfz ntlmaps-0.9.9.0.1.tar.gz -C /usr/local/bin</code></p>
<p>Run the command below to create a symbolic link: &#8211;<br />
<code>ln -s /usr/local/bin/ntlmaps-0.9.9.0.1 /usr/local/bin/ntlmaps</code></p>
<p>Run the command below to backup the NTLMAPS configuration file: -<br />
<code>cp -a /usr/local/bin/ntlmaps/server.cfg /usr/local/bin/ntlmaps/server.cfg-default</code></p>
<p>Run the command below to edit the NTLMAPS configuration file: -<br />
<code>vi /usr/local/bin/ntlmaps/server.cfg</code></p>
<p><strong>Configure NTLMAPS</strong><br />
By default NTLMAPS listen on port 5865, you can change it to any port you preferred. I leave it as default. Remember to save the configuration file after modifying it as below (an example only): -<br />
<code>LISTEN_PORT:5865<br />
PARENT_PROXY:your.isa.server.name<br />
PARENT_PROXY_PORT:your.isa.server.port<br />
ALLOW_EXTERNAL_CLIENTS:1<br />
FRIENDLY_IPS:your.client.ip1 your.client.ip2<br />
NT_HOSTNAME:your.ntlmaps.server.name<br />
NT_DOMAIN:your.domain<br />
USER:your.nt.username<br />
PASSWORD:your.nt.password<br />
LM_PART:1<br />
NT_PART:1<br />
NTLM_FLAGS: 07820000</code></p>
<p><strong>Start NTLMAPS</strong><br />
Run the command below to start NTLMAPS: -<br />
<code>/usr/local/bin/ntlmaps/main.py -c /usr/local/bin/ntlmaps/server.cfg &#038;</code></p>
<p><strong>System Wide Configuration</strong><br />
You can setup the proxy environment in /etc/profile as global variable as below (tested with curl,elinks,lynx and wget): -<br />
<code>export http_proxy=http://127.0.0.1:5865</code></p>
<p><strong>GUI Web Browser Configuration</strong><br />
You can use the following information to configure in your GUI web browser: -<br />
<code>Proxy IP address: 127.0.0.1<br />
Proxy IP address: 5865</code></p>
]]></content:encoded>
			<wfw:commentRss>http://wingloon.com/2010/08/16/install-and-configure-ntlmaps-to-access-isa-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrading Citrix XenServer 5.5.0 to 5.6.0</title>
		<link>http://wingloon.com/2010/06/29/upgrading-citrix-xenserver-5-5-0-to-5-6-0/</link>
		<comments>http://wingloon.com/2010/06/29/upgrading-citrix-xenserver-5-5-0-to-5-6-0/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 08:36:53 +0000</pubDate>
		<dc:creator>wingloon</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://wingloon.com/?p=1118</guid>
		<description><![CDATA[This post will cover an upgrading process from Citrix XenServer 5.5.0 to 5.6.0 only. Let’s get started. Insert the Citrix XenServer 5.6.0 CD into the CD-ROM drive. Reboot your server and you will see the &#8220;Welcome to XenServer&#8221; screen as below. The installation process starts automatically. Next, the installer will perform hardware detection and initialization. [...]]]></description>
			<content:encoded><![CDATA[<p>This post will cover an upgrading process from Citrix XenServer 5.5.0 to 5.6.0 only. Let’s get started. Insert the Citrix XenServer 5.6.0 CD into the CD-ROM drive. Reboot your server and you will see the &#8220;<strong>Welcome to XenServer</strong>&#8221; screen as below.</p>
<p><img src="http://i211.photobucket.com/albums/bb125/wlsiew/linux/xen560b31188p/xs560b31188p01a.png" alt="" /></p>
<p><span id="more-1118"></span></p>
<p>The installation process starts automatically. Next, the installer will perform hardware detection and initialization. Then, you will see the <strong>Select Keymap</strong>&#8221; screen as below. Select your preferred keymap and choose <strong>Ok</strong> to proceed.</p>
<p><img src="http://i211.photobucket.com/albums/bb125/wlsiew/linux/xen560b31188p/xs560b31188p02a.png" alt="" /></p>
<p>You will see the &#8220;<strong>Welcome to XenServer</strong>&#8221; screen as below. Choose <strong>Ok</strong> to proceed.</p>
<p><img src="http://i211.photobucket.com/albums/bb125/wlsiew/linux/xen560b31188p/xs560b31188p03a.png" alt="" /></p>
<p>Next, the &#8220;<strong>End User License Agreement</strong>&#8221; (EULA) screen is displayed below. You can read the agreement by using the up and down arrow keys to scroll through. Choose <strong>Accept EULA</strong> to proceed.</p>
<p><img src="http://i211.photobucket.com/albums/bb125/wlsiew/linux/xen560b31188p/xs560b31188p04a.png" alt="" /></p>
<p>You will see the &#8220;<strong>Action to Perform</strong>&#8221; screen as displayed below. The installer detected an existing version installed. Select <strong>Upgrade XenServer v5.5.0-25727p</strong> and choose <strong>Ok</strong> button to proceed.</p>
<p><img src="http://i211.photobucket.com/albums/bb125/wlsiew/linux/xen560b31188p/xs560b31188p05a.png" alt="" /></p>
<p>Then, the &#8220;<strong>Previous Installation Detected</strong>&#8221; screen is displayed. Choose <strong>Continue</strong> to proceed with the installation.</p>
<p><img src="http://i211.photobucket.com/albums/bb125/wlsiew/linux/xen560b31188p/xs560b31188p06a.png" alt="" /></p>
<p>The next screen &#8220;<strong>Select Installation Source</strong>&#8221; below asks for the source of the installation packages. Since we are using a physical CD, choose <strong>Local media</strong> and choose <strong>Ok</strong> to proceed.</p>
<p><img src="http://i211.photobucket.com/albums/bb125/wlsiew/linux/xen560b31188p/xs560b31188p07a.png" alt="" /></p>
<p>The next screen &#8220;<strong>Supplemental Packs</strong>&#8221; below asks for the Supplemental Packs from a second CD. This can be installed later. We are skipping this. Choose <strong>No</strong> to proceed.</p>
<p><img src="http://i211.photobucket.com/albums/bb125/wlsiew/linux/xen560b31188p/xs560b31188p08a.png" alt="" /></p>
<p>The &#8220;<strong>Verify Installation Source</strong>&#8221; screen is displayed below. We will bypass this. Choose <strong>Skip verification</strong> and choose <strong>Ok</strong> to proceed.</p>
<p><img src="http://i211.photobucket.com/albums/bb125/wlsiew/linux/xen560b31188p/xs560b31188p09a.png" alt="" /></p>
<p>Next, you will see &#8220;<strong>Confirm Installation</strong>&#8221; screen as below. Choose <strong>Install XenServer</strong> to proceed with the installation.</p>
<p><img src="http://i211.photobucket.com/albums/bb125/wlsiew/linux/xen560b31188p/xs560b31188p10a.png" alt="" /></p>
<p>The &#8220;<strong>Installing XenServer</strong>&#8221; screen is displayed as below. The progress bar below shows the process of backing up of an existing installation.</p>
<p><img src="http://i211.photobucket.com/albums/bb125/wlsiew/linux/xen560b31188p/xs560b31188p11a.png" alt="" /></p>
<p>Next, the progress bar below shows the process of Base Pack installation.</p>
<p><img src="http://i211.photobucket.com/albums/bb125/wlsiew/linux/xen560b31188p/xs560b31188p12a.png" alt="" /></p>
<p>Finally, you see the progress bar reaching the completion of XenServer installation in the &#8220;<strong>Installing XenServer</strong>&#8221; screen as below.</p>
<p><img src="http://i211.photobucket.com/albums/bb125/wlsiew/linux/xen560b31188p/xs560b31188p13a.png" alt="" /></p>
<p>You will see the &#8220;<strong>Installation Complete</strong>&#8221; screen as below showing that XenServer installation has completed. Choose <strong>Ok</strong> to proceed with the server reboot.</p>
<p><img src="http://i211.photobucket.com/albums/bb125/wlsiew/linux/xen560b31188p/xs560b31188p14a.png" alt="" /></p>
<p>The server is rebooted and goes to the Citrix XenServer boot up screen as below and will automatically boot up the Citrix XenServer.</p>
<p><img src="http://i211.photobucket.com/albums/bb125/wlsiew/linux/xen560b31188p/xs560b31188p15a.png" alt="" /></p>
<p>Here you go, the Citrix XenServer 5.6.0 is up and running!</p>
]]></content:encoded>
			<wfw:commentRss>http://wingloon.com/2010/06/29/upgrading-citrix-xenserver-5-5-0-to-5-6-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setup vsftpd 2.0.5 with TLS in CentOS 5.5</title>
		<link>http://wingloon.com/2010/05/26/setup-vsftpd-2-0-5-with-tls-in-centos-5-5/</link>
		<comments>http://wingloon.com/2010/05/26/setup-vsftpd-2-0-5-with-tls-in-centos-5-5/#comments</comments>
		<pubDate>Wed, 26 May 2010 04:43:30 +0000</pubDate>
		<dc:creator>wingloon</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://wingloon.com/?p=1099</guid>
		<description><![CDATA[Do you know what is a File Transfer Protocol (FTP)? FTP (RFC959) is a network protocol used to transfer data files from one computer to another through a network. The risk of using FTP is notable by using plaintext username and password. This is very insecure. Your login and password can be easily sniffed. This [...]]]></description>
			<content:encoded><![CDATA[<p>Do you know what is a File Transfer Protocol (FTP)? FTP (<a href="http://www.ietf.org/rfc/rfc959.txt" target="_blank">RFC959</a>) is a network protocol used to transfer data files from one computer to another through a network. The risk of using FTP is notable by using plaintext username and password. This is very insecure. Your login and password can be easily sniffed.</p>
<p>This post describes how to install and setup a secured FTP server using vsftpd 2.0.5 with TLS in CentOS 5.5 the easy way.</p>
<p><span id="more-1099"></span></p>
<p><strong>Pre-requisite Check</strong><br />
Run the command below to query for vsftpd rpm: -</p>
<p>rpm -qa vsftpd</p>
<p>If vsftpd is not installed, you can use yum to install it using the command below: -</p>
<p>yum install vsftpd</p>
<p><strong>Initial Configuration</strong><br />
The configuration directory of vsftpd is located in /etc/vsftpd path. It is advisable to backup the good known configuration files for easier quick restoration. Run the command below: -</p>
<p>cp /etc/vsftpd/vsftpd.conf /etc/vsftpd/vsftpd.conf.original</p>
<p><strong>Control User Access</strong><br />
Change the following parameter below in your /etc/vsftpd/vsftpd.conf file to disable anonymous users access: -</p>
<p>anonymous_enable=NO</p>
<p>Change the following parameter below in your /etc/vsftpd/vsftpd.conf file to lock users in their home directory: -</p>
<p>chroot_list_enable=YES<br />
chroot_list_file=/etc/vsftpd/chroot_list<br />
chroot_local_user=YES</p>
<p>Run the following command below to create /etc/vsftpd/chroot_list file: -</p>
<p>touch /etc/vsftpd/chroot_list<br />
chmod 600 /etc/vsftpd/chroot_list</p>
<p><strong>Enable TLS Encryption</strong><br />
Run the following command below to check an installation of vsftpd for SSL support: -</p>
<p>ldd /usr/sbin/vsftpd | grep ssl</p>
<p>You will get the following result below if your vsftpd is SSL supported: -</p>
<p>libssl.so.6 => /lib/libssl.so.6 (0x001e3000)</p>
<p>To use TLS you will need to generate a key by using the openssl command below: -</p>
<p>openssl req -x509 -nodes -days 3650 -newkey rsa:1024 -keyout /etc/vsftpd/vsftpd.pem -out /etc/vsftpd/vsftpd.pem</p>
<p>The above command prompts you for series of questions for creating your certificate with a life of 10 years (-days 3650): -</p>
<p>Country Name (2 letter code) [GB]:MY<br />
State or Province Name (full name) [Berkshire]:WP<br />
Locality Name (eg, city) [Newbury]:KL<br />
Organization Name (eg, company) [My Company Ltd]:Company<br />
Organizational Unit Name (eg, section) []:IT<br />
Common Name (eg, your name or your server&#8217;s hostname) []:localhost<br />
Email Address []:ftpmaster@localhost</p>
<p>Run the following command below to change the permission of the /etc/vsftpd/vsftpd.pem file: -</p>
<p>chmod 600 /etc/vsftpd/vsftpd.pem</p>
<p>Add this to your /etc/vsftpd/vsftpd.conf file: -</p>
<p>ssl_enable=YES<br />
allow_anon_ssl=NO<br />
force_local_data_ssl=NO<br />
force_local_logins_ssl=YES<br />
ssl_tlsv1=YES<br />
ssl_sslv2=NO<br />
ssl_sslv3=NO<br />
rsa_cert_file=/etc/vsftpd/vsftpd.pem</p>
<p>You need to restart vsftpd to take effect using the command below: -</p>
<p>service vsftpd restart</p>
<p>You may use <a href="http://filezilla-project.org" target="_blank">FileZilla</a> as the FTP client that supports TLS encryption connection. Be sure to select <strong>FTPES – FTP over explicit TLS/SSL</strong> under the <strong>Servertype</strong> in the FileZilla Site Manager.</p>
<p><em>If you found these helpful, please contribute to help:</em> <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but04.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHRwYJKoZIhvcNAQcEoIIHODCCBzQCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV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xFgQUiobJbULWwiXdt2VPzw9U6ntVPhwwDQYJKoZIhvcNAQEBBQAEgYBDMnBJG8cAcxEDQ/1OYl7NxWRULl0qTlTNs9lDp24ueF0o0Mmi6d54Ua+Lahe+vs0ceqFUACmTiN3IZGlSHEFBjbkiplzy+6QZVKh5XO6bGgyU/Idzbrzuut3Cyu+jKA1XoHegoW6r/bxicgxretew3QB5NNJEgThc0sfCbhAv2Q==-----END PKCS7-----
">
</form></p>
]]></content:encoded>
			<wfw:commentRss>http://wingloon.com/2010/05/26/setup-vsftpd-2-0-5-with-tls-in-centos-5-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>15 Useful RPM Commands for Linux System Administrator</title>
		<link>http://wingloon.com/2010/01/26/15-useful-rpm-commands-for-linux-system-administrator/</link>
		<comments>http://wingloon.com/2010/01/26/15-useful-rpm-commands-for-linux-system-administrator/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 03:14:22 +0000</pubDate>
		<dc:creator>wingloon</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://wingloon.com/2010/01/26/15-useful-rpm-commands-for-linux-system-administrator/</guid>
		<description><![CDATA[Thought of putting this up long time ago. You can have a quick reference on the most commonly Linux RPM commands I used daily here: - Install a RPM rpm -ivh package-name.rpm Update a RPM rpm -Uvh package-name.rpm Remove a RPM rpm -e package-name.rpm List contents of installed RPM rpm -qvl package-name List contents of [...]]]></description>
			<content:encoded><![CDATA[<p>Thought of putting this up long time ago. You can have a quick reference on the most commonly Linux RPM commands I used daily here: -</p>
<p>Install a RPM<br />
<code>rpm -ivh package-name.rpm</code></p>
<p>Update a RPM<br />
<code>rpm -Uvh package-name.rpm</code></p>
<p>Remove a RPM<br />
<code>rpm -e package-name.rpm</code></p>
<p>List contents of installed RPM<br />
<code>rpm -qvl package-name</code></p>
<p>List contents of a RPM<br />
<code>rpm -qlp package-name</code></p>
<p>Print information about an installed RPM<br />
<code>rpm -qi package-name</code></p>
<p>Print information about a RPM<br />
<code>rpm -qpi package-name.rpm</code></p>
<p>List all installed RPM on your system<br />
<code>rpm -qa</code></p>
<p>Search for a installed RPM<br />
<code>rpm -qa | grep package-name</code></p>
<p>Print which package a file belongs to<br />
<code>rpm -qf /path/to/file</code></p>
<p>Extract files from a RPM into current directory<br />
<code>rpm2cpio package-name.rpm | cpio -idv</code></p>
<p>List out configuration file(s) for a RPM<br />
<code>rpm -qc package-name</code></p>
<p>List package dependencies<br />
<code>rpm -qpR package-name.rpm</code></p>
<p>Integrity check for a installed RPM<br />
<code>rpm -V package-name</code></p>
<p>Integrity check for a RPM<br />
<code>rpm -Vp package-name.rpm</code></p>
<p>Please post a comment if you would like to share your opinion on the above commands. Thank you.</p>
]]></content:encoded>
			<wfw:commentRss>http://wingloon.com/2010/01/26/15-useful-rpm-commands-for-linux-system-administrator/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Install nginx 0.7.63 from Source in CentOS 5.4 with PHP5 FastCGI Support</title>
		<link>http://wingloon.com/2009/11/05/install-nginx-0-7-63-from-source-in-centos-5-4-with-php5-fastcgi-support/</link>
		<comments>http://wingloon.com/2009/11/05/install-nginx-0-7-63-from-source-in-centos-5-4-with-php5-fastcgi-support/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 10:50:48 +0000</pubDate>
		<dc:creator>wingloon</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://wingloon.com/?p=1032</guid>
		<description><![CDATA[I am running CentOS 5.4 64-bit VM in XenServer. Please proceed to download the latest stable version nginx 0.7.63. You may read the 0.7 changelog for feature updates and bugfix. You need to download lighttpd 1.4.22 because we are configuring PHP as FastCGI. Let’s start our download as below: - wget -c http://sysoev.ru/nginx/nginx-0.7.63.tar.gz ; wget [...]]]></description>
			<content:encoded><![CDATA[<p>I am running CentOS 5.4 64-bit VM in XenServer. Please proceed to download the <a href="http://sysoev.ru/nginx/nginx-0.7.63.tar.gz">latest stable version nginx 0.7.63</a>. You may read the <a href="http://nginx.net/CHANGES-0.7" target="_blank">0.7 changelog</a> for feature updates and bugfix. You need to download lighttpd 1.4.22 because we are configuring PHP as FastCGI. Let’s start our download as below: -</p>
<p><span id="more-1032"></span></p>
<p><code>wget -c http://sysoev.ru/nginx/nginx-0.7.63.tar.gz ; wget -c http://www.lighttpd.net/download/lighttpd-1.4.22.tar.gz</code></p>
<p>Next, we need to extract the Gzip files to /tmp/sources as below: -</p>
<p><code>mkdir /tmp/sources</code><br />
<code>tar xvfz nginx-0.7.63.tar.gz -C /tmp/sources</code><br />
<code>tar xvfz lighttpd-1.4.22.tar.gz -C /tmp/sources</code></p>
<p>Then, we need to start configuring and compiling nginx as below: -</p>
<p><code>cd /tmp/sources/nginx-0.7.63</code><br />
<code>./configure –-with-http_ssl_module -–with-md5=auto/lib/md5 -–with-sha1=auto/lib/sha1</code><br />
<code>make</code><br />
<code>make install</code></p>
<p>Ok, we need to start configuring and compiling lighttpd as below: -</p>
<p><code>cd /tmp/sources/lighttpd-1.4.22</code><br />
<code>./configure</code><br />
<code>make</code><br />
<code>cp src/spawn-fcgi /usr/local/bin</code></p>
<p>Next, we need to start the spawn-fcgi for spawning FastCGI processes as below: -</p>
<p><code>/usr/local/bin/spawn-fcgi -f /usr/bin/php-cgi -a 127.0.0.1 -p 9000 -P /var/run/fastcgi-php.pid</code></p>
<p>Then, you need to edit the nginx.conf which located in /usr/local/nginx/conf as below: -</p>
<p><code>location ~ \.php$ {</code><br />
<code>root html;</code><br />
<code>fastcgi_pass 127.0.0.1:9000;</code><br />
<code>fastcgi_index index.php;</code><br />
<code>fastcgi_param SCRIPT_FILENAME /usr/local/nginx/html$fastcgi_script_name;</code><br />
<code>include fastcgi_params;</code><br />
<code>}</code></p>
<p>Now, you can test nginx by starting it using the command as below: -</p>
<p><code>/usr/local/nginx/sbin/nginx</code></p>
<p>Simply navigate to your server’s IP address and you will see the nginx welcome message also create a simple php file in /usr/local/nginx/html to include phpinfo() for testing PHP functionality.</p>
<p><em>If you found these helpful, please contribute to help:</em> <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but04.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHRwYJKoZIhvcNAQcEoIIHODCCBzQCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYBJ9GuvXrDm+uUNTevYiTUqngFWgJZflJgsVSzahanqrATcHF40BAXq8UgHz7mU9SkfQrXTRyfLbDof1irlxUe+aQTLlTXn7BLtJRJBkc0phx9xmmYNCKVrpFEhkFaHyM+M90y7AApgMK1GiJg8WmbUHtJTatM+Fgy6fWK5Tg/49DELMAkGBSsOAwIaBQAwgcQGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQIoirLyP428ruAgaAtUd2ShDOR5sHf0yIOKv+KsAqHTWKGklWGg1+vSKMX1QrPBd3ht5U3u3coHqOjFOdZInLFDHYNDZU0WLXwgmxmbto66aAM91lbZEq1VxYJaB6ar5rVBoEP4HoJyA3b6bQOFWkJxP/8MI8GXjiFUqxXTvlKa5BBBVza2YiZovzztBanFK3rhuNGWavjSceQnyp39maKzJUPwwOiYIb7YUcWoIIDhzCCA4MwggLsoAMCAQICAQAwDQYJKoZIhvcNAQEFBQAwgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91b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RYBxV8KxAW93YDWzFGvruKnnLbDAF6VR5w/cCMn5hzGCAZowggGWAgEBMIGUMIGOMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExFjAUBgNVBAcTDU1vdW50YWluIFZpZXcxFDASBgNVBAoTC1BheVBhbCBJbmMuMRMwEQYDVQQLFApsaXZlX2NlcnRzMREwDwYDVQQDFAhsaXZlX2FwaTEcMBoGCSqGSIb3DQEJARYNcmVAcGF5cGFsLmNvbQIBADAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMDcxMTAxMTI0MjUwWjAjBgkqhkiG9w0BCQQxFgQUiobJbULWwiXdt2VPzw9U6ntVPhwwDQYJKoZIhvcNAQEBBQAEgYBDMnBJG8cAcxEDQ/1OYl7NxWRULl0qTlTNs9lDp24ueF0o0Mmi6d54Ua+Lahe+vs0ceqFUACmTiN3IZGlSHEFBjbkiplzy+6QZVKh5XO6bGgyU/Idzbrzuut3Cyu+jKA1XoHegoW6r/bxicgxretew3QB5NNJEgThc0sfCbhAv2Q==-----END PKCS7-----
">
</form></p>
]]></content:encoded>
			<wfw:commentRss>http://wingloon.com/2009/11/05/install-nginx-0-7-63-from-source-in-centos-5-4-with-php5-fastcgi-support/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
