<?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>PRESOON.COM &#187; Apache</title>
	<atom:link href="http://presoon.com/blog/category/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://presoon.com/blog</link>
	<description></description>
	<lastBuildDate>Sat, 20 Mar 2010 03:59:50 +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>How to install ASP.NET with Mysql in Linux server (cPanel)</title>
		<link>http://presoon.com/blog/2009/07/02/aspnet-with-mysql-in-linux-server-cpanel/</link>
		<comments>http://presoon.com/blog/2009/07/02/aspnet-with-mysql-in-linux-server-cpanel/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 03:27:24 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Cpanel]]></category>

		<guid isPermaLink="false">http://presoon.com/blog/?p=98</guid>
		<description><![CDATA[Use ASP.NET with Mysql]]></description>
			<content:encoded><![CDATA[<p>You should enable mod_mono in easyapache to enable ASP.NET. However, for using Mysql database with ASP.NET, you need to download and install a connector from Mysql site.<br />
The one you need is <a href="http://dev.mysql.com/get/Downloads/Connector-Net/mysql-connector-net-5.2.3-noinstall.zip/from/http://www.mirrorservice.org/sites/ftp.mysql.com/">Windows Binaries, no installer (ZIP)</a>.</p>
<p>Installation</p>
<pre><code>cd /usr/local/src/
mkdir asp-connector
cd asp-connector
wget <a href="http://dev.mysql.com/get/Downloads/Connector-Net/mysql-connector-net-5.2.3-noinstall.zip/from/http://www.mirrorservice.org/sites/ftp.mysql.com/">Windows Binaries, no installer (ZIP)</a>
/opt/mono/bin/gacutil -i  /usr/local/src/asp-connector/bin/MySql.Data.dll</code></pre>
<p><strong>Most of you forget the next step and the Mysql connector won&#8217;t work.</strong></p>
<pre><code>cd /opt/mono/lib/mono/gac/MySql.Data
cd 5.2.3.0__xxxxxxxxxx/
chmod 755 MySql.Data.dll</code></pre>
<p>Restart Apache</p>
<pre><code>/etc/rc.d/init.d/httpd restart</code></pre>
<p>Now you should be able to connect to mysql using .aspx scripts</p>
<p>Here is a custom script to check the working.<br />
First Create a mysql database first (using command line)</p>
<pre><code>$ mysql -u root -p

mysql&gt; CREATE DATABASE asptest;
Query OK, 1 row affected (0.10 sec)

mysql&gt; USE asptest;
Database changed

mysql&gt; CREATE TABLE testtable ( id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(255) );
Query OK, 0 rows affected (0.09 sec)

mysql&gt; INSERT INTO testtable VALUES(null,'Fame');
Query OK, 1 row affected (0.00 sec)

mysql&gt; INSERT INTO testtable VALUES(null,'Clean');
Query OK, 1 row affected (0.00 sec)

mysql&gt; SELECT * FROM testtable;
+----+----------+
| id | name |
+----+----------+
| 1 | Fame |
| 2 | Clean |
+----+----------+
2 rows in set (0.00 sec)

mysql&gt; GRANT SELECT, INSERT, UPDATE, DELETE ON asptest.* TO asptest@localhost IDENTIFIED BY 'nogesspassword';
Query OK, 0 rows affected (0.12 sec)

mysql&gt; FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.13 sec)</code></pre>
<p>Lets go to the script<br />
Here is it. It will display the contents of the database.</p>
<p>First, create a file called test.aspx in your web directory<br />
Add this code and save it.</p>
<pre><code>&lt;%@ Page Language="C#" %&gt;
&lt;%@ Import Namespace="System.Data" %&gt;
&lt;%@ Import Namespace="MySql.Data.MySqlClient" %&gt;
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt;
  &lt;head&gt;
    &lt;title&gt;ASP test&lt;/title&gt;
    &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;

    &lt;script runat="server"&gt;
    private void Page_Load(Object sender, EventArgs e)
    {
       string connectionString = "Server=localhost;Database=asptest;User ID=asptest;Password=nogesspassword;Pooling=false;";
       MySqlConnection dbcon = new MySqlConnection(connectionString);
       dbcon.Open();

       MySqlDataAdapter adapter = new MySqlDataAdapter("SELECT * FROM testtable", dbcon);
       DataSet ds = new DataSet();
       adapter.Fill(ds, "result");

       dbcon.Close();
       dbcon = null;

       ArtistsControl.DataSource = ds.Tables["result"];
       ArtistsControl.DataBind();
    }
    &lt;/script&gt;

  &lt;/head&gt;

  &lt;body&gt;
    &lt;h1&gt;Artists&lt;/h1&gt;
    &lt;asp:DataGrid runat="server" id="ArtistsControl" /&gt;
  &lt;/body&gt;

&lt;/html&gt;</code>
</pre>
<p>Finally, you need a web.config file, in the same web directory where test.aspx . It should contain the following to enable the MySQL libraries to be loaded:</p>
<p>Add the following to web.config</p>
<pre><code>&lt;configuration&gt;
&lt;system.web&gt;
&lt;compilation&gt;
&lt;assemblies&gt;
&lt;add assembly="MySql.Data"/&gt;
&lt;/assemblies&gt;
&lt;/compilation&gt;
&lt;customErrors mode="Off"/&gt;
&lt;/system.web&gt;
&lt;/configuration&gt;</code></pre>
<p>Now try accessing the file test.aspx using http://domainname.com/test.aspx</p>
<p>If you need any help, please let me know.</p>
]]></content:encoded>
			<wfw:commentRss>http://presoon.com/blog/2009/07/02/aspnet-with-mysql-in-linux-server-cpanel/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Install PHP-MemCache Module On CentOS 5.0 + RHEL</title>
		<link>http://presoon.com/blog/2009/01/17/install-php-memcache-module-on-centos-50-rhel/</link>
		<comments>http://presoon.com/blog/2009/01/17/install-php-memcache-module-on-centos-50-rhel/#comments</comments>
		<pubDate>Sat, 17 Jan 2009 09:57:48 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[memcache]]></category>
		<category><![CDATA[pecl]]></category>

		<guid isPermaLink="false">http://presoon.com/blog/?p=74</guid>
		<description><![CDATA[Download
wget http://pecl.php.net/get/memcache-2.1.2.tgz
tar -zxf memcache-2.1.2.tgz
cd memcache-2.1.2
phpize &#038;&#038;
./configure &#8211;enable-memcache
make
make install 
This should create memcache.so in your extenstion directory (/usr/lib/php/modules)
If it is not done copy the file memcache.so to the default module directory.
locate your php.ini file
php -i&#124; grep php.ini
add the line
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;
extension=memcache.so
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;
Restart Apache
/etc/rc.d/init.d/httpd restart
check the module is working
php -i&#124; grep memcache.
should show something like
=============
memcache
memcache support => enabled
memcache.allow_failover => 1 [...]]]></description>
			<content:encoded><![CDATA[<p>Download</p>
<p>wget http://pecl.php.net/get/memcache-2.1.2.tgz<br />
tar -zxf memcache-2.1.2.tgz<br />
cd memcache-2.1.2</p>
<p>phpize &#038;&#038;<br />
./configure &#8211;enable-memcache<br />
make<br />
make install </p>
<p>This should create memcache.so in your extenstion directory (/usr/lib/php/modules)</p>
<p>If it is not done copy the file memcache.so to the default module directory.<br />
locate your php.ini file</p>
<p>php -i| grep php.ini</p>
<p>add the line</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
extension=memcache.so<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>Restart Apache</p>
<p>/etc/rc.d/init.d/httpd restart</p>
<p>check the module is working<br />
php -i| grep memcache.</p>
<p>should show something like</p>
<p>=============<br />
memcache<br />
memcache support => enabled<br />
memcache.allow_failover => 1 => 1<br />
memcache.chunk_size => 8192 => 8192<br />
memcache.default_port => 11211 => 11211<br />
memcache.max_failover_attempts => 20 => 20<br />
Registered save handlers => files user memcache<br />
OLDPWD => /usr/local/src/ezsmsupport/memcache-2.1.2<br />
=============</p>
<p>Also, you can find it in your phpinfo page.<br />
Thats all.</p>
]]></content:encoded>
			<wfw:commentRss>http://presoon.com/blog/2009/01/17/install-php-memcache-module-on-centos-50-rhel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>/usr/java/jdkX.X.X_Xbin/java: not found + Install Java on Linux servers</title>
		<link>http://presoon.com/blog/2008/10/19/usrjavajdkxxx_xbinjava-not-found-install-java-on-linux-servers/</link>
		<comments>http://presoon.com/blog/2008/10/19/usrjavajdkxxx_xbinjava-not-found-install-java-on-linux-servers/#comments</comments>
		<pubDate>Sun, 19 Oct 2008 14:50:06 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Centos]]></category>
		<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[java binary path]]></category>
		<category><![CDATA[JSDK]]></category>

		<guid isPermaLink="false">http://presoon.com/blog/?p=70</guid>
		<description><![CDATA[In some cases, the 3rd parts scripts in server requires java to be installed. It may not work properly if the binary of java installed in the server. You need to install JavaSDK
So we present here the installation of Java in Linux server.
Its as easy as you run upcp in a Cpanel server.
Download the installation [...]]]></description>
			<content:encoded><![CDATA[<p>In some cases, the 3rd parts scripts in server requires java to be installed. It may not work properly if the binary of java installed in the server. You need to install JavaSDK</p>
<p>So we present here the installation of Java in Linux server.</p>
<p>Its as easy as you run upcp in a Cpanel server.</p>
<p>Download the installation binary from Sun&#8217;s Java site</p>
<p>J2SE for Linux <span class="external free">http://java.sun.com/j2se/1.4.2/download.html.( Download J2SE SDK)</span></p>
<p>You may need to register at the site and then they will send you the download link. Download the non-rpm binary</p>
<p><em>cd /usr/local/src/ </em></p>
<p><em>wget thebinary</em></p>
<p><em>mv j2sdk-1_4_2_18-linux-i586.bin /usr/local/</em></p>
<p><em>cd /usr/local/</em></p>
<p><em>chmod 755 j2sdk-1_4_2_18-linux-i586.bin</em></p>
<p><em>./j2sdk-1_4_2_18-linux-i586.bin</em></p>
<p>Now setup the environment variables.</p>
<p><em>JAVA_HOME=/usr/local/j2sdk1.4.2_18</em></p>
<p><em>export JAVA_HOME</em></p>
<p>Also, you need to add these in the file /etc/profile.</p>
<p><em>JAVA_HOME=/usr/local/j2sdk1.4.2_18</em></p>
<p><em>export JAVA_HOME</em></p>
]]></content:encoded>
			<wfw:commentRss>http://presoon.com/blog/2008/10/19/usrjavajdkxxx_xbinjava-not-found-install-java-on-linux-servers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XCache Installation Linux Cpanel</title>
		<link>http://presoon.com/blog/2008/04/24/xcache-installation-linux-cpanel/</link>
		<comments>http://presoon.com/blog/2008/04/24/xcache-installation-linux-cpanel/#comments</comments>
		<pubDate>Thu, 24 Apr 2008 03:37:27 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[XCache]]></category>
		<category><![CDATA[Zend]]></category>

		<guid isPermaLink="false">http://presoon.com/blog/?p=27</guid>
		<description><![CDATA[1) Download 
==============================
 wget http://xcache.lighttpd.net/pub/Releases/1.2.1/xcache-1.2.1.tar.gz
 phpize
./configure &#8211;enable-xcache
make
make install
==============================
Find the php.ini file.
php -i&#124; grep php.ini
Edit the php.ini file
Add the line below.
==============================
Find other zend_extension  lines. Add the line below.
zend_extension = /usr/local/lib/php/extensions/no-debug-non-zts-20020429/xcache.so
==============================
Note the line  proper path &#8220;/usr/local/lib/php/extensions/no-debug-non-zts-20020429/ &#8221; is received at the end of make install. Replace with that path.
Go for Apache restart
Check your PHP info [...]]]></description>
			<content:encoded><![CDATA[<p>1) Download </p>
<p>==============================<br />
 wget http://xcache.lighttpd.net/pub/Releases/1.2.1/xcache-1.2.1.tar.gz<br />
 phpize<br />
./configure &#8211;enable-xcache<br />
make<br />
make install<br />
==============================</p>
<p>Find the php.ini file.</p>
<p>php -i| grep php.ini</p>
<p>Edit the php.ini file</p>
<p>Add the line below.<br />
==============================<br />
Find other zend_extension  lines. Add the line below.</p>
<p>zend_extension = /usr/local/lib/php/extensions/no-debug-non-zts-20020429/xcache.so<br />
==============================</p>
<p>Note the line  proper path &#8220;/usr/local/lib/php/extensions/no-debug-non-zts-20020429/ &#8221; is received at the end of make install. Replace with that path.</p>
<p>Go for Apache restart</p>
<p>Check your PHP info page</p>
]]></content:encoded>
			<wfw:commentRss>http://presoon.com/blog/2008/04/24/xcache-installation-linux-cpanel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to prevent DDos attacks</title>
		<link>http://presoon.com/blog/2008/04/22/how-to-prevent-ddos-attacks/</link>
		<comments>http://presoon.com/blog/2008/04/22/how-to-prevent-ddos-attacks/#comments</comments>
		<pubDate>Tue, 22 Apr 2008 09:18:54 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[DDos]]></category>
		<category><![CDATA[attack]]></category>
		<category><![CDATA[Denial of Service]]></category>
		<category><![CDATA[Distribute Denial of Service]]></category>
		<category><![CDATA[prevent DDos]]></category>

		<guid isPermaLink="false">http://presoon.com/blog/?p=19</guid>
		<description><![CDATA[Hello everyone&#8230;
Here I present some steps to prevent DDos attacks.
>>>>>>>>>Install/Configure APF firewall
>>>>>>>>>Install/Configure mod_evasive
>>>>>>>>>Install mod_security
>>>>>>>>>Blocking IPs maintaining more connections
>>>>>>>>>Optimizing the httpd.conf file 
Install/Configure APF firewall
===========================
cd /usr/local/src/
wget http://www.rfxnetworks.com/downloads/apf-current.tar.gz
tar -zxvf apf-current.tar.gz; cd apf-*
Step 2: Installation
Code:
sh ./install.sh
===========================
Install/Configure mod_evasive
===========================
Download the source
======================
wget http://www.zdziarski.com/projects/mod_evasive/mod_evasive_1.10.1.tar.gz
tar -xzvf mod_evasive_1.10.1.tar.gz
cd mod_evasive
======================
Compile in the mod_evasive apache module using apxs
======================
For Apache 2
/usr/local/apache/bin/apxs -i -a -c mod_evasive20.c
For Apache 1.3
/usr/local/apache/bin/apxs [...]]]></description>
			<content:encoded><![CDATA[<p>Hello everyone&#8230;<br />
Here I present some steps to prevent DDos attacks.</p>
<p>>>>>>>>>>Install/Configure APF firewall<br />
>>>>>>>>>Install/Configure mod_evasive<br />
>>>>>>>>>Install mod_security<br />
>>>>>>>>>Blocking IPs maintaining more connections<br />
>>>>>>>>>Optimizing the httpd.conf file </p>
<p><strong>Install/Configure APF firewall</strong></p>
<p>===========================<br />
cd /usr/local/src/<br />
wget http://www.rfxnetworks.com/downloads/apf-current.tar.gz<br />
tar -zxvf apf-current.tar.gz; cd apf-*</p>
<p>Step 2: Installation<br />
Code:</p>
<p>sh ./install.sh<br />
===========================</p>
<p><strong>Install/Configure mod_evasive</strong></p>
<p>===========================<br />
Download the source</p>
<p>======================<br />
wget http://www.zdziarski.com/projects/mod_evasive/mod_evasive_1.10.1.tar.gz<br />
tar -xzvf mod_evasive_1.10.1.tar.gz<br />
cd mod_evasive<br />
======================</p>
<p>Compile in the mod_evasive apache module using apxs</p>
<p>======================<br />
For Apache 2<br />
/usr/local/apache/bin/apxs -i -a -c mod_evasive20.c</p>
<p>For Apache 1.3<br />
/usr/local/apache/bin/apxs -i -a -c mod_evasive.c<br />
======================</p>
<p>If the apxs path is not /usr/local/apache/bin/apxs replace it with the appropriate path</p>
<p>Edit your httpd.conf /usr/local/apache/conf/httpd.conf</p>
<p>Add the lines below.</p>
<p>======================<br />
DOSHashTableSize 3097<br />
DOSPageCount 2<br />
DOSSiteCount 50<br />
DOSPageInterval 1<br />
DOSSiteInterval 1<br />
DOSBlockingPeriod 10<br />
DOSEmailNotify user@yourdomain.com<br />
======================</p>
<p>/etc/init.d/httpd restart</p>
<p>You can try another values for the above and obtain the best setting.<br />
In some cases mod_evasive also blocks legitimate user IPs.<br />
===========================</p>
<p><strong>Install mod_security</strong></p>
<p>Install this module via WHM</p>
<p>      WHM >> cPanel >> Addon Modules >> Select &#8220;modsecurity &#8221; >>save</p>
<p><strong>Blocking IPs maintaining more connections</strong></p>
<p>===========================<br />
You can check out the number of http requests coming to your server and the<br />
ip&#8217;s from where it is coming by executing the command :</p>
<p>============================================<br />
netstat -plan | grep :80 | awk &#8216;{print $5}&#8217; | cut -d: -f 1 | sort | uniq -c | sort -n<br />
============================================</p>
<p>If you feel like there are inordinate amount of requests from a single ip, you<br />
can block it in your APF using this command :</p>
<p>=====<br />
apf -d IP<br />
=====</p>
<p>Using iptables, you can block the ip with :<br />
====================<br />
iptables -A INPUT -s <ip> -j DROP<br />
====================</p>
<p>You can check out the ip to which maximum number of http requests are coming<br />
with the following command :</p>
<p>==================<br />
[root@server ~]# netstat -plan|grep :80|awk {&#8216;print $4&#8242;}|cut -d: -f 1|sort|uniq -c|sort -n<br />
==================<br />
===========================</p>
<p><strong>Optimizing the httpd.conf file </strong></p>
<p>vi /usr/local/apache/conf/httpd.conf</p>
<p>Change the values as follows.</p>
<p>MaxKeepAliveRequests 50<br />
KeepAliveTimeout 60 </p>
<p>Also edit the following options.</p>
<p>Timeout<br />
KeepAliv<br />
MinSpareServers<br />
MaxSpareServers<br />
MaxClients</p>
<p>Reduce the timeout, Maxclients etc.</p>
]]></content:encoded>
			<wfw:commentRss>http://presoon.com/blog/2008/04/22/how-to-prevent-ddos-attacks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Install mod_evasive</title>
		<link>http://presoon.com/blog/2008/04/22/how-to-install-mod_evasive/</link>
		<comments>http://presoon.com/blog/2008/04/22/how-to-install-mod_evasive/#comments</comments>
		<pubDate>Tue, 22 Apr 2008 09:05:03 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[DDos]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[Denial of Service]]></category>
		<category><![CDATA[Distribute Denial of Service]]></category>
		<category><![CDATA[mod_evasive]]></category>

		<guid isPermaLink="false">http://presoon.com/blog/?p=18</guid>
		<description><![CDATA[Download the source
======================
wget http://www.zdziarski.com/projects/mod_evasive/mod_evasive_1.10.1.tar.gz
tar -xzvf mod_evasive_1.10.1.tar.gz
cd mod_evasive
======================
Compile  in the mod_evasive apache module using apxs
======================
For Apache 2
/usr/local/apache/bin/apxs -i -a -c mod_evasive20.c
For Apache 1.3
 /usr/local/apache/bin/apxs -i -a -c mod_evasive.c
======================
If the apxs path is not /usr/local/apache/bin/apxs replace it with the appropriate path
Edit your httpd.conf  /usr/local/apache/conf/httpd.conf
Add the lines below.
======================
DOSHashTableSize 3097
DOSPageCount 2
DOSSiteCount 50
DOSPageInterval 1
DOSSiteInterval 1
DOSBlockingPeriod 10
DOSEmailNotify user@yourdomain.com
======================
/etc/init.d/httpd restart
You [...]]]></description>
			<content:encoded><![CDATA[<p>Download the source</p>
<p>======================<br />
wget http://www.zdziarski.com/projects/mod_evasive/mod_evasive_1.10.1.tar.gz<br />
tar -xzvf mod_evasive_1.10.1.tar.gz<br />
cd mod_evasive<br />
======================</p>
<p>Compile  in the mod_evasive apache module using apxs</p>
<p>======================<br />
For Apache 2<br />
/usr/local/apache/bin/apxs -i -a -c mod_evasive20.c</p>
<p>For Apache 1.3<br />
 /usr/local/apache/bin/apxs -i -a -c mod_evasive.c<br />
======================</p>
<p>If the apxs path is not /usr/local/apache/bin/apxs replace it with the appropriate path</p>
<p>Edit your httpd.conf  /usr/local/apache/conf/httpd.conf</p>
<p>Add the lines below.</p>
<p>======================<br />
DOSHashTableSize 3097<br />
DOSPageCount 2<br />
DOSSiteCount 50<br />
DOSPageInterval 1<br />
DOSSiteInterval 1<br />
DOSBlockingPeriod 10<br />
DOSEmailNotify user@yourdomain.com<br />
======================</p>
<p>/etc/init.d/httpd restart</p>
<p>You can try another values for the above and obtain the best setting.<br />
In some cases mod_evasive also blocks legitimate user IPs.</p>
<p>Install and enjoy&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://presoon.com/blog/2008/04/22/how-to-install-mod_evasive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache failed to start  &#8220;Document config file error&#8221;  Plesk server</title>
		<link>http://presoon.com/blog/2008/04/19/apache-failed-to-start-document-config-file-error-plesk-server/</link>
		<comments>http://presoon.com/blog/2008/04/19/apache-failed-to-start-document-config-file-error-plesk-server/#comments</comments>
		<pubDate>Sat, 19 Apr 2008 10:21:25 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Plesk]]></category>
		<category><![CDATA[Webserver]]></category>

		<guid isPermaLink="false">http://presoon.com/blog/?p=17</guid>
		<description><![CDATA[When starting Apache the error is reported.
[~]/etc/init.d/httpd start
Starting httpd: httpd: could not open document config file /var/www/vhosts/domain.com/conf/httpd.include
[FAILED]
It is due to &#8220;httpd.include&#8221; file not found for the domain  
To regenerate the &#8220;httpd.include&#8221; file using the command given below. 
/usr/local/psa/admin/sbin/websrvmng &#8211;reconfigure-vhost &#8211;vhost-name=domain.com
Now you can start the Apache without any problem.
]]></description>
			<content:encoded><![CDATA[<p>When starting Apache the error is reported.</p>
<p>[~]/etc/init.d/httpd start<br />
Starting httpd: httpd: could not open document config file /var/www/vhosts/domain.com/conf/httpd.include<br />
[FAILED]</p>
<p>It is due to &#8220;httpd.include&#8221; file not found for the domain  </p>
<p>To regenerate the &#8220;httpd.include&#8221; file using the command given below. </p>
<p>/usr/local/psa/admin/sbin/websrvmng &#8211;reconfigure-vhost &#8211;vhost-name=domain.com</p>
<p>Now you can start the Apache without any problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://presoon.com/blog/2008/04/19/apache-failed-to-start-document-config-file-error-plesk-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP mail error. Not able to send mail using script     &#8211; Cpanel server.</title>
		<link>http://presoon.com/blog/2008/04/15/php-mail-error-not-able-to-send-mail-using-script-cpanel-server/</link>
		<comments>http://presoon.com/blog/2008/04/15/php-mail-error-not-able-to-send-mail-using-script-cpanel-server/#comments</comments>
		<pubDate>Tue, 15 Apr 2008 11:14:09 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[exim]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://presoon.com/blog/?p=12</guid>
		<description><![CDATA[Follow the steps below to sort out the problem.
Check whether mail server is able to send mail.
Next is to
Check in WHM tweak setting whether nobody is allowed to send mail.
================
WHM > Tweak settings > Mail > Prevent &#8220;nobody&#8221; from sending out this mail.
disable it.
================
If it is disabled. Next is to repair Exim.
Backup the /etc/exim.conf and [...]]]></description>
			<content:encoded><![CDATA[<p>Follow the steps below to sort out the problem.</p>
<p>Check whether mail server is able to send mail.</p>
<p>Next is to<br />
Check in WHM tweak setting whether nobody is allowed to send mail.</p>
<p>================<br />
WHM > Tweak settings > Mail > Prevent &#8220;nobody&#8221; from sending out this mail.<br />
disable it.<br />
================</p>
<p>If it is disabled. Next is to repair Exim.</p>
<p>Backup the /etc/exim.conf and then repair exim</p>
<p>================<br />
/scripts/eximup &#8211;force<br />
================</p>
<p>Most probably the issue should be fixed by now.<br />
If not, the next step of troubleshooting is </p>
<p>Check the php.ini file.</p>
<p>locate your php.ini file.</p>
<p>================<br />
php -i | grep php.ini<br />
================</p>
<p>you  will get the location from above command.<br />
Open the file and find the directive    &#8220;disable_functions=&#8221;</p>
<p>Check whether mail() is included. if there, remove it and save.  Then go for an Apache restart</p>
<p>However, if all the above are OK and still not working.</p>
<p>Check whether mod_security is installed.<br />
If installed, disable it and then check.</p>
<p>All the above are OK.<br />
Recompile PHP + Apache</p>
<p>If that too doesn&#8217;t work&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.<br />
Upgrade PHP and then downgrade it.</p>
<p>It should be fixed now.<br />
Other wise you have to go for Cpanel support.</p>
]]></content:encoded>
			<wfw:commentRss>http://presoon.com/blog/2008/04/15/php-mail-error-not-able-to-send-mail-using-script-cpanel-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
