<?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>linuxbuddies.com &#187; Apache</title>
	<atom:link href="http://linuxbuddies.com/tag/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://linuxbuddies.com</link>
	<description>For linux documentations.</description>
	<lastBuildDate>Fri, 11 Sep 2009 10:11:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Disable/Enable safe_mode/register_globals value</title>
		<link>http://linuxbuddies.com/2009/01/18/283/</link>
		<comments>http://linuxbuddies.com/2009/01/18/283/#comments</comments>
		<pubDate>Sun, 18 Jan 2009 04:55:40 +0000</pubDate>
		<dc:creator>Riyesh</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Disable/Enable safe_mode/register_globals value]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[register_globals]]></category>
		<category><![CDATA[value]]></category>

		<guid isPermaLink="false">http://linuxbuddies.com/?p=283</guid>
		<description><![CDATA[You can disable/enable safe_mode either using .htaccess, php.ini or httpd.conf file. Selecting the right way depends on your php-apache configuration.
If php is compiled as a dso module for apache, you will have to use .htaccess method
If php-apache relationship is CGI, then php.ini file is used to disable safe_mode value
 If none ...]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-thumbnail wp-image-59" title="apache_1" src="http://linuxbuddies.com/wp-content/uploads/2008/12/apache_1-150x150.jpg" alt="apache_1" width="150" height="150" />You can disable/enable safe_mode either using .htaccess, php.ini or httpd.conf file. Selecting the right way depends on your php-apache configuration.<br />
If php is compiled as a dso module for apache, you will have to use .htaccess method</p>
<p>If php-apache relationship is CGI, then php.ini file is used to disable safe_mode value</p>
<p> If none of the above works, contact your hosting provider and ask them to disable safe_mode through the servers httpd.conf file. It can be done in your VirtualHost configuration inside httpd.conf file.</p>
<p><strong>.htaccess Code</strong></p>
<p style="padding-left: 60px; "><strong><span style="font-weight: normal;">php_admin_value safe_mode Off [OR]<br />
php_flag safe_mode Off</span></strong></p>
<p>edit php.ini ( use this command to find php.ini file location &#8211; &#8220;php -i | grep php.in&#8221; ) </p>
<p style="padding-left: 60px; ">safe_mode = Off</p>
<p>edit httpd.cof </p>
<p style="padding-left: 30px; ">php_admin_value safe_mode Off</p>
<p>Verify your settings</p>
<p> Create phpinfo page file  and put it on the document root and access the page to see if the defult value has been overrided with your defult value.</p>
<p>phpinfo sample. </p>
<p style="padding-left: 30px;">example <br />
vi  phpinfo.php</p>
<p style="padding-left: 30px;">&lt;?php<br />
phpinfo();<br />
?&gt;</p>
<p>You may use register_globals keyword instead of safe_mode to change values of register_globals variable [off/on values are accepted]</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxbuddies.com/2009/01/18/283/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Collecting User IP!</title>
		<link>http://linuxbuddies.com/2009/01/03/collecting-user-ip/</link>
		<comments>http://linuxbuddies.com/2009/01/03/collecting-user-ip/#comments</comments>
		<pubDate>Sat, 03 Jan 2009 07:14:44 +0000</pubDate>
		<dc:creator>Riyesh</dc:creator>
				<category><![CDATA[Network]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[bash scripting]]></category>
		<category><![CDATA[cgi scripting]]></category>
		<category><![CDATA[ip]]></category>
		<category><![CDATA[msyql]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[users IP]]></category>

		<guid isPermaLink="false">http://linuxbuddies.com/?p=272</guid>
		<description><![CDATA[A sample BASH CGI script for collecting IPs of your colleagues in your network.
Prerequisites 
1) apache/cgi configuration
2) a Mysql installation
Then create script &#8220;getip.sh&#8221; under &#8220;/var/www/cgi-bin/&#8221;  ( set location of cgi-bin directory  as per the apache configuration) 
#!/bin/bash #Getting IP address CGI-BASH-script#Jadu Saikia http://unstableme.blogspot.com/ #MySQL settings
# MHOME=  ( location of mysql ...]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-273" title="ip" src="http://linuxbuddies.com/wp-content/uploads/2009/01/ip.jpg" alt="ip" width="138" height="112" /><span style="color: #000000;">A sample BASH CGI script for collecting IPs of your colleagues in your network.</span></p>
<p><strong><span style="color: #000000;">Prerequisites </span></strong><br />
<span style="color: #000000;">1) apache/cgi configuration</span><br />
<span style="color: #000000;">2) a Mysql installation</span></p>
<p><span style="color: #000000;">Then create script &#8220;getip.sh&#8221; under &#8220;/var/www/cgi-bin/&#8221;  ( set location of cgi-bin directory  as per the apache configuration) </span></p>
<p style="padding-left: 30px;"><span style="font-size: x-small;"><span style="font-family: courier new,monospace;">#!/bin/bash</span><br style="font-family: courier new,monospace;" /> <span style="font-family: courier new,monospace;">#Getting IP address CGI-BASH-script</span><br style="font-family: courier new,monospace;" /><span style="font-family: courier new,monospace;">#Jadu Saikia <a href="http://unstableme.blogspot.com/" target="_blank">http://unstableme.blogspot.com/</a></span><br style="font-family: courier new,monospace;" /> <br style="font-family: courier new,monospace;" /><span style="font-family: courier new,monospace;">#MySQL settings</span></span></p>
<p style="padding-left: 30px;"><span style="font-size: x-small;"># MHOME=  ( location of mysql binary)<br style="font-family: courier new,monospace;" /><span style="font-family: courier new,monospace;">MHOME=/usr/local/mysql/bin</span><br style="font-family: courier new,monospace;" /> <span style="font-family: courier new,monospace;">HOST=127.0.0.1</span><br style="font-family: courier new,monospace;" /><span style="font-family: courier new,monospace;">USER=root</span><br style="font-family: courier new,monospace;" /> <span style="font-family: courier new,monospace;">PASS=&#8221;"</span><br style="font-family: courier new,monospace;" /><span style="font-family: courier new,monospace;">DB=mydb</span><br style="font-family: courier new,monospace;" /> <br style="font-family: courier new,monospace;" /><span style="font-family: courier new,monospace;">OWNER=$(echo &#8220;$QUERY_STRING&#8221; |awk -F &#8220;=&#8221; &#8216;{print $NF}&#8217;)</span><br style="font-family: courier new,monospace;" /> <span style="font-family: courier new,monospace;">IP=$REMOTE_ADDR</span><br style="font-family: courier new,monospace;" /><span style="font-family: courier new,monospace;">#QUERY_STRING = Query information that follows the ? in the URL that referenced this script.</span><br style="font-family: courier new,monospace;" /> <span style="font-family: courier new,monospace;">#REMOTE_ADDR = IP address of the remote host making the request</span><br style="font-family: courier new,monospace;" /><br style="font-family: courier new,monospace;" /><span style="font-family: courier new,monospace;">#HTML Output</span><br style="font-family: courier new,monospace;" /> <span style="font-family: courier new,monospace;">echo &#8220;Content-type: text/html&#8221;</span><br style="font-family: courier new,monospace;" /><span style="font-family: courier new,monospace;">echo &#8220;&#8221;</span><br style="font-family: courier new,monospace;" /> <span style="font-family: courier new,monospace;">echo &#8220;&lt;html&gt;&lt;head&gt;&lt;title&gt;YOUR IP&lt;/title&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;I am collecting the IPs&lt;/h1&gt;&lt;pre&gt;&#8221;;</span><br style="font-family: courier new,monospace;" /> <span style="font-family: courier new,monospace;">echo &#8220;IP: &lt;em&gt;$IP&lt;/em&gt;&lt;br /&gt;&#8221;</span><br style="font-family: courier new,monospace;" /><span style="font-family: courier new,monospace;">echo &#8220;You Are IP is : &lt;em&gt;$OWNER&lt;/em&gt;&lt;br /&gt;&#8221;</span><br style="font-family: courier new,monospace;" /> <br style="font-family: courier new,monospace;" /><span style="font-family: courier new,monospace;">$MHOME/mysql -u$USER -h$HOST &#8211;password=$PASS -e &#8220;INSERT INTO mydb.ips(rdate,ip,owner) VALUES(NOW(),&#8217;$IP&#8217;,'$OWNER&#8217;)&#8221; $DB</span><br style="font-family: courier new,monospace;" /> <br style="font-family: courier new,monospace;" /><span style="font-family: courier new,monospace;">echo &#8220;&lt;/pre&gt;&lt;/body&gt;&lt;/html&gt;&#8221;;</span></span></p>
<p>Then</p>
<p><span style="color: #000000;">Create MySql Database for storing the data. </span></p>
<p><span style="color: #000000;">logon to mysql </span></p>
<p style="padding-left: 30px;"><span style="color: #000000;">mysql -u root -p password </span></p>
<p><span style="color: #000000;">create database and table</span></p>
<p><span style="color: #000000;"> create database mydb<br />
</span></p>
<p style="padding-left: 30px;"><span style="color: #000000;">use mydb<br />
</span></p>
<p style="padding-left: 30px;"><span style="color: #000000;">create table </span><span style="font-family: courier new,monospace;">mydb.ips (</span> <span style="font-family: courier new,monospace;">rdate DATE,</span> <span style="font-family: courier new,monospace;">ip VARCHAR(20) NOT NULL PRIMARY KEY,</span> <span style="font-family: courier new,monospace;">owner VARCHAR(25)</span><span style="font-family: courier new,monospace;">);</span></p>
<p style="padding-left: 30px;"><span style="font-family: courier new,monospace;">exit</span></p>
<p>Suppose the IP of the box where you are running the cgi is &#8220;172.22.22.188&#8243; (your local ip).</p>
<p>Now construct the urls for your colleagues this way:</p>
<p><a href="http://172.22.22.188/cgi-bin/retrip.sh?owner=alexm" target="_blank">http://172.22.22.188/cgi-bin/getip.sh?owner=alexm</a><br />
<a href="http://172.22.22.188/cgi-bin/retrip.sh?owner=nsarma" target="_blank">http://172.22.22.188/cgi-bin/getip.sh?owner=nsarma</a><br />
&#8230;<br />
&#8230;</p>
<p>And send them the individual urls in mail with a request to click the url (just to help you collecting the ips in the mysql table)</p>
<p>Once they click, your database table will be automatically populated with datas like this:</p>
<p>mysql&gt; select * from mydb.ips;<br />
+&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;+</p>
<div id=":2xf" class="ArwC7c ckChnd">&#8212;&#8212;&#8212;+<br />
| rdate | ip | owner |<br />
+&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;+<br />
| 2007-01-02 | 172.22.22.111 | alexm |<br />
| 2007-01-03 | 172.22.22.92 | nsarma |<br />
+&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;+<br />
2 rows in set (0.00 sec)</div>
<div class="ArwC7c ckChnd">Finished.</div>
<p><span style="font-family: courier new,monospace;"><br />
</span></p>
<p><span style="font-family: courier new,monospace;"><br />
</span></p>
<p><span style="color: #000000;"><br />
</span></p>
]]></content:encoded>
			<wfw:commentRss>http://linuxbuddies.com/2009/01/03/collecting-user-ip/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Tomcat</title>
		<link>http://linuxbuddies.com/2009/01/02/installing-tomcat/</link>
		<comments>http://linuxbuddies.com/2009/01/02/installing-tomcat/#comments</comments>
		<pubDate>Fri, 02 Jan 2009 06:21:29 +0000</pubDate>
		<dc:creator>Riyesh</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[j2sdk]]></category>
		<category><![CDATA[jakarta-ant]]></category>
		<category><![CDATA[jakarta-tomat]]></category>
		<category><![CDATA[jakarta-tomcat-connectors]]></category>
		<category><![CDATA[mod_jk]]></category>
		<category><![CDATA[openssl]]></category>
		<category><![CDATA[tomcat]]></category>

		<guid isPermaLink="false">http://linuxbuddies.com/?p=317</guid>
		<description><![CDATA[  
Required packages
Apache
OpenSSL
j2sdk
jakarta-tomcat
jakarta-ant
jakarta-tomcat-connectors(mod_jk)
 
Configure Environment Variables
 
Edit and add the lines below to &#8220;/etc/profile&#8221;
 
JAVA_HOME=/usr/local/java/java
CATALINA_HOME=/usr/local/tomcat
PATH=$JAVA_HOME/bin:$PATH:$HOME/bin:/sbin:/usr/sbin
CLASSPATH=$CATALINA_HOME/bin/bootstrap.jar:$JAVA_HOME/lib/tools.jar:$CATALINA_HOME/common/lib/servlet.jar:/usr/local/pgsql/share/java/postgresql.jar:../lib/struts.jar:.
 
Now add the PATH JAVA_HOME CATALINA_HOME &#38; CLASSPATH if any aren&#8217;t in the export line
 
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC JAVA_HOME CATALINA_HOME CLASSPATH
 
Install Java
 
mkdir /usr/local/java
cd /usr/local/java
sh jdk-1_5_0_04-linux-i586.bin
 
The jdk directory is then extracted
 
mv jdk-1_5_0_04 /usr/local/java
ln -s jdk-1_5_0_04 java
 
Now the ...]]></description>
			<content:encoded><![CDATA[<p><strong><img class="alignnone size-thumbnail wp-image-318" title="tomcat-tdg-large-1sted" src="http://linuxbuddies.com/wp-content/uploads/2009/01/tomcat-tdg-large-1sted-150x150.jpg" alt="tomcat-tdg-large-1sted" width="150" height="150" />  </strong></p>
<p><strong>Required packages</strong></p>
<p><strong><a class="postlink" href="http://httpd.apache.org/download.cgi">Apache</a><br />
<a class="postlink" href="http://www.openssl.org/source/">OpenSSL</a><br />
<a class="postlink" href="http://java.sun.com/">j2sdk</a><br />
<a class="postlink" href="http://jakarta.apache.org/site/binindex.cgi">jakarta-tomcat</a><br />
<a class="postlink" href="http://ant.apache.org/">jakarta-ant</a><br />
<a class="postlink" href="http://jakarta.apache.org/site/sourceindex.cgi">jakarta-tomcat-connectors(mod_jk)</a></strong></p>
<p> </p>
<p><strong>Configure Environment Variables</strong></p>
<p> </p>
<p><strong><span style="font-weight: normal;">Edit and add the lines below to &#8220;/etc/profile&#8221;</span></strong></p>
<p> </p>
<p style="padding-left: 30px; "><strong><span style="font-weight: normal;">JAVA_HOME=/usr/local/java/java<br />
CATALINA_HOME=/usr/local/tomcat<br />
PATH=$JAVA_HOME/bin:$PATH:$HOME/bin:/sbin:/usr/sbin<br />
CLASSPATH=$CATALINA_HOME/bin/bootstrap.jar:$JAVA_HOME/lib/tools.jar:$CATALINA_HOME/common/lib/servlet.jar:/usr/local/pgsql/share/java/postgresql.jar:../lib/struts.jar:.</span></strong></p>
<p> </p>
<p><strong><span style="font-weight: normal;">Now add the PATH JAVA_HOME CATALINA_HOME &amp; CLASSPATH if any aren&#8217;t in the export line</span></strong></p>
<p> </p>
<p style="padding-left: 30px; ">export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC JAVA_HOME CATALINA_HOME CLASSPATH</p>
<p> </p>
<p><strong>Install Java</strong></p>
<p> </p>
<p style="padding-left: 30px; ">mkdir /usr/local/java<br />
cd /usr/local/java<br />
sh jdk-1_5_0_04-linux-i586.bin</p>
<p> </p>
<p>The jdk directory is then extracted</p>
<p style="padding-left: 30px; "> </p>
<p style="padding-left: 30px; ">mv jdk-1_5_0_04 /usr/local/java<br />
ln -s jdk-1_5_0_04 java</p>
<p style="padding-left: 30px; "> </p>
<p>Now the java directory will be in /usr/local/java/java. I do it like this so I can keep all my different JDKs/JREs in one directory and then just change the symbolic link to point to the current one.</p>
<p> </p>
<p><strong>Install Jakarta TOMCAT (Tomcat4 or Tomcat5 can be used)</strong></p>
<p> </p>
<p style="padding-left: 30px; "><strong><span style="font-weight: normal;">tar xvfz jakarta-tomcat-4.1.29.tar.gz<br />
mv jakarta-tomcat-4.1.29 /usr/local/<br />
cd /usr/local<br />
ln -s jakarta-tomcat-4.1.29 tomcat</span></strong></p>
<p style="padding-left: 30px; "><strong><br />
</strong></p>
<p><strong><span style="font-weight: normal;"><strong>Install Jakarta ANT</strong></span></strong></p>
<p> </p>
<p style="padding-left: 30px; "><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;">tar xvfz jakarta-ant-1.6.0<br />
mv jakarta-ant-1.6.0 /usr/local<br />
cd /usr/local<br />
ln -s jakarta-ant-1.6.0 ant<br />
ln -s /usr/local/ant/bin/ant /usr/local/bin/ant</span></strong></span></strong></p>
<p style="padding-left: 30px; "> </p>
<p><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;"><strong>Install OPENSSL</strong></span></strong></span></strong></p>
<p> </p>
<p style="padding-left: 30px; "><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;">tar xvfz openssl-0.9.7d.tar.gz<br />
mv openssl-0.9.7d /usr/local/src/<br />
cd /usr/local/src/openssl-0.9.7d<br />
./config<br />
make<br />
make test<br />
make install<br />
#This will install in /usr/local/ssl</span></strong></span></strong></span></strong></p>
<p style="padding-left: 30px; "> </p>
<p><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;"><strong>Install APACHE</strong></span></strong></span></strong></span></strong></p>
<p> </p>
<p style="padding-left: 30px; "><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;">tar xvfz httpd-2.0.48.tar.Z<br />
cd httpd-2.0.48<br />
./configure &#8211;prefix=/usr/local/apache2 &#8211;enable-so &#8211;enable-rewrite \<br />
                &#8211;enable-ssl &#8211;with-ssl=/usr/local/ssl &#8211;enable-proxy<br />
make<br />
make install   <br />
#(places in /usr/local/apache2)</span></strong></span></strong></span></strong></span></strong></p>
<p style="padding-left: 30px; "> </p>
<p><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;"><strong>Build/Install MOD_JK Connector</strong></span></strong></span></strong></span></strong></span></strong></p>
<p> </p>
<p style="padding-left: 30px; "><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;">cd /usr/local/src/jakarta-tomcat-connectors-jk-1.2.5-src/jk/native<br />
./buildconf.sh<br />
./configure &#8211;with-apxs=/usr/local/apache2/bin/apxs<br />
make<br />
cp apache-2.0/mod_jk.so /usr/local/apache2/modules   </span></strong></span></strong></span></strong></span></strong></span></strong></p>
<p> </p>
<p><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;"><span><strong>Configure Apache for mod_jk</strong></span></span></strong></span></strong></span></strong></span></strong></span></strong></p>
<p><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;"><span><strong></strong></span><br />
I put these lines in http.conf just before NameVirtualHost</span></strong></span></strong></span></strong></span></strong></span></strong></p>
<p style="padding-left: 30px; "><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;">&lt;IfModule !mod_jk.c&gt;<br />
  LoadModule jk_module modules/mod_jk.so<br />
&lt;/IfModule&gt;</span></strong></span></strong></span></strong></span></strong></span></strong></p>
<p style="padding-left: 30px; "> </p>
<p><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;">Finished. </span></strong></span></strong></span></strong></span></strong></span></strong></p>
<p style="padding-left: 30px; "> </p>
<p style="padding-left: 30px; "><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;"><br />
</span></strong></span></strong></span></strong></span></strong></span></strong></p>
<div><strong><br />
</strong></div>
<p style="padding-left: 30px; "> </p>
<p style="padding-left: 30px; "><strong><span style="font-weight: normal;"><br />
</span></strong></p>
<p> </p>
<p> </p>
<p> </p>
<p><strong><br />
</strong></p>
<p><strong><span style="font-weight: normal;"><br />
</span></strong></p>
<p><strong><br />
</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://linuxbuddies.com/2009/01/02/installing-tomcat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySql Replication</title>
		<link>http://linuxbuddies.com/2008/12/27/mysql-replication/</link>
		<comments>http://linuxbuddies.com/2008/12/27/mysql-replication/#comments</comments>
		<pubDate>Sat, 27 Dec 2008 01:09:11 +0000</pubDate>
		<dc:creator>Riyesh</dc:creator>
				<category><![CDATA[Mysql]]></category>
		<category><![CDATA[server tweak]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[mysql replication]]></category>
		<category><![CDATA[replication]]></category>

		<guid isPermaLink="false">http://linuxbuddies.com/?p=244</guid>
		<description><![CDATA[Mysql Replication is used to get a mirror copy of master server to slave. All changes made in server is updated on slave. This can be achieved by the following steps. one thing to be notify is the master and salvemay contain the same version of mysql.
  changes in master ...]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-thumbnail wp-image-245" title="replication" src="http://linuxbuddies.com/wp-content/uploads/2008/12/replication-150x150.png" alt="replication" width="150" height="150" />Mysql Replication is used to get a mirror copy of master server to slave. All changes made in server is updated on slave. This can be achieved by the following steps. one thing to be notify is the master and salvemay contain the same version of mysql.</p>
<p><span> <span style="text-decoration: underline;"><span style="text-decoration: underline;"> </span>changes in master</span> </span></p>
<blockquote><p><span><span>edit /etc/my.cnf<br />
  [mysqld]<br />
  log-bin = mysql-bin<br />
  server-id = 1<br />
  restart the mysql service</span></span></p></blockquote>
<p><span><span><span>enter the following commands in mysql<br />
</span></span></span></p>
<blockquote><p><span><span><span><span>grant all on *.* to user@slaveip identified by &#8216;userpassword&#8217; with grant option;<br />
     grant replication slave on *.* to &#8216;username&#8217;@masterip identified by &#8216;userpassword&#8217;;<br />
     show master status;</span></span></span></span></p></blockquote>
<p><span><span><span><span><span>   <span style="text-decoration: underline;"><strong> </strong></span><span style="text-decoration: underline;"><span style="text-decoration: none;">changes in slave </span></span></span></span></span></span></span></p>
<blockquote><p><span><span><span><span><span><span style="text-decoration: underline;"><span style="text-decoration: none;"><span>vi /etc/my.cnf<br />
[mysqld]<br />
  log-bin = mysql-bin<br />
  server-id = 2<br />
  restart the mysql service </span></span></span></span></span></span></span></span></p></blockquote>
<p><span><span><span><span><span><span style="text-decoration: underline;"><span style="text-decoration: none;"><span><span>enter the following commands in mysql</span></span></span></span></span></span></span></span></span></p>
<blockquote><p><span><span><span><span><span><span style="text-decoration: underline;"><span style="text-decoration: none;"><span><span><span>grant all on *.* to username@localhost identified by &#8216;userpassword&#8217;;<br />
     change master to master_host=&#8217;server ip&#8217;;<br />
     change master to master_user=&#8217;username&#8217;;         <br />
     change master to master_password=&#8217;userpassword&#8217;;               <br />
     change master to master_log_file=&#8217;mysql-bin&#8217;;     <br />
     change master to master_log_pos=561;  (by command show master status;  in master )        </span></span></span></span></span></span></span></span></span></span></p></blockquote>
<p><span><span><span><span><span><span style="text-decoration: underline;"><span style="text-decoration: none;"><span><span><span><span>to update data from master by using the command </span></span></span></span></span></span></span></span></span></span></span></p>
<blockquote><p><span><span><span><span><span><span style="text-decoration: underline;"><span style="text-decoration: none;"><span><span><span><span><span>load data from master;</span></span></span></span></span></span></span></span></span></span></span></span></p></blockquote>
<p><span><span><span><span><span><span style="text-decoration: underline;"><span style="text-decoration: none;"><span><span><span><span><span><br />
</span></span></span></span></span></span></span></span></span></span></span></span></p>
<p><span><span><br />
</span></span></p>
<p><span><br />
</span></p>
]]></content:encoded>
			<wfw:commentRss>http://linuxbuddies.com/2008/12/27/mysql-replication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>APC mem Cache installation</title>
		<link>http://linuxbuddies.com/2008/12/23/apc-mem-cache-installation/</link>
		<comments>http://linuxbuddies.com/2008/12/23/apc-mem-cache-installation/#comments</comments>
		<pubDate>Tue, 23 Dec 2008 13:27:24 +0000</pubDate>
		<dc:creator>Riyesh</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[APC]]></category>

		<guid isPermaLink="false">http://linuxbuddies.com/?p=209</guid>
		<description><![CDATA[   APC MM cache is an most commonly used php accelerators 

Please follow the steps to install APC mem Cache


1. cd /usr/local/src
2. wget http://pecl.php.net/get/APC-3.0.14.tgz
3. tar -xzvf APC-3.0.14.tgz
4. cd APC-3.0.14

 
 checking  the location of phpize and php-config paths

finding the  Phpize binary location


whereis phpize

output looks like:


phpize: /usr/bin/phpize /usr/local/bin/phpize


whereis php-config

output looks like:


php-config: /usr/bin/php-config /usr/local/bin/php-config

5. execute the command ...]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-210" title="php_snow_2008" src="http://linuxbuddies.com/wp-content/uploads/2008/12/php_snow_2008.gif" alt="php_snow_2008" width="120" height="64" />   APC MM cache is an most commonly used php accelerators </p>
<p class="MsoNormal"><span><br />
Please follow the steps to install APC mem Cache</span></p>
<blockquote>
<p class="MsoNormal"><span></p>
<p>1. cd /usr/local/src<br />
2. wget </span><a href="http://pecl.php.net/get/APC-3.0.14.tgz" target="_blank"><span>http://pecl.php.net/get/APC-3.0.14.tgz</span></a><span><br />
3. tar -xzvf APC-3.0.14.tgz<br />
4. cd APC-3.0.14</span></p></blockquote>
<p class="MsoNormal"><span><br />
 <br />
 checking  the location of phpize and php-config paths</span></p>
<p class="MsoNormal"><span></p>
<p>finding the  Phpize binary location</span></p>
<blockquote>
<p class="MsoNormal"><span></p>
<p>whereis phpize</span></p></blockquote>
<p class="MsoNormal"><span></p>
<p>output looks like:</span></p>
<blockquote>
<p class="MsoNormal"><span></p>
<p>phpize: /usr/bin/phpize /usr/local/bin/phpize</span></p></blockquote>
<blockquote>
<p class="MsoNormal"><span></p>
<p>whereis php-config</span></p></blockquote>
<p class="MsoNormal"><span></p>
<p>output looks like:</span></p>
<blockquote>
<p class="MsoNormal"><span></p>
<p>php-config: /usr/bin/php-config /usr/local/bin/php-config</span></p></blockquote>
<p class="MsoNormal"><span></p>
<p>5. execute the command to create the module</span></p>
<blockquote>
<p class="MsoNormal"><span><br />
/usr/bin/phpize  ( or the path you got )</span></p></blockquote>
<p class="MsoNormal"><span></p>
<p>6.  compile  the APC by running following command </span></p>
<blockquote>
<p class="MsoNormal"><span><br />
   ./configure &#8211;enable-apc &#8211;enable-apc-mmap &#8211;with-apxs=/usr/local/apache/bin/apxs    &#8211;with-php-config=/usr/bin/php-config<br />
  make<br />
 make test<br />
 make install </span></p></blockquote>
<p class="MsoNormal"><span><br />
Take note of where it copies apc.so file i.e.</span></p>
<blockquote>
<p class="MsoNormal"><span></p>
<p>/usr/lib/php/extensions/no-debug-non-zts-20020429/apc.so</span></p></blockquote>
<p class="MsoNormal"><span></p>
<p>10. Now locate php.ini type:</span></p>
<blockquote>
<p class="MsoNormal"><span><br />
     php -i | grep php.ini </span></p></blockquote>
<p class="MsoNormal"><span><br />
11. Edit php.ini </span></p>
<p class="MsoNormal"><span><br />
 Add these entries in the dynamic module section ( please note the extention path can be varied )  </span></p>
<blockquote>
<p class="MsoNormal"><span></p>
<p>extension=&#8221;/usr/lib/php/extensions/no-debug-non-zts-20020429/apc.so&#8221;<br />
apc.shm_size = 32 </span></p></blockquote>
<p class="MsoNormal"><span></p>
<p>restart webserver . Check the php info page you can see the apc module listed .</span></p>
]]></content:encoded>
			<wfw:commentRss>http://linuxbuddies.com/2008/12/23/apc-mem-cache-installation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FFmpeg Installation</title>
		<link>http://linuxbuddies.com/2008/12/23/ffmpeg-installation/</link>
		<comments>http://linuxbuddies.com/2008/12/23/ffmpeg-installation/#comments</comments>
		<pubDate>Tue, 23 Dec 2008 12:40:06 +0000</pubDate>
		<dc:creator>Riyesh</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[ffmpeg]]></category>

		<guid isPermaLink="false">http://linuxbuddies.com/?p=192</guid>
		<description><![CDATA[


 1. Create a directory to do our work 


mkdir ~/ffmpeg
cd ~/ffmpeg

2. Get all the source files


wget http://www3.mplayerhq.hu/MPlayer/releases/codecs/essential-20061022.tar.bz2
wget http://rubyforge.org/frs/download.php/9225/flvtool2_1.0.5_rc6.tgz
wget http://easynews.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz
wget http://superb-west.dl.sourceforge.net/sourceforge/ffmpeg-php/ffmpeg-php-0.5.0.tbz2
wget http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz
wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.1.2.tar.gz

3. Extract all the source files


bunzip2 essential-20061022.tar.bz2; tar xvf essential-20061022.tar
tar zxvf flvtool2_1.0.5_rc6.tgz
tar zxvf lame-3.97.tar.gz
bunzip2 ffmpeg-php-0.5.0.tbz2; tar xvf ffmpeg-php-0.5.0.tar
tar zxvf libogg-1.1.3.tar.gz
tar zxvf libvorbis-1.1.2.tar.gz

4. Create the codecs directory &#38; import them


mkdir /usr/local/lib/codecs/
mv ...]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-thumbnail wp-image-193" title="ffmpeg_mac" src="http://linuxbuddies.com/wp-content/uploads/2008/12/ffmpeg_mac-150x150.jpg" alt="ffmpeg_mac" width="150" height="150" /></p>
<p class="MsoNormal"><span><br />
</span></p>
<p class="MsoNormal"><span> 1. Create a directory to do our work </span></p>
<blockquote>
<p class="MsoNormal"><span><br />
mkdir ~/ffmpeg<br />
cd ~/ffmpeg</span></p></blockquote>
<p class="MsoNormal"><span></p>
<p>2. Get all the source files</span></p>
<blockquote>
<p class="MsoNormal"><span><br />
wget </span><a href="http://www3.mplayerhq.hu/MPlayer/releases/codecs/essential-20061022.tar.bz2" target="_blank"><span>http://www3.mplayerhq.hu/MPlayer/releases/codecs/essential-20061022.tar.bz2</span></a><span><br />
wget </span><a href="http://rubyforge.org/frs/download.php/9225/flvtool2_1.0.5_rc6.tgz" target="_blank"><span>http://rubyforge.org/frs/download.php/9225/flvtool2_1.0.5_rc6.tgz</span></a><span><br />
wget </span><a href="http://easynews.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz" target="_blank"><span>http://easynews.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz</span></a><span><br />
wget </span><a href="http://superb-west.dl.sourceforge.net/sourceforge/ffmpeg-php/ffmpeg-php-0.5.0.tbz2" target="_blank"><span>http://superb-west.dl.sourceforge.net/sourceforge/ffmpeg-php/ffmpeg-php-0.5.0.tbz2</span></a><span><br />
wget </span><a href="http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz" target="_blank"><span>http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz</span></a><span><br />
wget </span><a href="http://downloads.xiph.org/releases/vorbis/libvorbis-1.1.2.tar.gz" target="_blank"><span>http://downloads.xiph.org/releases/vorbis/libvorbis-1.1.2.tar.gz</span></a></p></blockquote>
<p class="MsoNormal"><a href="http://downloads.xiph.org/releases/vorbis/libvorbis-1.1.2.tar.gz" target="_blank"></a><span></p>
<p>3. Extract all the source files</span></p>
<blockquote>
<p class="MsoNormal"><span><br />
bunzip2 essential-20061022.tar.bz2; tar xvf essential-20061022.tar<br />
tar zxvf flvtool2_1.0.5_rc6.tgz<br />
tar zxvf lame-3.97.tar.gz<br />
bunzip2 ffmpeg-php-0.5.0.tbz2; tar xvf ffmpeg-php-0.5.0.tar<br />
tar zxvf libogg-1.1.3.tar.gz<br />
tar zxvf libvorbis-1.1.2.tar.gz</span></p></blockquote>
<p class="MsoNormal"><span></p>
<p>4. Create the codecs directory &amp; import them</span></p>
<blockquote>
<p class="MsoNormal"><span><br />
mkdir /usr/local/lib/codecs/<br />
mv essential-20061022/* /usr/local/lib/codecs/<br />
chmod -R 755 /usr/local/lib/codecs/</span></p></blockquote>
<p class="MsoNormal"><span></p>
<p>5. Install SVN/Ruby (Depends on OS, this is for RHEL/CentOS)</span></p>
<blockquote>
<p class="MsoNormal"><span><br />
yum install subversion<br />
yum install ruby<br />
yum install ncurses-devel</span></p></blockquote>
<p class="MsoNormal"><span></p>
<p>6. Get the latest FFMPEG/MPlayer from the subversion</span></p>
<blockquote>
<p class="MsoNormal"><span><br />
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg<br />
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer</span></p></blockquote>
<p class="MsoNormal"><span></p>
<p>7. Compile LAME</span></p>
<blockquote>
<p class="MsoNormal"><span><br />
cd ~/ffmpeg/lame-3.97<br />
./configure<br />
make<br />
make install</span></p></blockquote>
<p class="MsoNormal"><span></p>
<p>8. Compile libOGG</span></p>
<blockquote>
<p class="MsoNormal"><span><br />
cd ~/ffmpeg/libogg-1.1.3<br />
./configure<br />
make<br />
make install</span></p></blockquote>
<p class="MsoNormal"><span></p>
<p>9. Compile libVorbis</span></p>
<blockquote>
<p class="MsoNormal"><span><br />
cd ~/ffmpeg/libvorbis-1.1.2<br />
./configure<br />
make<br />
make install</span></p></blockquote>
<p class="MsoNormal"><span></p>
<p>10. Compile flvtool2</span></p>
<blockquote>
<p class="MsoNormal"><span><br />
cd ~/ffmpeg/flvtool2_1.0.5_rc6<br />
ruby setup.rb config<br />
ruby setup.rb setup<br />
ruby setup.rb install</span></p></blockquote>
<p class="MsoNormal"><span></p>
<p>11. Compile MPlayer</span></p>
<blockquote>
<p class="MsoNormal"><span><br />
cd ~/ffmpeg/mplayer<br />
./configure<br />
make<br />
make install</span></p></blockquote>
<p class="MsoNormal"><span></p>
<p>12. Compile FFMPEG</span></p>
<blockquote>
<p class="MsoNormal"><span><br />
cd ~/ffmpeg/ffmpeg<br />
./configure &#8211;enable-libmp3lame &#8211;enable-libogg &#8211;enable-libvorbis &#8211;disable-mmx &#8211;enable-shared<br />
echo &#8216;#define HAVE_LRINTF 1&#8242; &gt;&gt; config.h<br />
make<br />
make install</span></p></blockquote>
<p class="MsoNormal"><span></p>
<p>13. Finalize the codec setups</span></p>
<blockquote>
<p class="MsoNormal"><span><br />
ln -s /usr/local/lib/libavformat.so.50 /usr/lib/libavformat.so.50<br />
ln -s /usr/local/lib/libavcodec.so.51 /usr/lib/libavcodec.so.51<br />
ln -s /usr/local/lib/libavutil.so.49 /usr/lib/libavutil.so.49<br />
ln -s /usr/local/lib/libmp3lame.so.0 /usr/lib/libmp3lame.so.0<br />
ln -s /usr/local/lib/libavformat.so.51 /usr/lib/libavformat.so.51</span></p></blockquote>
<p class="MsoNormal"><span></p>
<p>14. Compile FFMPEG-PHP</span></p>
<blockquote>
<p class="MsoNormal"><span><br />
cd ~/ffmpeg/ffmpeg-php-0.5.0<br />
phpize<br />
./configure<br />
make<br />
make install</span></p></blockquote>
<p class="MsoNormal"><span></p>
<p>15. Install FFMPEG-PHP (make sure the php.ini path is correct.)</span></p>
<blockquote>
<p class="MsoNormal"><span><br />
echo &#8216;extension=/usr/local/lib/php/extensions/ no-debug-non-zts-20020429/ffmpeg.so&#8217; &gt;&gt; /usr/local/Zend/etc/php.ini</span></p></blockquote>
<p class="MsoNormal"><span></p>
<p>16. Restart Apache to load FFMPEG-PHP (Depends on OS, this is for RHEL/CentOS)</span></p>
<blockquote>
<p class="MsoNormal"><span><br />
service httpd restart</span></p></blockquote>
<p class="MsoNormal"><span></p>
<p>17. Verify if it works</span></p>
<blockquote>
<p class="MsoNormal"><span><br />
php -r &#8216;phpinfo();&#8217; | grep ffmpeg</span></p></blockquote>
<p class="MsoNormal"><span></p>
<p>If you get a few lines such as<br />
ffmpeg<br />
ffmpeg support (ffmpeg-php) =&gt; enabled<br />
ffmpeg-php version =&gt; 0.5.0<br />
ffmpeg.allow_persistent =&gt; 0 =&gt; 0</p>
<p>Then everything is installed and working. FFMPEG, FFMPEG-PHP, MPlayer, MEncoder, flv2tool, LAME MP3 encoder &amp; libOGG.<br />
 <span><!--[if gte vml 1]><v:shape id="Picture_x0020_9"  o:spid="_x0000_i1026" type="#_x0000_t75" alt="Roll Eyes" style='width:11.25pt;  height:11.25pt;visibility:visible;mso-wrap-style:square'> <v:imagedata src="file:///C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\msohtmlclip1\01\clip_image008.gif" mce_src="file:///C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\msohtmlclip1\01\clip_image008.gif"   o:title="Roll Eyes" /> </v:shape><![endif]--><img src="file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/msohtmlclip1/01/clip_image008.gif" border="0" alt="Roll Eyes" width="15" height="15" /></span></span></p>
<p class="MsoNormal"> </p>
]]></content:encoded>
			<wfw:commentRss>http://linuxbuddies.com/2008/12/23/ffmpeg-installation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache SSL certificate Creation</title>
		<link>http://linuxbuddies.com/2008/12/22/apache-ssl-certificate-creation/</link>
		<comments>http://linuxbuddies.com/2008/12/22/apache-ssl-certificate-creation/#comments</comments>
		<pubDate>Mon, 22 Dec 2008 05:39:51 +0000</pubDate>
		<dc:creator>Riyesh</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Certificate Creation]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[SSL]]></category>

		<guid isPermaLink="false">http://linuxbuddies.com/?p=74</guid>
		<description><![CDATA[Hi.. Guys
Please follow the steps to install SSL certificate on Apache
# cd /usr/local/apache
# mkdir cert
# cd cert
1. Generate your own Certificate Authority (CA)
# openssl genrsa -out ca.key 4096
# openssl req -new -x509 -days 365 -key ca.key -out ca.crt
2.Generate a server key and request for signing (csr)
# openssl genrsa -out server.key ...]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-thumbnail wp-image-75" title="ssl" src="http://linuxbuddies.com/wp-content/uploads/2008/12/ssl-150x150.jpg" alt="ssl" width="150" height="150" />Hi.. Guys</p>
<p>Please follow the steps to install SSL certificate on Apache</p>
<blockquote><p><span># cd /usr/local/apache</span></p>
<p><span># mkdir cert<br />
# cd cert</span></p></blockquote>
<p>1. Generate your own Certificate Authority (CA)</p>
<blockquote><p><span># openssl genrsa -out ca.key 4096<br />
# openssl req -new -x509 -days 365 -key ca.key -out ca.crt</span></p></blockquote>
<p>2.Generate a server key and request for signing (csr)</p>
<blockquote><p><span># openssl genrsa -out server.key 4096<br />
# openssl req -new -key server.key -out server.csr</span></p></blockquote>
<p>3.Sign the certificate signing request (csr) with the self-created certificate authority (CA) that you made earlier</p>
<blockquote><p><span># openssl x509 -req -days 365 -in server.csr -CA ca.crt -CAkey ca.key -set_serial 01 -out server.crt</span></p></blockquote>
<p>Edit /usr/local/apache/conf/httpd.conf</p>
<blockquote><p><span>ServerName xxx.xxx.xxx.xxx:443<br />
Listen xxx.xxx.xxx.xxx:443<br />
LoadModule ssl_module modules/mod_ssl.so</span></p>
<p><span>SSLEngine on<br />
SSLCertificateFile /usr/local/apache/cert/server.crt<br />
SSLCertificateKeyFile /usr/local/apache/cert/server.key</span></p></blockquote>
<blockquote><p><span># /usr/local/apache/bin/apachectl restart</span></p></blockquote>
<p>To do the same with a Passphrase follow below</p>
<blockquote><p><span># cd /usr/local/apache<br />
# mkdir cert<br />
# cd cert<br />
# openssl genrsa -des3 -out ca.key 4096<br />
# openssl req -new -x509 -days 365 -key ca.key -out ca.crt<br />
# openssl genrsa -des3 -out server.key 4096<br />
# openssl req -new -key server.key -out server.csr<br />
# openssl x509 -req -days 365 -in server.csr -CA ca.crt -CAkey ca.key -set_serial 01 -out server.crt</span></p></blockquote>
<p>Rest of the configuration remains same</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxbuddies.com/2008/12/22/apache-ssl-certificate-creation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Autoresponder Plugin in Squirrelmail</title>
		<link>http://linuxbuddies.com/2008/12/22/autoresponder-plugin-in-squirrelmail/</link>
		<comments>http://linuxbuddies.com/2008/12/22/autoresponder-plugin-in-squirrelmail/#comments</comments>
		<pubDate>Mon, 22 Dec 2008 05:38:31 +0000</pubDate>
		<dc:creator>Riyesh</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[autoresponder]]></category>
		<category><![CDATA[squirrelmail]]></category>
		<category><![CDATA[webmail]]></category>

		<guid isPermaLink="false">http://linuxbuddies.com/?p=71</guid>
		<description><![CDATA[1.Download the compatibility plugin and Local Auto Responder plugin from http://squirrelmail.org
2.Extract it to the Squirrelmail &#8211; plugins directory
cd /var/www/html/squirrelmail/plugins
# tar xzf compatibility-2.0.9-1.0.tar.gz
# cd compatibility
3.Patch it to your squirrelmail version
# patch -p0 &#60; patches/compatibility_patch-1.4.11.diff
patching file ../../functions/strings.php
4.Configure the Squirrelmail to include the plugin
# cd ../../config
# ./conf.pl
5.Extract Local Auto Responder Plugin
# cd ../plugins/
# ...]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-thumbnail wp-image-72" title="squirrelmail" src="http://linuxbuddies.com/wp-content/uploads/2008/12/squirrelmail-150x150.jpg" alt="squirrelmail" width="150" height="150" />1.Download the compatibility plugin and Local Auto Responder plugin from http://squirrelmail.org</p>
<p>2.Extract it to the Squirrelmail &#8211; plugins directory</p>
<blockquote><p>cd /var/www/html/squirrelmail/plugins</p>
<p># tar xzf compatibility-2.0.9-1.0.tar.gz<br />
# cd compatibility</p></blockquote>
<p>3.Patch it to your squirrelmail version</p>
<blockquote><p># patch -p0 &lt; patches/compatibility_patch-1.4.11.diff<br />
<span>patching file ../../functions/strings.php</span></p></blockquote>
<p>4.Configure the Squirrelmail to include the plugin</p>
<blockquote><p># cd ../../config<br />
# ./conf.pl</p></blockquote>
<p>5.Extract Local Auto Responder Plugin</p>
<blockquote><p># cd ../plugins/<br />
# tar xzf local_autorespond_forward-3.0-1.4.0.tar.gz<br />
# cd local_autorespond_forward</p></blockquote>
<p>6.Compile suid_backend module</p>
<blockquote><p># cd suid_backend/<br />
# ./configure –enable-webuser=nobody</p></blockquote>
<p>Here my Apache is running as user “nobody”.That user should have the permission to play<br />
with the directories under this.</p>
<blockquote><p># make<br />
# make install</p></blockquote>
<p>7.Copy the sample config.php</p>
<blockquote><p># cd ..<br />
# cp config.sample.php config.php</p></blockquote>
<p>8.Edit the config.php to use “suid” instead of “ftp” for Maildir and “.forward” files</p>
<p>edit <strong>config.php</strong></p>
<blockquote><p>$laf_backend = ’suid’;</p></blockquote>
<p>9.Configure the Squirrelmail to include the plugin</p>
<blockquote><p># cd ../../config<br />
# ./conf.pl</p></blockquote>
<p>10.Verify the Squirrelmail’s ATTACHMENT DIR and DATA DIR. Verify the permission also</p>
<p>edit <strong>/var/www/html/squirrelmail/config/config.php</strong></p>
<blockquote><p><strong><br />
</strong></p></blockquote>
<blockquote><p>$attachment_dir = ‘/var/local/squirrelmail/attach/’;</p></blockquote>
<p>11.Create it if doesn’t exist</p>
<blockquote><p># mkdir /var/local/squirrelmail/attach<br />
# chown nobody.nobody /var/local/squirrelmail/attach<br />
# chmod 755 /var/local/squirrelmail/attach</p></blockquote>
<p>Finish…… you can go now…</p>
<p>Thanks,</p>
<p>Riyesh</p>
<p>Linux buddy</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxbuddies.com/2008/12/22/autoresponder-plugin-in-squirrelmail/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to disable directory browsing in Apache</title>
		<link>http://linuxbuddies.com/2008/12/22/how-to-disable-directory-browsing-in-apache/</link>
		<comments>http://linuxbuddies.com/2008/12/22/how-to-disable-directory-browsing-in-apache/#comments</comments>
		<pubDate>Mon, 22 Dec 2008 05:29:38 +0000</pubDate>
		<dc:creator>Riyesh</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[directory browsing]]></category>
		<category><![CDATA[disable]]></category>

		<guid isPermaLink="false">http://linuxbuddies.com/?p=60</guid>
		<description><![CDATA[One of the “must do’s” on setting a secure apache webserver environment is to disable directory browsing. As a default Apache will be compiled with this option enabled, but its always a good idea to get rid of this setting unless its really necessary.
If you are on an RPM installation ...]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-thumbnail wp-image-59" title="apache_1" src="http://linuxbuddies.com/wp-content/uploads/2008/12/apache_1-150x150.jpg" alt="apache_1" width="150" height="150" />One of the “must do’s” on setting a secure apache webserver environment is to disable directory browsing. As a default Apache will be compiled with this option enabled, but its always a good idea to get rid of this setting unless its really necessary.</p>
<p>If you are on an RPM installation of Apache you will find the apache configuration file probably here:</p>
<blockquote><p><strong></strong><strong><span>/etc/httpd/conf/httpd.conf</span></strong></p></blockquote>
<p>If you are using apache from the source tar balls probably you will find the configuration file here:</p>
<blockquote><p><span>/usr/local/apache/conf/httpd.conf</span></p></blockquote>
<p>Edit the httpd.conf file and scroll until you find a line like this:</p>
<blockquote><p><span>Options All Indexes FollowSymLinks MultiViews</span></p></blockquote>
<p>To disable directory browsing carefully remove the line that says: Indexes and leave the line like this:</p>
<blockquote><p><span>Options All FollowSymLinks MultiViews</span></p></blockquote>
<p>Restart your apache webserver and thats it</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxbuddies.com/2008/12/22/how-to-disable-directory-browsing-in-apache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
