<?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>Sysadmin Guide</title>
	<atom:link href="http://www.sysadminguide.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sysadminguide.com</link>
	<description>Tips and Guide for Server Administration/Management in Linux</description>
	<lastBuildDate>Mon, 23 Jan 2012 13:14:33 +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>setup a virtual ethernet device on linux</title>
		<link>http://www.sysadminguide.com/linux/setup-a-virtual-ethernet-device-on-linux/</link>
		<comments>http://www.sysadminguide.com/linux/setup-a-virtual-ethernet-device-on-linux/#comments</comments>
		<pubDate>Mon, 02 May 2011 14:58:10 +0000</pubDate>
		<dc:creator>Akhthar Parvez</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[eth]]></category>
		<category><![CDATA[ifconfig]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[virtual]]></category>

		<guid isPermaLink="false">http://www.sysadminguide.com/?p=208</guid>
		<description><![CDATA[What would you do if you want to add one more IP to your system. Attach one more network device? No! Then what? You would setup a virtual ethernet device. Suppose you have a physical eth device named eth0 as below: eth0 Link encap:Ethernet HWaddr 00:1C:C0:78:31:E0 inet addr:192.168.1.20 Bcast:192.168.1.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 [...]]]></description>
			<content:encoded><![CDATA[<p>What would you do if you want to add one more IP to your system. Attach one more network device? No! Then what? You would setup a virtual ethernet device.</p>
<p>Suppose you have a physical eth device named eth0 as below:</p>
<p>eth0      Link encap:Ethernet  HWaddr 00:1C:C0:78:31:E0<br />
          inet addr:192.168.1.20  Bcast:192.168.1.255  Mask:255.255.255.0<br />
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1<br />
          RX packets:3899483 errors:0 dropped:0 overruns:0 frame:0<br />
          TX packets:5332505 errors:0 dropped:0 overruns:0 carrier:0<br />
          collisions:0 txqueuelen:1000<br />
          RX bytes:1648569488 (1.5 GiB)  TX bytes:1417767181 (1.3 GiB)<br />
          Interrupt:50 Base address:0&#215;8000</p>
<p>And now you want to add another IP address (192.168.1.21) to the system. That&#8217;s so easy! </p>
<p>First copy the file /etc/sysconfig/network-scripts/ifcfg-eth0 to /etc/sysconfig/network-scripts/ifcfg-eth0:1<br />
and then edit the following lines:<br />
DEVICE=eth0:1<br />
IPADDR=192.168.1.21</p>
<p>So the whole file /etc/sysconfig/network-scripts/ifcfg-eth0:1 would look like this:<br />
# Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller<br />
DEVICE=eth0:1<br />
BOOTPROTO=none<br />
BROADCAST=192.168.1.255<br />
HWADDR=00:1c:c0:78:31:e0<br />
IPADDR=192.168.1.21<br />
NETMASK=255.255.255.0<br />
NETWORK=192.168.1.0<br />
ONBOOT=yes<br />
TYPE=Ethernet<br />
USERCTL=no<br />
IPV6INIT=no<br />
PEERDNS=yes</p>
<p>Restart the network service</p>
<p><code>/etc/init.d/network restart</code></p>
<p>Run ifconfig now and you should see the new virtual device eth0:1 there. <img src='http://www.sysadminguide.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadminguide.com/linux/setup-a-virtual-ethernet-device-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>/home/virtfs consuming a lot of space?</title>
		<link>http://www.sysadminguide.com/cp/cpanel/homevirtfs-consuming-a-lot-of-space-2/</link>
		<comments>http://www.sysadminguide.com/cp/cpanel/homevirtfs-consuming-a-lot-of-space-2/#comments</comments>
		<pubDate>Mon, 02 May 2011 14:34:06 +0000</pubDate>
		<dc:creator>Akhthar Parvez</dc:creator>
				<category><![CDATA[Filesystem]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[jailshell]]></category>
		<category><![CDATA[virtfs]]></category>

		<guid isPermaLink="false">http://www.sysadminguide.com/?p=204</guid>
		<description><![CDATA[/home/virtfs is the directory created by cpanel to provide a restricted data access to jailshell users. When a user is logged in via jailshell, a virtual fileystem is created for the cpanel user by mounting only the selected filesystems under /home/virtfs/ so the user can (only) access the data under these filesystems. Since the data [...]]]></description>
			<content:encoded><![CDATA[<p>/home/virtfs is the directory created by cpanel to provide a restricted data access to jailshell users. When a user is logged in via jailshell, a virtual fileystem is created for the cpanel user by mounting only the selected filesystems under /home/virtfs/<user> so the user can (only) access the data under these filesystems.</p>
<p>Since the data in /home/virtfs/<user> is pointed to the actual data, system would show the aggregate amount of data mounted under /home/virtfs/<user> if you perform a du. So do not perform a du under /home/virtfs if any user is logged in as ssh and never try to remove the data from this directory as that would cause the data to be removed from their actual location. </p>
<blockquote><p>Sometimes, system wouldn&#8217;t unmount some or all of the filesystems properly from /home/virtfs/<user> even if the user is logged out from jailshell. And you can guess what would happen in such cases; du would show that directory is consuming a lot of space.</p></blockquote>
<p>Check if there&#8217;s any jailshell process running and if so, kill the process. If none, you may run the following bash one liner in order to fix this issue:</p>
<p><code>for i in `cat /proc/mounts|awk '/virtfs/ {print $2}'`; do umount $i;done</code></p>
<p>Run du again and you should see that /home/virtfs is hardly consuming any space at all. <img src='http://www.sysadminguide.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadminguide.com/cp/cpanel/homevirtfs-consuming-a-lot-of-space-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Category is created, but not with the slug entered</title>
		<link>http://www.sysadminguide.com/webapp/wp/wordpress-category-is-created-but-not-with-the-slug-entered/</link>
		<comments>http://www.sysadminguide.com/webapp/wp/wordpress-category-is-created-but-not-with-the-slug-entered/#comments</comments>
		<pubDate>Sun, 24 Oct 2010 11:34:20 +0000</pubDate>
		<dc:creator>Akhthar Parvez</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[category]]></category>
		<category><![CDATA[slug]]></category>
		<category><![CDATA[tags]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.sysadminguide.com/?p=160</guid>
		<description><![CDATA[Sometimes, when you create a category in your WordPress application, it gets created but not with the desired slug. Slug is a term used to describe the short name of a category, tags alike &#8211; usually all lower case characters &#8211; that is used in the URL. Suppose, if you wanted to add a category [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes, when you create a category in your WordPress application, it gets created but not with the desired slug. Slug is a term used to describe the short name of a category, tags alike &#8211; usually all lower case characters &#8211; that is used in the URL. Suppose, if you wanted to add a category with the slug &#8220;school&#8221;, the newly created category would have the slug &#8220;school-2&#8243;. It usually happens when the slug is already is in use. You will notice it when you try to change the category slug &#8211; you will get the following error:</p>
<p>slug “&lt;slub_name&gt;” is already in use</p>
<p>You need to check if you already have a category with the same slug. If not, you&#8217;re like to have a tag with that slug name. You can goto &#8220;Post Tags&#8221; section under &#8220;Posts&#8221; and look for the particular slug. Change the slug name there and you will be able to create the category with the desired slug now.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadminguide.com/webapp/wp/wordpress-category-is-created-but-not-with-the-slug-entered/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress redirection is not working</title>
		<link>http://www.sysadminguide.com/webapp/wp/wordpress-redirection-is-not-working/</link>
		<comments>http://www.sysadminguide.com/webapp/wp/wordpress-redirection-is-not-working/#comments</comments>
		<pubDate>Sun, 24 Oct 2010 11:25:15 +0000</pubDate>
		<dc:creator>Akhthar Parvez</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[redirection]]></category>
		<category><![CDATA[rewriterule]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.sysadminguide.com/?p=157</guid>
		<description><![CDATA[If your wordpress is not displaying posts and categories alike eventhough the wordpress loads fine, it&#8217;s most likely that the redirection which is an integral part of WordPress is not working. You need to ensure the following things are setup: 1. Your webserver is built with rewrite module support. 2. You have the following lines [...]]]></description>
			<content:encoded><![CDATA[<p>If your wordpress is not displaying posts and categories alike eventhough the wordpress loads fine, it&#8217;s most likely that the redirection which is an integral part of WordPress is not working. You need to ensure the following things are setup:</p>
<p>1. Your webserver is built with rewrite module support.</p>
<p>2. You have the following lines in your .htaccess:</p>
<blockquote><p>&lt;IfModule mod_rewrite.c&gt;<br />
RewriteEngine On<br />
RewriteBase /<br />
RewriteCond %{HTTP_HOST} sysadminguide\.com$ [NC]<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule . /index.php [L]<br />
&lt;/IfModule&gt;</p></blockquote>
<p>That&#8217;s it! If the above show fine and your WP still doesn&#8217;t work, check logs and you should see the obvious reason there.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadminguide.com/webapp/wp/wordpress-redirection-is-not-working/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to check if your SMTP server is an open relay</title>
		<link>http://www.sysadminguide.com/smtp/how-to-check-if-your-smtp-server-is-an-open-relay/</link>
		<comments>http://www.sysadminguide.com/smtp/how-to-check-if-your-smtp-server-is-an-open-relay/#comments</comments>
		<pubDate>Sat, 23 Oct 2010 15:22:17 +0000</pubDate>
		<dc:creator>Akhthar Parvez</dc:creator>
				<category><![CDATA[SMTP]]></category>
		<category><![CDATA[open relay]]></category>
		<category><![CDATA[RBL]]></category>
		<category><![CDATA[smtp]]></category>

		<guid isPermaLink="false">http://www.sysadminguide.com/?p=149</guid>
		<description><![CDATA[If you&#8217;re setting up a Mail server, one of the most important tasks you need to do is ensure it&#8217;s not an open relay. Open relay means anyone can send out emails using the Mail Server without any authentication. If your SMTP server is an open relay, you are most likely to be blacklisted by [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re setting up a Mail server, one of the most important tasks you need to do is ensure it&#8217;s not an open relay. Open relay means anyone can send out emails using the Mail Server without any authentication. If your SMTP server is an open relay, you are most likely to be blacklisted by all major spam lists.</p>
<p>So, here&#8217;s how you can check whether your SMTP server is an open relay:</p>
<blockquote><p>telnet sysadminguide.com 25</p>
<p>helo server.sysadminguide.com</p>
<p>mail from: test@sysadminguide.com</p>
<p>rcpt to: test@testdomain.com</p>
<p>DATA</p>
<p>Subject: test<br />
Testing open relay<br />
.</p>
<p>quit</p></blockquote>
<p>If everything went successfully and you were able to send the email, then you have an open relay. Tune your SMTP server to setup sender verification or SMTP authentication.</p>
<p><em>However, be noted that if you have already popped emails or sent emails using authentication from the PC you&#8217;re testing it, you will likely succeed in sending the emails through the above method and that doesn&#8217;t mean you have an open relay. </em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadminguide.com/smtp/how-to-check-if-your-smtp-server-is-an-open-relay/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache – Secure upload directories</title>
		<link>http://www.sysadminguide.com/web/apache/apache-secure-upload-directories/</link>
		<comments>http://www.sysadminguide.com/web/apache/apache-secure-upload-directories/#comments</comments>
		<pubDate>Thu, 05 Aug 2010 19:05:57 +0000</pubDate>
		<dc:creator>Akhthar Parvez</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[cgi]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[upload]]></category>

		<guid isPermaLink="false">http://www.sysadminguide.com/?p=139</guid>
		<description><![CDATA[It&#8217;s very important to secure directories which are being used as the destination dir for web uploads. You can do this by adding the following entries into the .htaccess file: Options -Indexes AddHandler cgi-script .php .php3 .php4 .php5 .phtml .pl .py .jsp .asp .htm .shtml .sh .cgi .txt Options -ExecCGI Just a small step to [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s very important to secure directories which are being used as the destination dir for web uploads. You can do this by adding the following entries into the .htaccess file:</p>
<p>Options -Indexes<br />
AddHandler cgi-script .php .php3 .php4 .php5 .phtml .pl .py .jsp .asp .htm .shtml .sh .cgi .txt<br />
Options -ExecCGI</p>
<p>Just a small step to miss, but the impact may be huge.</p>
<p>PS: Make sure that no directories are world or apache user writable unless they&#8217;re used for web uploads. It would be dangerous otherwise.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadminguide.com/web/apache/apache-secure-upload-directories/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create an FTP user on a cPanel server from backend (shell)</title>
		<link>http://www.sysadminguide.com/cp/cpanel/create-an-ftp-user-on-cpanel-server-from-backend-shell/</link>
		<comments>http://www.sysadminguide.com/cp/cpanel/create-an-ftp-user-on-cpanel-server-from-backend-shell/#comments</comments>
		<pubDate>Fri, 28 May 2010 19:33:34 +0000</pubDate>
		<dc:creator>Akhthar Parvez</dc:creator>
				<category><![CDATA[cPanel]]></category>
		<category><![CDATA[add]]></category>
		<category><![CDATA[create]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[proftpd]]></category>
		<category><![CDATA[pure-ftp]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[user]]></category>

		<guid isPermaLink="false">http://www.sysadminguide.com/?p=130</guid>
		<description><![CDATA[Ever wondered how to create FTP users on a cPanel server? Adding FTP using pure-pw (for Pure-ftpd, who uses proftpd anyway?) won&#8217;t work because cPanel will overwrite it when you run /usr/local/cpanel/bin/ftpupdate. FYI, that command is being run everytime you add a new account on the server. Here&#8217;s the command to create an FTP user [...]]]></description>
			<content:encoded><![CDATA[<p>Ever wondered how to create FTP users on a cPanel server? Adding FTP using pure-pw (for Pure-ftpd, who uses proftpd anyway?) won&#8217;t work because cPanel will overwrite it when you run /usr/local/cpanel/bin/ftpupdate. FYI, that command is being run everytime you add a new account on the server.</p>
<p>Here&#8217;s the command to create an FTP user on a cPanel server:</p>
<blockquote><p>/usr/local/cpanel/bin/proftpd_passwd abc -a abc_ftp:test:501:501:abc:/home/abc/public_html/test:/sbin/nologin</p></blockquote>
<p><em>where abc_ftp@&lt;domainname&gt; is the virtual FTP user and abc is the system user to which the FTP user belongs to.</em></p>
<p>Done, it&#8217;s that simple <img src='http://www.sysadminguide.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Thinking if the above command was meant for adding a ProFTP user? Well, it&#8217;s for adding an FTP user on cPanel servers no matter which FTP server you&#8217;re on. cPanel stores the passwd in /etc/proftpd/&lt;user&gt; file (and a combined list in /etc/proftpd/passwd.vhosts), whether its&#8217; Pro or Pure.</p>
<p>Here&#8217;s the syntax:</p>
<blockquote><p>/usr/local/cpanel/bin/proftpd_passwd &lt;sys user&gt; -a &lt;vuser&gt;:&lt;passwd&gt;:&lt;uid&gt;:&lt;gid&gt;:&lt;owner&gt;:&lt;home_dir&gt;:&lt;shell&gt;</p></blockquote>
<p>You may delete the FTP user as below:</p>
<blockquote><p>/usr/local/cpanel/bin/proftpd_passwd &lt;sys user&gt; -d &lt;vuser&gt;</p></blockquote>
<p>If you ever edit the passwd files directly to remove a user, you should run the following command so that the changes can take effect:</p>
<blockquote><p>/usr/local/cpanel/bin/ftpupdate</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadminguide.com/cp/cpanel/create-an-ftp-user-on-cpanel-server-from-backend-shell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Redirect URL with htaccess</title>
		<link>http://www.sysadminguide.com/web/apache/redirect-url-with-htaccess/</link>
		<comments>http://www.sysadminguide.com/web/apache/redirect-url-with-htaccess/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 22:20:30 +0000</pubDate>
		<dc:creator>Akhthar Parvez</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[301]]></category>
		<category><![CDATA[FollowSymLinks]]></category>
		<category><![CDATA[HTTP_HOST]]></category>
		<category><![CDATA[options]]></category>
		<category><![CDATA[permanent]]></category>
		<category><![CDATA[redirect]]></category>
		<category><![CDATA[RewriteBase]]></category>
		<category><![CDATA[RewriteEngine]]></category>
		<category><![CDATA[rewriterule]]></category>
		<category><![CDATA[url]]></category>

		<guid isPermaLink="false">http://www.sysadminguide.com/?p=123</guid>
		<description><![CDATA[If you want to redirect a page/directory to another page/directory, it’s plain simple. Just add the following line into your .htaccess file. Redirect 301 /oldpage.html /new_directory/ Above rule will redirect all requests to the file /oldpage.html to the directory /new_directory/. Redirect number 301 means it was moved permanently. See all numbers below: 300 multiple choices [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to redirect a page/directory to another page/directory, it’s plain simple. Just add the following line into your .htaccess file.</p>
<p>    Redirect 301 /oldpage.html /new_directory/</p>
<p>Above rule will redirect all requests to the file /oldpage.html to the directory /new_directory/. Redirect number 301 means it was moved permanently. See all numbers below:</p>
<p>        300 multiple choices (e.g. offer different languages)<br />
        301 moved permanently<br />
        302 found (originally temporary redirect, but now commonly used to specify redirection for unspecified reason)<br />
        303 see other (e.g. for results of cgi-scripts)<br />
        307 temporary redirect</p>
<p>**********************************************************************</p>
<p>If you want to redirect the pages on a website to another, you should use RewriteRule instead of Redirect. The syntax is given below:</p>
<p>Option 1 (this will redirect only the old domain to new domain:<br />
Options +FollowSymLinks<br />
RewriteEngine on<br />
RewriteCond %{HTTP_HOST} ^(www.)?newdomain\.com<br />
RewriteRule ^(.*)$ http://www.newdomain.com/$1 [R=301,L]</p>
<p>Option 2 (this will redirect all domains except the new domain to new domain):<br />
Options +FollowSymLinks<br />
RewriteEngine on<br />
RewriteCond %{HTTP_HOST} !^www\.newdomain\.com<br />
RewriteRule ^(.*)$ http://www.newdomain.com/$1 [R=301,L]</p>
<p>If you want to redirect all requests without www to with www, use the following code.</p>
<p>    Options +FollowSymLinks<br />
    RewriteEngine on<br />
    RewriteBase /<br />
    RewriteCond %{HTTP_HOST} ^sysadminguide\.com$ [NC]<br />
    RewriteRule ^(.*)$ http://www.sysadminguide.com/$1 [R=301,L]</p>
<p>Above rules would redirect the requests for sysadminguide.com to www.sysadminguide.com.</p>
<p>Similarly, you can redirect all the pages in a sub-drectory to the document root itself as below:</p>
<p>    RewriteCond %{HTTP_HOST} ^sysadminguide\.com$ [NC]<br />
    RewriteRule ^topics/(.*)$ /$1</p>
<p>RewriteRule is a powerful tool to redirect website URLs and pages alike with the use of Regular expressions. To learn more about Apache rewrite module (mod_rewrite), goto the following link:</p>
<p>http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadminguide.com/web/apache/redirect-url-with-htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP error &#8211; URL file-access is disabled in the server configuration</title>
		<link>http://www.sysadminguide.com/web/apache/php/php-error-url-file-access-is-disabled-in-the-server-configuration/</link>
		<comments>http://www.sysadminguide.com/web/apache/php/php-error-url-file-access-is-disabled-in-the-server-configuration/#comments</comments>
		<pubDate>Sat, 16 Jan 2010 20:06:14 +0000</pubDate>
		<dc:creator>Akhthar Parvez</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[allow_url_include]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[httpd]]></category>
		<category><![CDATA[include]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[url]]></category>

		<guid isPermaLink="false">http://www.sysadminguide.com/?p=113</guid>
		<description><![CDATA[If you get the following error while accessing a PHP script URL file-access is disabled in the server configuration Add the following into the .htaccess file for the particular website to get this work. php_flag allow_url_include Off Note: However, it&#8217;s highly recommended to keep allow_url_include disabled as it would be a security risk otherwise. This [...]]]></description>
			<content:encoded><![CDATA[<p>If you get the following error while accessing a PHP script</p>
<p><em>URL file-access is disabled in the server configuration</em></p>
<p>Add the following into the .htaccess file for the particular website to get this work.</p>
<blockquote><p><strong>php_flag allow_url_include Off</strong></p></blockquote>
<p>Note: However, <strong>it&#8217;s highly recommended to keep <strong>allow_url_include</strong> disabled as it would be a security risk otherwise. </strong>This function allows remote files to be executed via include/require function within a PHP script. So allow this only if you&#8217;re sure the PHP code is safe and never allow it server wide.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadminguide.com/web/apache/php/php-error-url-file-access-is-disabled-in-the-server-configuration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Mailparse</title>
		<link>http://www.sysadminguide.com/web/apache/php/install-mailparse/</link>
		<comments>http://www.sysadminguide.com/web/apache/php/install-mailparse/#comments</comments>
		<pubDate>Thu, 31 Dec 2009 11:05:42 +0000</pubDate>
		<dc:creator>Akhthar Parvez</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[/tmp]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[extension]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[mailparse]]></category>
		<category><![CDATA[module]]></category>
		<category><![CDATA[parse]]></category>
		<category><![CDATA[pear]]></category>
		<category><![CDATA[pecl]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.sysadminguide.com/?p=69</guid>
		<description><![CDATA[Mailparse is a PECL (PHP Extension Community Library) extension for parsing emails. You should have the PHP module mbstring for mailparse to work. It&#8217;s a pretty straightforward task. Run the following command to install mailparse: # pecl install mailparse If you get the following error whle compiling mailparse: checking whether the C compiler works&#8230; configure: [...]]]></description>
			<content:encoded><![CDATA[<p>Mailparse is a PECL (PHP Extension Community Library) extension for parsing emails. You should have the PHP module mbstring for mailparse to work. It&#8217;s a pretty straightforward task. Run the following command to install mailparse:</p>
<blockquote><p><strong># pecl install mailparse</strong></p></blockquote>
<p>If you get the following error whle compiling mailparse:</p>
<p><em>checking whether the C compiler works&#8230; configure: error: cannot run C compiled programs.</em></p>
<p>Check the mount permission on your /tmp directory. You would need to remount /tmp as executable.</p>
<blockquote><p># <strong>mount | grep /tmp</strong><br />
/dev/sda3 on /tmp type ext3 (rw)<br />
/tmp on /var/tmp type none (rw,noexec,nosuid,bind)</p>
<p># <strong>mount -o remount,exec,suid /tmp</strong></p></blockquote>
<p>Proceed with the compilation and don&#8217;t fforget to remount /tmp as noexec once it&#8217;s finished.</p>
<blockquote><p><strong># mount -o remount,noexec,nosuid /tmp</strong></p></blockquote>
<p>If you you don&#8217;t want to remount /tmp as noexec even temporarily or can&#8217;t remount /tmp (chance if you&#8217;re on VPS), you can use another directory for temp.</p>
<blockquote><p><strong># pear config-set temp_dir /var/tmp/pear/temp</strong></p></blockquote>
<p>You may proceed with the installation now and that should work.</p>
<p><strong>Manual installation:</strong></p>
<p>If the automatic compilation doesn&#8217;t work and you have no idea how to fix it, don&#8217;t panic. You can install it manually.</p>
<p>1. Download the package from http://pecl.php.net/package/mailparse</p>
<p>2. Hand compile it.</p>
<blockquote><p><strong># tar -zxvf mailparse-*.tgz<br />
# cd </strong><strong>mailparse-*</strong><strong><br />
# phpize<br />
# ./configure<br />
# make<br />
# make install</strong></p></blockquote>
<p>3. Move the module mailparse.so to the PHP extensions directory and add the following line under Dynamic Extensions in your php.ini</p>
<blockquote><p><strong>extension=mailparse.so</strong></p></blockquote>
<p>Restart Apache and Mailparse is compiled into the PHP now.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadminguide.com/web/apache/php/install-mailparse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
