<?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>RedHatVN Network &#187; vps</title>
	<atom:link href="http://redhatvn.net/category/linux/vps/feed" rel="self" type="application/rss+xml" />
	<link>http://redhatvn.net</link>
	<description>Shared Linux problems</description>
	<lastBuildDate>Mon, 31 Oct 2011 07:10:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Fixing that really irritating perl: warning: Setting locale failed</title>
		<link>http://redhatvn.net/fixing-that-really-irritating-perl-warning-setting-locale-failed</link>
		<comments>http://redhatvn.net/fixing-that-really-irritating-perl-warning-setting-locale-failed#comments</comments>
		<pubDate>Fri, 16 Sep 2011 06:43:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MAC OS]]></category>
		<category><![CDATA[shell script]]></category>
		<category><![CDATA[vps]]></category>

		<guid isPermaLink="false">http://redhatvn.net/?p=1618</guid>
		<description><![CDATA[Anytime I’ve been running a perl based script on my leopard box I got this really irritating output with whatever else I was expecting: perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LC_ALL = &#8220;En_US&#8221;, LANG = (unset) are supported and installed on your system. perl: warning: Falling back to [...]]]></description>
			<content:encoded><![CDATA[<div class="google_plus_one"><g:plusone size="medium" count="true" url="http://redhatvn.net/fixing-that-really-irritating-perl-warning-setting-locale-failed"></g:plusone></div><p>Anytime I’ve been running a perl based script on my leopard box I got this really irritating output with whatever else I was expecting:</p>
<blockquote><p>perl: warning: Setting locale failed.<br />
perl: warning: Please check that your locale settings:<br />
LC_ALL = &#8220;En_US&#8221;,<br />
LANG = (unset)<br />
are supported and installed on your system.<br />
perl: warning: Falling back to the standard locale (&#8220;C&#8221;).
</p></blockquote>
<p><span id="more-1618"></span></p>
<p>With a quick Google search I found an answer. Basically the solution / fix is to make sure the following is set in either your ~/.profile or ~/.bashrc or ~/.cshrc</p>
<blockquote><p># This setting is for the new UTF-8 terminal support<br />
export LC_CTYPE=en_US.UTF-8<br />
export LC_ALL=en_US.UTF-8</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://redhatvn.net/fixing-that-really-irritating-perl-warning-setting-locale-failed/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>reconfigure CPAN module preferences</title>
		<link>http://redhatvn.net/reconfigure-cpan-module-preferences</link>
		<comments>http://redhatvn.net/reconfigure-cpan-module-preferences#comments</comments>
		<pubDate>Tue, 20 Sep 2011 03:58:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Directadmin]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[shell script]]></category>
		<category><![CDATA[vps]]></category>

		<guid isPermaLink="false">http://redhatvn.net/?p=1620</guid>
		<description><![CDATA[The first time you use the Perl module CPAN, a script is executed in order to properly configure several options (like the location of tar, gzip and unzip files, the cache size for the build directory, etc). If you want to modify these configuration options at a later time, you can do it in 2 [...]]]></description>
			<content:encoded><![CDATA[<div class="google_plus_one"><g:plusone size="medium" count="true" url="http://redhatvn.net/reconfigure-cpan-module-preferences"></g:plusone></div><p>The first time you use the Perl module CPAN, a script is executed in order to properly configure several options (like the location of tar, gzip and unzip files, the cache size for the build directory, etc).</p>
<p>If you want to modify these configuration options at a later time, you can do it in 2 ways:</p>
<p><strong>- Manually, modifying the configuration files</strong></p>
<p>You can either modify the user-specific file (usually ~/.cpan/CPAN/MyConfig.pm) or the system-wide configuration file (stored somewhere in the perl module directory tree, look for a directory named CPAN that holds a file named Config.pm)<br />
<span id="more-1620"></span><br />
<strong>- Automatically, using the CPAN module</strong></p>
<p>To do this, execute the following:</p>
<p><code>perl -MCPAN -e shell</code></p>
<p>When you&#8217;re in the cpan shell, execute:</p>
<p><code>cpan&gt; o conf init</code></p>
]]></content:encoded>
			<wfw:commentRss>http://redhatvn.net/reconfigure-cpan-module-preferences/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Python2.6, mod_wsgi, and Python-MySQL on a CentOS box</title>
		<link>http://redhatvn.net/installing-python2-6-mod_wsgi-and-python-mysql-on-a-centos-box</link>
		<comments>http://redhatvn.net/installing-python2-6-mod_wsgi-and-python-mysql-on-a-centos-box#comments</comments>
		<pubDate>Mon, 31 Oct 2011 07:10:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Directadmin]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[shell script]]></category>
		<category><![CDATA[vps]]></category>

		<guid isPermaLink="false">http://redhatvn.net/?p=1632</guid>
		<description><![CDATA[UPDATED: January 31st, 2011: Python 2.6 now is in the normal EPEL repositories. There are some changes in the explanations below I’ve always hated Centos, probably because I’ve never been in a situation where I had to deal with the network security (other than the obvious stuff to ward off cross-site-scripting attacks and the such). [...]]]></description>
			<content:encoded><![CDATA[<div class="google_plus_one"><g:plusone size="medium" count="true" url="http://redhatvn.net/installing-python2-6-mod_wsgi-and-python-mysql-on-a-centos-box"></g:plusone></div><p>UPDATED: January 31st, 2011: Python 2.6 now is in the normal EPEL repositories. There are some changes in the explanations below</p>
<p>I’ve always hated Centos, probably because I’ve never been in a situation where I had to deal with the network security (other than the obvious stuff to ward off cross-site-scripting attacks and the such). Of course, that being the case, I did wind up dealing with CentOS at work and I had to get Django, Python 2.6 and the such functional.</p>
<p>Centos throws a few curveballs your way.. YUM is built on Python 2.4, and upgrading to a newer version supposedly breaks the program. Going back to Python 2.4 was not an option, mainly because all my python experience is on Python 2.5 / 2.6, and I don’t want to go back and learn an older non-maintained version of the language for a server. On the other hand, I didn’t want to lobby to just install Ubuntu.</p>
<p>This assumes you already have a normal LAMP setup. Furthermore, I’m assuming you do not have mod_python installed. This threw me for a loop for the longest time, so take this for what its worth.</p>
<p>The VERY FIRST STEP (if you are running a clean install of CentOS) is to get the dev tools installed.<br />
<span id="more-1632"></span><br />
<code><br />
# sudo yum groupinstall 'Development Tools'<br />
</code></p>
<p>After that, install Python 2.6 (or anything else newer in the 2.x series). As of January 31st, these are in the EPEL repositories; if you don’t have the EPEL repositories enabled, do the following:</p>
<p><code><br />
# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm<br />
# yum repolist<br />
</code></p>
<p>Once that’s done, run yum update to get everything setup, and then install Python &amp; the MySQL dependencies (if they aren’t already installed)</p>
<p><code><br />
# yum install python26* mysql-devel mysql-server<br />
</code></p>
<p>This installs pretty much everything Python- &amp; MySQL-related that you need. You will need to run the following to get an extra piece of information:</p>
<p><code><br />
Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)<br />
[GCC 4.4.3] on linux2<br />
Type "help", "copyright", "credits" or "license" for more information.<br />
&gt;&gt;&gt; import sys<br />
&gt;&gt;&gt; sys.prefix<br />
'/usr'<br />
</code></p>
<p>The prefix (/usr) is important for later. Set it aside and finish up.</p>
<p><code><br />
# cd ~<br />
# wget http://sourceforge.net/projects/mysql-python/files/mysql-python/1.2.3/MySQL-python-1.2.3.tar.gz/download<br />
# sudo tar xzvf MySQL-python-1.2.3.tar.gz<br />
# cd MySQL-python-1.2.3*<br />
# python26 setup.py install<br />
</code></p>
<p>(Don’t forget to create a user for use by Django in the database)</p>
<p><code><br />
# cd ~<br />
# wget http://modwsgi.googlecode.com/files/mod_wsgi-3.3.tar.gz<br />
# sudo tar xzvf mod_wsgi-3.3.tar.gz<br />
# cd mod_wsgi-3.3*<br />
# ./configure --with-python=/usr/bin/python2.6<br />
# make<br />
# make install<br />
</code></p>
<p>Now you need to fix up your Apache configuration. I won’t pretend to be an expert with WSGI (although I’ve managed to get it running on 3 different OSes running Apache), but make sure you include the following, somewhere near the Module block in the httpd.conf file.</p>
<p><code><br />
WSGIPythonHome /usr/<br />
</code></p>
<p>As long as you have this setup, and a proper WSGI script, you should be able to get up and running.</p>
<p>The Django installation is quite easy. Go into the Django source directory and type in</p>
<p><code># python2.6 setup.py install</code></p>
<p>That will take care of making sure Python2.6 also has access to django.</p>
<p>If you don’t want to install using the source code, you can also do this through pip. Follow the instructions <a href="http://blog.adlibre.org/technology/how-to-install-django-cms-on-centos-5-4-with-python-2-6.html">here</a> to install pip (while updating the version of pip to 0.8.2) and then type in</p>
<p><code># pip install django</code></p>
<p>That’s pretty much it. I’m sure there is something unclear, but I’ve got to get back to work -_-</p>
]]></content:encoded>
			<wfw:commentRss>http://redhatvn.net/installing-python2-6-mod_wsgi-and-python-mysql-on-a-centos-box/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configure Litespeed Webserver With PHP 5.3.0, Mail Header Patch and Suhosin Patch</title>
		<link>http://redhatvn.net/configure-litespeed-webserver-with-php-5-3-0-mail-header-patch-and-suhosin-patch</link>
		<comments>http://redhatvn.net/configure-litespeed-webserver-with-php-5-3-0-mail-header-patch-and-suhosin-patch#comments</comments>
		<pubDate>Thu, 27 Oct 2011 02:16:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Directadmin]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[shell script]]></category>
		<category><![CDATA[vps]]></category>

		<guid isPermaLink="false">http://redhatvn.net/?p=1626</guid>
		<description><![CDATA[What is LiteSpeed Web Server ? LiteSpeed Web Server is the leading high-performance, high-scalability web server. It is completely Apache interchangeable so LiteSpeed Web Server can quickly replace a major bottleneck in your existing web delivery platform. With its comprehensive range of features and easy-to-use web administration console, LiteSpeed Web Server can help you conquer [...]]]></description>
			<content:encoded><![CDATA[<div class="google_plus_one"><g:plusone size="medium" count="true" url="http://redhatvn.net/configure-litespeed-webserver-with-php-5-3-0-mail-header-patch-and-suhosin-patch"></g:plusone></div><p>What is <strong>LiteSpeed Web Server</strong> ?</p>
<p><strong>LiteSpeed Web Server </strong>is the leading high-performance, high-scalability web server. It is completely Apache interchangeable so LiteSpeed Web Server can quickly replace a major bottleneck in your existing web delivery platform. With its comprehensive range of features and easy-to-use web administration console, LiteSpeed Web Server can help you conquer the challenges of deploying an effective web serving architecture.</p>
<p>In this tutorial we will upgrade current litespeed PHP to support PHP 5.3.0, Mail header patch and suhosin patch<br />
<span id="more-1626"></span><br />
What is <strong>Suhosin</strong> ?</p>
<p><strong>Suhosin</strong> is the big brother to the Hardened-PHP patch which adds an extra level of protection to PHP.</p>
<p>In this tutorial, i&#8217;ve tried to compile all packages from litespeed web server web interface but it&#8217;s failed.<br />
so i prefer to configured it manually.</p>
<p><strong>Download All Sources</strong></p>
<p>Login as root</p>
<p><code>#cd /root<br />
#wget <a title="http://uk.php.net/distributions/php-5.3.0.tar.gz" href="http://uk.php.net/distributions/php-5.3.0.tar.gz">http://uk.php.net/distributions/php-5.3.0.tar.gz</a><br />
#wget <a title="http://download.suhosin.org/suhosin-patch-5.3.0-0.9.8-BETA-1.patch.gz" href="http://download.suhosin.org/suhosin-patch-5.3.0-0.9.8-BETA-1.patch.gz">http://download.suhosin.org/suhosin-patch-5.3.0-0.9.8-BETA-1.patch.gz</a><br />
#wget <a title="http://choon.net/opensource/php/php-5.3.0-mail-header.patch" href="http://choon.net/opensource/php/php-5.3.0-mail-header.patch">http://choon.net/opensource/php/php-5.3.0-mail-header.patch</a><br />
#wget <a title="http://www.litespeedtech.com/packages/lsapi/php-litespeed-4.10.tgz" href="http://www.litespeedtech.com/packages/lsapi/php-litespeed-4.10.tgz">http://www.litespeedtech.com/packages/lsapi/php-litespeed-4.10.tgz</a><br />
#wget <a title="http://ftp.gnu.org/gnu/autoconf/autoconf-2.13.tar.gz" href="http://ftp.gnu.org/gnu/autoconf/autoconf-2.13.tar.gz">http://ftp.gnu.org/gnu/autoconf/autoconf-2.13.tar.gz</a></code></p>
<p><strong>Extract Packages</strong></p>
<p><code>#cd /root<br />
#tar -zxvf php-5.3.0.tar.gz<br />
#gunzip suhosin-patch-5.3.0-0.9.8-BETA-1.patch.gz<br />
#tar -zxvf autoconf-2.13.tar.gz<br />
</code><br />
<strong>Install autoconf</strong></p>
<p><code>#cd /root<br />
#cd autoconf-2.13<br />
#./configure &amp;&amp; make &amp;&amp; make install</code></p>
<p><strong>Compile PHP 5.3.0 with PHP mail header , Suhosin and PHP-Litespeed<br />
</strong></p>
<p><code>#cd /root<br />
#cd php-5.3.0</code></p>
<p><strong>Patching PHP mail header</strong> <strong>&amp; Suhosin</strong></p>
<p><code>#patch -p1 &lt; /root/php-5.3.0-mail-header.patch<br />
#patch -p1 &lt; /root/suhosin-patch-5.3.0-0.9.8-BETA-1.patch<br />
</code><br />
<strong>Exctract and Compile PHP-litespeed </strong></p>
<p><code>#cd /root<br />
#cp php-litespeed-4.10.tgz /root/php-5.3.0/sapi<br />
#tar -zxvf php-litespeed-4.10.tgz<br />
#cd /root/php-5.3.0<br />
#touch ac*<br />
#./buildconf --force</code></p>
<p><strong>Compile All </strong></p>
<p><code>#cd /root/php-5.3.0<br />
# ./configure --with-litespeed --prefix=/usr/local/lsws/lsphp5 --with-mysql --with-zlib --with-gd --enable-shmop --enable-track-vars --enable-sockets --enable-sysvsem --enable-sysvshm --enable-magic-quotes --enable-mbstring --with-iconv --with-mcrypt --with-curl --with-ftp --with-gettext --with-ttf --enable-suhosin --enable-gd-native-ttf --with-jpeg-dir=/usr/local/lib --with-freetype-dir=/usr/local/lib --with-kerberos --with-openssl --with-mhash --with-pcre-regex=/usr/local --with-pear --with-png-dir=/usr/local/lib --enable-zip -enable-bcmath --enable-calendar --with-mysqli=/usr/bin/mysql_config<br />
#make</code></p>
<p>If make is running successfully then stop here.</p>
<p><strong>Copy PHP Binary to litespeed fcgi-bin Directory</strong></p>
<p><code>#cd /usr/local/lsws/fcgi-bin<br />
#unlink lsphp5<br />
#cp /root/php-5.3.0/sapi/litespeed/php lsphp-5.3.0<br />
#ln -s ./lsphp-5.3.0 lsphp5</code></p>
<p><strong>Verify PHP Version </strong></p>
<p><code>#./lsphp5 -v<br />
PHP 5.3.0 with Suhosin-Patch (litespeed) (built: Sep 13 2009 22:29:50)<br />
Copyright (c) 1997-2004 The PHP Group<br />
Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies</code></p>
<p><strong>If you see any error like below :</strong></p>
<p><code>#./lsphp5 -v</code><br />
PHP Warning:  PHP Startup: Unable to load dynamic library &#8216;/usr/local/lsws/lsphp5/lib/php/extensions/no-debug-non-zts-20090626/suhosin.so&#8217; &#8211; Cannot open &amp;quot;/usr/local/lsws/lsphp5/lib/php/extensions/no-debug-non-zts-20090626/suhosin.so&amp;quot; in Unknown on line 0PHP Warning:  PHP Startup: Unable to load dynamic library &#8216;/usr/local/lsws/lsphp5/lib/php/extensions/no-debug-non-zts-20090626/xcache.so&#8217; &#8211; Cannot open &amp;quot;/usr/local/lsws/lsphp5/lib/php/extensions/no-debug-non-zts-20090626/xcache.so&amp;quot; in Unknown on line 0PHP 5.3.0 with Suhosin-Patch (litespeed) (built: Sep 13 2009 22:29:50)<br />
Copyright (c) 1997-2004 The PHP Group<br />
Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies</p>
<p><strong>IMPORTANT :</strong><br />
This is mean you need to recompile XCACHE and SUHOSIN Packages.</p>
<p><strong>Restart Litespeed Webserver</strong></p>
<p><code>#/usr/local/lsws/bin/lswsctrl stop<br />
#/usr/local/lsws/bin/lswsctrl start</code></p>
<p><strong>Here is the PHPINFO result :</strong></p>
<p><strong><img src="http://www.wowtutorial.org/system/files/u2/php5.3.jpg" alt="" width="95%" /></strong></p>
<p>&nbsp;</p>
<p><strong><img src="http://www.wowtutorial.org/system/files/u2/php5.3%20suhosin.jpg" alt="" width="95%" /></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://redhatvn.net/configure-litespeed-webserver-with-php-5-3-0-mail-header-patch-and-suhosin-patch/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change Owner of Symlink in Linux</title>
		<link>http://redhatvn.net/change-owner-of-symlink-in-linux</link>
		<comments>http://redhatvn.net/change-owner-of-symlink-in-linux#comments</comments>
		<pubDate>Mon, 12 Sep 2011 08:47:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[vps]]></category>

		<guid isPermaLink="false">http://redhatvn.net/?p=1598</guid>
		<description><![CDATA[When you use chown to change ownership of a file or directory, it will work but with Symlink (Created by using lncommand), you can&#8217;t do that. When you do it, it will fail and you may not know that since there is no error message or anything to let you know. So, to change ownership [...]]]></description>
			<content:encoded><![CDATA[<div class="google_plus_one"><g:plusone size="medium" count="true" url="http://redhatvn.net/change-owner-of-symlink-in-linux"></g:plusone></div><p>When you use chown to change ownership of a file or directory, it will work but with Symlink (Created by using lncommand), you can&#8217;t do that. When you do it, it will fail and you may not know that since there is no error message or anything to let you know. So, to change ownership for Symlink, you need to use option -h. Below is an example :<br />
<span id="more-1598"></span><br />
<code>chown -h user:group symlink</code></p>
<p>Be careful when you use it with directory. Not to have trailing slash (/) at the end or it won&#8217;t work. So, if you have a Symlink directory name munin What you have to do is :</p>
<p><code>chown -h root:root /var/www/munin</code></p>
<p>not</p>
<p><code>chown -h root:root /var/www/munin/</code></p>
]]></content:encoded>
			<wfw:commentRss>http://redhatvn.net/change-owner-of-symlink-in-linux/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
