<?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>Diadem Tech Weblogs &#187; Plesk Control Panel</title>
	<atom:link href="http://www.diademblogs.com/category/plesk-cp/feed" rel="self" type="application/rss+xml" />
	<link>http://www.diademblogs.com</link>
	<description>Tutorials, tips and howtos for web hosting and open source web development</description>
	<lastBuildDate>Mon, 17 Oct 2011 12:28:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Howto Recover Your Plesk Administrator Password</title>
		<link>http://www.diademblogs.com/plesk-cp/howto-recover-your-plesk-administrator-password</link>
		<comments>http://www.diademblogs.com/plesk-cp/howto-recover-your-plesk-administrator-password#comments</comments>
		<pubDate>Sat, 25 Jun 2011 11:47:14 +0000</pubDate>
		<dc:creator>ankur</dc:creator>
				<category><![CDATA[Plesk Control Panel]]></category>
		<category><![CDATA[Plesk Admin Password recovery]]></category>
		<category><![CDATA[Plesk Linux]]></category>
		<category><![CDATA[Plesk Windows]]></category>

		<guid isPermaLink="false">http://www.diademblogs.com/?p=497</guid>
		<description><![CDATA[If you have forgot your Plesk admin password and the forgot password option is also linked to an invalid email id, following is the method to recover your Plesk admin password for Linux and Windows Servers. For Plesk Linux: Login to your server by SSH, with root privilege and run: # cat /etc/psa/.psa.shadow You will [...]]]></description>
			<content:encoded><![CDATA[<p>If you have forgot your Plesk admin password and the forgot password option is also linked to an invalid email id, following is the method to recover your Plesk admin password for Linux and Windows Servers.</p>
<h3><strong><em>For Plesk Linux:<br />
</em></strong></h3>
<p>Login to your server by SSH, with root privilege and run:</p>
<blockquote><p><em># cat /etc/psa/.psa.shadow</em></p></blockquote>
<p>You will see the current password in Plan Text form.</p>
<h3><strong><em>For Plesk Windows:<br />
</em></strong></h3>
<p>Login to your server from Remote Desktop Connection, with administrator rights and run:</p>
<blockquote><p><em>&#8220;C:\Program Files\Parallels\Plesk\admin\bin\plesksrvclient.exe&#8221; –get</em></p></blockquote>
<p>And you will see a Windows Box with your admin password.</p>
<p>Note: If your Plesk installation is older the file will be located in C:\Program Files\SWsoft\Plesk\admin\bin</p>
<p>Note: If you are running Windows x64 (Dedicated or virtual) the path will be: C:\Program Filex (x86)\Parallels\Plesk\admin\bin (Parallels folder may be SWsoft on older plesk installs)</p>
Note: There is a rating embedded within this post, please visit this post to rate it.
]]></content:encoded>
			<wfw:commentRss>http://www.diademblogs.com/plesk-cp/howto-recover-your-plesk-administrator-password/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Integrating ICICI Payment Gateway in Linux with Plesk or Cpanel</title>
		<link>http://www.diademblogs.com/linux/icici-payment-gateway-integration</link>
		<comments>http://www.diademblogs.com/linux/icici-payment-gateway-integration#comments</comments>
		<pubDate>Thu, 05 May 2011 04:52:16 +0000</pubDate>
		<dc:creator>ankur</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP/MySQL]]></category>
		<category><![CDATA[Plesk Control Panel]]></category>
		<category><![CDATA[ICICI PG in cPanel]]></category>
		<category><![CDATA[ICICI PG in Linux]]></category>
		<category><![CDATA[ICICI PG in Plesk]]></category>

		<guid isPermaLink="false">http://www.diademblogs.com/?p=1048</guid>
		<description><![CDATA[After multiple attempts we have finally being successful in integrating the ICICI Bank online payment gateway in our Linux severs with Plesk and cPanel. Below are the steps that may help you in configuring the same on your server. Configuration for PLesk 1. Download the SFA files from the ICICI merchant area and extract on [...]]]></description>
			<content:encoded><![CDATA[<p>After multiple attempts we have finally being successful in integrating the ICICI Bank online payment gateway in our Linux severs with Plesk and cPanel. Below are the steps that may help you in configuring the same on your server.</p>
<h3>Configuration for PLesk</h3>
<div id="_mcePaste"><strong>1.</strong> Download the SFA files from the ICICI merchant area and extract on the webserver under ICICI folder.</div>
<div>Extract the sfa.jar file in “SFA_Dependencies” and edit the sfa.properties file with the following entries:</div>
<blockquote>
<div id="_mcePaste">verbose=true</div>
<div id="_mcePaste">Key.Directory=/var/www/key</div>
<div id="_mcePaste">OS.Type=UNIX</div>
<div id="_mcePaste">traceLog=/var/log/tomcat5/icici.log</div>
</blockquote>
<div><strong>2. </strong>Copy the ICICI JAR files from “SFA_Dependencies” folder to the following folders</div>
<div>
<ul>
<li>JAR Files to copy: cryptix32.jar, jcert.jar, jnet.jar, jsse.jar, servlet.jar, sfa.jar</li>
<li>Copied jar files to  /usr/share/tomcat5/webapps/JavaBridge/WEB-INF/lib/ from /var/www/vhosts/domainname.com/httpdocs/ICICI/SFA_Dependencies [run this stape after installation of JavaBridge]</li>
<li>Reset permissions to these files to tomcat:tomcat under the lib folder</li>
<li>Also copy the jar files to /usr/share/tomcat5/common/lib folder</li>
<li>Change the owned and group of copied files as per the existing folder owner (Optional and ensure having 777 permissions on the above folder).</li>
</ul>
</div>
<div><strong>3.</strong> Download JavaBridge from below URL</div>
<div id="_mcePaste">
<ul>
<li># wget http://sourceforge.net/projects/php-java-bridge/files/Binary%20package/php-java-bridge_6.2.1/php-java-bridge_6.2.1_documentation.zip/download</li>
</ul>
</div>
<div id="_mcePaste">Install JavaBridge with the following steps:</div>
<div id="_mcePaste">
<ul>
<li>Unzip the php-java-bridge_6.1.2.1_documentation.zip</li>
<li># java -classpath JavaBridge.war TestInstallation</li>
<li># cp JavaBridge.war /var/lib/tomcat5/webapps/.</li>
<li># service tomcat5 restart</li>
<li>Test the installation at http://plesk02.diadem-tech.com:8080/JavaBridge</li>
</ul>
</div>
<div id="_mcePaste">Reference URLs:</div>
<div id="_mcePaste">
<ul>
<li>http://php-java-bridge.sourceforge.net/pjb/tomcat6.php</li>
<li>http://php-java-bridge.sourceforge.net/pjb/installation.php</li>
</ul>
</div>
<div><strong>4. </strong>Edit the file /var/lib/tomcat5/webapps/JavaBridge/WEB-INF/cgi/php.ini with below lines.</div>
<blockquote>
<div>;; -*- mode: Scheme; tab-width:4 -*-</div>
<div id="_mcePaste">;; A simple php.ini</div>
<div id="_mcePaste">;; extension_dir is this &#8220;cgi&#8221; directory</div>
<div id="_mcePaste">extension_dir=.</div>
<div id="_mcePaste">;; include php libraries from these directories</div>
<div id="_mcePaste">include_path=.:/usr/share/pear</div>
<div id="_mcePaste">java.classpath = /usr/share/tomcat5/webapps/JavaBridge/WEB-INF/lib/cryptix32.jar;/usr/share/tomcat5/webapps/JavaBridge/WEB-INF/lib/jcert.jar;/usr/share/tomcat5/webapps/JavaBridge/WEB-INF/lib/jnet.jar;/usr/share/tomcat5/webapps/JavaBridge/WEB-INF/lib/jsse.jar;/usr/share/tomcat5/webapps/JavaBridge/WEB-INF/lib/servlet.jar;/usr/share/tomcat5/webapps/JavaBridge/WEB-INF/lib/sfa.jar;</div>
</blockquote>
<div><strong>5. </strong>Edit /root/.bash_profile to set CLASSPATH as env variable and add the below lines.</div>
<blockquote>
<div id="_mcePaste">include_path=.:/usr/share/pear</div>
<div>CLASSPATH=$CLASSPATH:/usr/share/tomcat5/webapps/JavaBridge/WEB-INF/lib/cryptix32.jar;</div>
<div id="_mcePaste">CLASSPATH=$CLASSPATH:/usr/share/tomcat5/webapps/JavaBridge/WEB-INF/lib/jnet.jar;</div>
<div id="_mcePaste">CLASSPATH=$CLASSPATH:/usr/share/tomcat5/webapps/JavaBridge/WEB-INF/lib/servlet.jar;</div>
<div id="_mcePaste">CLASSPATH=$CLASSPATH:/usr/share/tomcat5/webapps/JavaBridge/WEB-INF/lib/sfa.jar;</div>
<div id="_mcePaste">CLASSPATH=$CLASSPATH:/usr/share/tomcat5/webapps/JavaBridge/WEB-INF/lib/jcert.jar;</div>
<div id="_mcePaste">CLASSPATH=$CLASSPATH:/usr/share/tomcat5/webapps/JavaBridge/WEB-INF/lib/jsse.jar;</div>
<div id="_mcePaste">export include_path</div>
<div id="_mcePaste">export CLASSPATH</div>
</blockquote>
<div>Run the following commands from shell:</div>
<div id="_mcePaste">
<ul>
<li>#. .bash_profile to set the environment variable.</li>
<li># env to check the environment variables.</li>
<li># service tomcat5 restart – Tomcat restart</li>
</ul>
</div>
<div><strong>6.</strong> Configure Tomcat to use SUN Java</div>
<div id="_mcePaste">
<ul>
<li># vim /etc/sysconfig/tomcat5</li>
</ul>
</div>
<div id="_mcePaste" style="padding-left: 30px;">Comment the existing JAVA_HOME and add the below line</div>
<div id="_mcePaste" style="padding-left: 30px;">JAVA_HOME=&#8221;/usr/java/jdk1.6.0_20/&#8221; (The JDK version will change as per the installed version)</div>
<div style="padding-left: 30px;">Restart Tomcat</div>
<div id="_mcePaste">
<ul>
<li># touch /var/log/tomcat5/icici.log</li>
<li># chown tomcat.tomcat /var/log/tomcat5/icici.log</li>
</ul>
</div>
<div id="_mcePaste"><strong>7. </strong>Stop Apache and Tomcat and then copy the following key files to the /var/www/key directory:</div>
<div id="_mcePaste">
<ul>
<li>0000XXXX.key</li>
<li>intermediate.cer</li>
<li> payseal.icicibank-chain-bundle.cer</li>
</ul>
</div>
<div id="_mcePaste" style="padding-left: 30px;">The .cer files can be found under the cert_bundle folder provided by ICICI. The key file also needs to be downloaded from the merchant admin site or provided by ICICI.</div>
<div id="_mcePaste">
<ul>
<li>Start Apache and Tomcat.</li>
</ul>
</div>
<div style="padding-left: 30px;">Run the following keyrestore command from the /var/www/key folder:</div>
<blockquote>
<div id="_mcePaste"># keytool -import -alias pgIntermediateCA -file ./intermediate.cer -keystore /usr/java/jdk1.6.0_12/jre/lib/security/cacerts -storepass changeit</div>
<div id="_mcePaste">This might give an error like keytool error: gnu.javax.crypto.keyring.MalformedKeyringException: incorrect magic which can be ignored.</div>
</blockquote>
<div><strong>8. </strong>Update the TestSSL.php page and change the response URL and use the updated file:</div>
<blockquote>
<div id="_mcePaste">$oMerchant-&gt;setMerchantDetails(&#8220;0000XXXX&#8221;,&#8221;0000XXXX&#8221;,&#8221;0000XXXX&#8221;,&#8221;193.545.34.33&#8243;,rand().&#8221;",&#8221;Ord123&#8243;,&#8221;http://10.10.10.147:8756/SFAResponse.php&#8221;,&#8221;POST&#8221;,&#8221;INR&#8221;,&#8221;INV123&#8243;,&#8221;req.Preauthorization&#8221;,&#8221;100&#8243;,&#8221;",&#8221;Ext1&#8243;,&#8221;true&#8221;,&#8221;Ext3&#8243;,&#8221;Ext4&#8243;,&#8221;Ext5&#8243;);</div>
<div id="_mcePaste">Also in SFAResponse.php and “./Sfa/PostLibPHP.php” file on line 2 would also change from</div>
<div id="_mcePaste">&#8216; require_once(&#8220;java/Java.php&#8221;);&#8217; to &#8216; require_once(&#8220;java/Java.inc&#8221;);&#8217;</div>
</blockquote>
<div id="_mcePaste">Test the TestSSL and Testjava pages</div>
<div id="_mcePaste">
<ul>
<li>http://domainname.com/ICICI/SFAClient/TestPages/testjava.php</li>
<li>http://domainname.com/ICICI/SFAClient/TestPages/TestSsl.php</li>
</ul>
</div>
<div id="_mcePaste">Hopefully the above links would work and the error output log can be checked at:</div>
<div id="_mcePaste">
<ul>
<li># tail –v –f /var/www/vhosts/pgtest.domainname.com/statistics/logs/error.log</li>
</ul>
<h3>cPanel configuration</h3>
<div>
<div>For cPanel you need to install Tomcat and FastCGI module in PHP to run ICICI PG, below are the steps.</div>
<div><strong>1.</strong> Login WHM with root user</div>
<div><strong>2.</strong> In the Main page  click on Software and then EasyApache (Apache Update)</div>
<div><strong>3. </strong>Go through each step as follows.</div>
<div style="padding-left: 30px;">a)	Click “Start customizing based on profile”</div>
<div style="padding-left: 30px;">b)	Select Apache Version – Click Next to proceed with the current version.</div>
<div style="padding-left: 30px;">c)	Select PHP Major Version – Click Next to proceed with the current version.</div>
<div style="padding-left: 30px;">d)	Select PHP Minor version – Click Next to proceed with the current version.</div>
<div style="padding-left: 30px;">e)	Short option list – Click “Exhaustive Options List” to view full options.</div>
<div style="padding-left: 30px;">Exhaustive Options List – From here you can select the PHP modules you needed</div>
<div style="padding-left: 30px;">Select mod_fcgid (FCGI module for Apache), FCGI and Tomcat (you can also select other PHP module for future requirement e.g. GD, SOAP, curl, Zend, Zlib, Zip bizip, MySQLi )</div>
<div style="padding-left: 30px;">f)	Click “Save &amp; Build” to start apache-php compilation.</div>
<div><strong>4. </strong>Once the compilation over you can verify the installed PHP modules using the following command.</div>
<blockquote>
<div># php –m</div>
</blockquote>
<div>And Tomcat from the URL: <strong>http://server ip:8080</strong></div>
<div><strong>5. </strong>After the installation of Tomcat defines the following important environment variables in /root/.bash_profile</div>
<blockquote>
<div>CATALINA_HOME=/usr/local/jakarta/tomcat</div>
<div>CATALINA_BASE=/usr/local/jakarta/tomcat</div>
<div>JAVA_HOME=/usr/local/jdk/</div>
<div>export CATALINA_HOME CATALINA_BASE JAVA_HOME</div>
</blockquote>
<div>Now run “#. .bash_profile” command from shell to set the environment variable.</div>
<div>All done now start the ICICI Payment Gateway Integration same as Plesk steps. Only the tomcat path is different i.e.<strong> /usr/local/jakarta/tomcat</strong>.</div>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.diademblogs.com/linux/icici-payment-gateway-integration/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CSF/LFD firewall installation guide for Plesk</title>
		<link>http://www.diademblogs.com/linux/csflfd-installation-for-plesk</link>
		<comments>http://www.diademblogs.com/linux/csflfd-installation-for-plesk#comments</comments>
		<pubDate>Mon, 25 Apr 2011 06:33:33 +0000</pubDate>
		<dc:creator>ankur</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Plesk Control Panel]]></category>
		<category><![CDATA[CSF/LFD]]></category>
		<category><![CDATA[Firewall]]></category>
		<category><![CDATA[server security]]></category>

		<guid isPermaLink="false">http://www.diademblogs.com/?p=1245</guid>
		<description><![CDATA[Config Server Firewall (csf) and Login Failure Daemon (lfd) is a robust firewall solution having Stateful Packet Inspection (SPI), Login/Intrusion Detection and Security application for Linux servers. Although it is more compatible with CPanel we have been able to use the same for the Plesk hosting control panel also and it is running fine. Please [...]]]></description>
			<content:encoded><![CDATA[<p>Config Server Firewall (csf) and Login Failure Daemon (lfd) is a robust firewall solution having Stateful Packet Inspection (SPI), Login/Intrusion Detection and Security application for Linux servers. Although it is more compatible with CPanel we have been able to use the same for the Plesk hosting control panel also and it is running fine. Please visit the below link for more information.</p>
<p><a href="http://www.configserver.com" target="_blank">http://www.configserver.com</a></p>
<p>I have listed the installation steps for CSF / LFD.Login to your server with ‘root’ user and issue below commands :</p>
<p>Change directory to either /root or /usr/local/src , which ever you normally use for such installations</p>
<blockquote><p># cd /usr/local/src</p></blockquote>
<p>[Remove any old source that might be present]</p>
<p>Download and untar the source for installation</p>
<blockquote><p># wget http://www.configserver.com/free/csf.tgz<br />
# tar -xzf csf.tgz</p></blockquote>
<p>Run installation script</p>
<blockquote><p># cd csf<br />
# sh install.sh</p></blockquote>
<p>Once the installation complete, you can run the below scripts provided by vendor to check if your server/vps has required iptables modules available :</p>
<blockquote><p># perl /etc/csf/csftest.pl</p></blockquote>
<p>CSF provides the script to remove the other popular combination I talked about above i.e. apf/bfd, The below script will remove apf/bfd from your server/vps.</p>
<blockquote><p># sh /etc/csf/remove_apf_bfd.sh</p></blockquote>
<p>Common setting for incoming/outgoing TCP/IP and UDP connection.</p>
<blockquote><p>ETH_DEVICE = &#8220;eth1&#8243;</p>
<p>ETH_DEVICE_SKIP = &#8220;eth0&#8243;</p>
<p># Allow incoming TCP ports<br />
TCP_IN = &#8220;20,21,25,53,80,106,110,111,143,443,465,587,865,873,993,995,8443,8880&#8243;</p>
<p># Allow outgoing TCP ports<br />
TCP_OUT = &#8220;20,21,22,25,80,110,443,43,873,8443&#8243;</p>
<p># Allow incoming UDP ports<br />
UDP_IN = &#8220;53,111,123,230,631,859,862,2109,5353&#8243;</p>
<p># Allow outgoing UDP ports<br />
# To allow outgoing traceroute add 33434:33523 to this list<br />
UDP_OUT = &#8220;20,21,53,113,123,2109&#8243;</p>
<p># Allow incoming PING<br />
ICMP_IN = &#8220;1&#8243;</p>
<p># Set the per IP address incoming ICMP packet rate<br />
# To disable rate limiting set to &#8220;0&#8243;<br />
ICMP_IN_RATE = &#8220;0&#8243;</p>
<p># Allow outgoing PING<br />
ICMP_OUT = &#8220;1&#8243;</p>
<p># Set the per IP address outgoing ICMP packet rate<br />
# To disable rate limiting set to &#8220;0&#8243;<br />
ICMP_OUT_RATE = &#8220;0&#8243;</p>
<p># Enable login failure detection daemon (lfd).<br />
LF_DAEMON = &#8220;1&#8243;</p></blockquote>
<p>For allowing Qmail in CSF alter below setting(s)</p>
<blockquote><p>SMTP_BLOCK = &#8220;1&#8243;<br />
SMTP_ALLOWLOCAL = &#8220;1&#8243;<br />
SMTP_PORTS = &#8220;25,587&#8243;<br />
SMTP_ALLOWUSER = &#8220;qmaild,qmaill,qmailp,qmailq,qmailr,qmails&#8221;<br />
SMTP_ALLOWGROUP = &#8220;qmail,nofiles,mail,mailman&#8221;</p></blockquote>
<p>Set CSF/LFD reporting FROM/TO ID as below [**** Need to set for Plesk]</p>
<blockquote><p>LF_ALERT_TO = &#8220;supportteam@diadem.co.in&#8221;<br />
LF_ALERT_FROM = &#8220;csf_LFD@diadem.co.in&#8221;</p></blockquote>
<p>Allowing third party block list checking</p>
<blockquote><p># Enable IP range blocking using the DShield Block List at<br />
LF_DSHIELD = &#8220;86400&#8243;</p>
<p># Enable IP range blocking using the Spamhaus DROP List at<br />
LF_SPAMHAUS = &#8220;86400&#8243;</p>
<p># Enable IP range blocking using the BOGON List at<br />
LF_BOGON = &#8220;86400&#8243;</p></blockquote>
<p>Now Add the LFD ignore list for qmail/plesk mail user/process in csf.pignore file.</p>
<blockquote><p># vim /etc/csf/csf.pignore</p>
<p>#### Custom for Plesk ####<br />
user:admin<br />
exe:/var/qmail/bin/qmail-smtpd<br />
exe:/usr/bin/imapd<br />
exe:/var/qmail/bin/qmail-queue<br />
exe:/usr/bin/pop3d<br />
exe:/var/qmail/bin/qmail-send<br />
cmd:qmail-send<br />
cmd:/usr/bin/pop3d Maildir<br />
cmd:/var/qmail/bin/qmail-queue<br />
cmd:/var/qmail/bin/qmail-smtpd /var/qmail/bin/smtp_auth /var/qmail/bin/true /var/qmail/bin/cmd5checkpw /var/qmail/bin/true<br />
cmd:/usr/bin/imapd Maildir<br />
exe:/var/qmail/bin/qmail-rspawn<br />
cmd:qmail-rspawn<br />
exe:/var/qmail/bin/qmail-clean<br />
cmd:qmail-clean<br />
exe:/usr/sbin/clamd<br />
cmd:clamd<br />
exe:/var/qmail/bin/splogger<br />
cmd:splogger qmail<br />
exe:/var/qmail/bin/qmail-remote.moved<br />
user:qmaill<br />
user:popuser<br />
user:qmaild<br />
user:qmails<br />
user:qmailr<br />
user:qmailq<br />
user:qscand<br />
exe:/usr/sbin/avahi-daemon<br />
user:avahi<br />
exe:/usr/local/sbin/zabbix_agentd<br />
cmd:/usr/local/sbin/zabbix_agentd<br />
user:zabbix<br />
exe:/usr/bin/sw-engine-cgi<br />
cmd:/usr/bin/sw-engine-cgi<br />
user:sso<br />
exe:/usr/sbin/sw-cp-serverd<br />
cmd:/usr/sbin/sw-cp-serverd -f /etc/sw-cp-server/config<br />
user:sw-cp-server<br />
exe:/usr/bin/sw-engine-cgi<br />
cmd:/usr/bin/sw-engine-cgi -c /usr/local/psa/admin/conf/php.ini -d auto_prepend_file=auth.php3 -u psaadm<br />
user:psaadm<br />
exe:/usr/libexec/mysqld<br />
cmd:/usr/libexec/mysqld &#8211;basedir=/usr &#8211;datadir=/var/lib/mysql &#8211;user=mysql &#8211;pid-file=/var/run/mysqld/mysqld.pid &#8211;skip-external-locking &#8211;socket=/var/lib/mysql/mysql.sock<br />
user:mysql<br />
exe:/usr/libexec/hald-addon-acpi<br />
exe:/usr/sbin/hald<br />
cmd:hald<br />
user:haldaemon<br />
exe:/usr/bin/postgres<br />
user:postgres<br />
exe:/sbin/portmap<br />
cmd:portmap<br />
user:rpc<br />
exe:/usr/bin/xfs<br />
cmd:xfs -droppriv -daemon<br />
user:xfs<br />
exe:/usr/bin/python<br />
cmd:/usr/bin/python /usr/lib/mailman/bin/qrunner &#8211;runner=VirginRunner:0:1 -s<br />
user:mailman<br />
exe:/usr/java/jdk1.6.0_20/bin/java<br />
user:tomcat</p></blockquote>
<p>Note: You may need to add few more process/user as per your requirement.</p>
<p><strong>Now start the CSF</strong></p>
<blockquote><p># csf -s</p></blockquote>
<p><strong>Restart LFD</strong></p>
<blockquote><p># service lfd restart</p></blockquote>
<p>Installation is done, now check the website, mail  and other services(s) and disable TESTING mode and restart CSF/LFD</p>
<blockquote><p># csf -r<br />
# service lfd restart</p></blockquote>
<p>I will list below some of very common commands you will need to use/manage csf firewall :</p>
<p><strong>Enabling the firewall</strong></p>
<blockquote><p># csf –enable OR<br />
# csf -e</p></blockquote>
<p><strong>Disabling the firewall</strong></p>
<blockquote><p># csf –disable<br />
# csf -x</p></blockquote>
<p><strong>Starting firewall / applying rules</strong></p>
<blockquote><p># csf –start<br />
# csf -s</p></blockquote>
<p><strong>Stopping firewall / flushing rules</strong></p>
<blockquote><p># csf –stop<br />
# csf -f</p></blockquote>
<p><strong>Adding an IP in firewall</strong></p>
<blockquote><p># csf -d 2.3.4.5 “Reason for blocking the IP”<br />
# csf –deny 2.3.4.5 “Reason for blocking the IP”<br />
where 2.3.4.5 is the IP you want to block.</p></blockquote>
<p><strong>Removing IP from deny list</strong></p>
<blockquote><p># csf -dr 2.3.4.5</p></blockquote>
Note: There is a rating embedded within this post, please visit this post to rate it.
]]></content:encoded>
			<wfw:commentRss>http://www.diademblogs.com/linux/csflfd-installation-for-plesk/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The new Plesk 10 hosting control panel &#8211; Our first impressions</title>
		<link>http://www.diademblogs.com/plesk-cp/the-new-plesk-10-hosting-control-panel-our-first-impressions</link>
		<comments>http://www.diademblogs.com/plesk-cp/the-new-plesk-10-hosting-control-panel-our-first-impressions#comments</comments>
		<pubDate>Wed, 26 Jan 2011 08:18:49 +0000</pubDate>
		<dc:creator>ankur</dc:creator>
				<category><![CDATA[Plesk Control Panel]]></category>
		<category><![CDATA[Web Hosting]]></category>
		<category><![CDATA[Plesk 10]]></category>
		<category><![CDATA[plesk 10 linux]]></category>
		<category><![CDATA[plesk 10 windows]]></category>
		<category><![CDATA[Plesk Control Panel 10]]></category>
		<category><![CDATA[web hosting control panel]]></category>

		<guid isPermaLink="false">http://www.diademblogs.com/?p=1099</guid>
		<description><![CDATA[As a loyal customer of Parallels for the past 7 years who has been using the Industry standard hosting control panel, Plesk for our web hosting automation needs, we are excited with the latest release of their control panel &#8211; Panel 10. In the past few weeks we have been evaluating Parallel’s new release of [...]]]></description>
			<content:encoded><![CDATA[<p>As a loyal customer of <a href="http://www.parallels.com">Parallels </a>for the past 7 years who has been using the Industry standard hosting control panel, <strong>Plesk </strong>for our web hosting automation needs, we are excited with the latest release of their control panel &#8211; Panel 10. In the past few weeks we have been evaluating Parallel’s new release of Plesk Panel version 10. It is pretty good with respect to managing user level permissions. From this version onwards, web hosters would need to maintain the recommended user hierarchy while creating users, E.g. Reseller &gt; Client/Customer &gt; Domain/Subscription. Domain Administrator feature has been deprecated and a role based user access level has been created, e.g. certain users can only configure email ids, some users cannot access ftp options and so on.</p>
<p>Another feature which has been added in the Linux version of Plesk is the option to create additional FTP users, which will benefit organisations which require additional ftp users with restricted access to their folders and a primary admin user to manage the individual ftp users from a single console.</p>
<p style="text-align: center;"><a href="http://www.diademblogs.com/wp-content/uploads/2011/01/plesk10a.png"><img class="size-full wp-image-1178 aligncenter" src="http://www.diademblogs.com/wp-content/uploads/2011/01/plesk10a.png" alt="" width="439" height="358" /></a></p>
<p style="text-align: center;"><strong>New client dashboard with an enhanced menu system. The new menu is more user friendly and faster access with respect to earlier Plesk versions.</strong></p>
<p style="text-align: center;"><a href="http://www.diademblogs.com/wp-content/uploads/2011/01/plesk10b.png"><img class="size-full wp-image-1179 aligncenter" src="http://www.diademblogs.com/wp-content/uploads/2011/01/plesk10b.png" alt="" width="541" height="466" /></a></p>
<p style="text-align: center;">
<p style="text-align: center;"><strong>The above screenshot is for the user (role) creation for grant/deny of particular service(s).</strong></p>
<p style="text-align: center;"><a href="http://www.diademblogs.com/wp-content/uploads/2011/01/plesk10c.png"><img class="size-full wp-image-1180 aligncenter" src="http://www.diademblogs.com/wp-content/uploads/2011/01/plesk10c.png" alt="" width="558" height="422" /></a></p>
<p style="text-align: center;"><strong>The most awaited new feature “Additional FTP Account”, which can be control with a Main FTP user.</strong></p>
<p style="text-align: center;"><a href="http://www.diademblogs.com/wp-content/uploads/2011/01/plesk10d.png"><img class="size-full wp-image-1181 aligncenter" src="http://www.diademblogs.com/wp-content/uploads/2011/01/plesk10d.png" alt="" width="558" height="420" /></a></p>
<p style="text-align: center;"><strong>An improved application vault for installing your favourite open source applications like WordPress, Joomla and much more.<br />
</strong></p>
<p style="text-align: center;">
<h3>Some of the key features of Plesk 10 is highlighted below:</h3>
<p><strong>Separate administrator user interface</strong> – Parallels Plesk Panel now comes with a separate administrator interface, optimized for server and business management.</p>
<p><strong>Control panel improvements</strong> – Performance improvements for control panels make pages load much faster.</p>
<p><strong>Upgradable Apache configurations</strong> – Your customized Apache configurations will now remain in force when you upgrade.</p>
<p><strong>Role-based access</strong> – Customer administrators can specify application access based on user roles, enabling them to easily limit access to only those users who need it.</p>
<p><strong>Improved security and performance</strong> – FastCGI lets you isolate sites in a shared hosting environment with greater account density than suPHP.</p>
<p><strong>Improved password security</strong> – Assignment of random default passwords and a password strength indicator protect your servers from hackers and lower support costs attributable to broken passwords.</p>
<p><strong>More flexibility in hosting plans </strong>– New and more flexible hosting concepts support a superior growth path to the future. Key features include multi-domain hosting; ability to assign multiple add-on plans to a subscription; and ability to automatically update subscription settings when plans change.</p>
<p><strong>Intuitive and modern SiteBuilder (free with Parallels Plesk Panel Unlimited licenses) </strong>– The brand-new SiteBuilder, rebuilt from the ground up, enables instant Web site creation. It includes point-and-click and drag-and-drop capabilities, complete with content appropriate for different small business types and personal interests.</p>
<p>Like most web hosters, we are hopeful that the new version would allow our clients to get more out of their hosting plans and we intend to upgrade our clients to the new version in a phased manner over the next few months. Feel free to share your views on the new Plesk 10 panel.</p>
<p>Links for more information on Plesk 10:</p>
<p><a href="http://www.parallels.com/products/plesk">http://www.parallels.com/products/plesk</a><br />
<a href="http://www.parallels.com/products/plesk/new">http://www.parallels.com/products/plesk/new</a><br />
<a href="ftp://download1.sw-soft.com/Plesk/PP10/Doc/">ftp://download1.sw-soft.com/Plesk/PP10/Doc/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.diademblogs.com/plesk-cp/the-new-plesk-10-hosting-control-panel-our-first-impressions/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Howto Create &#8216;Catch all&#8217; subdomains in Plesk</title>
		<link>http://www.diademblogs.com/plesk-cp/howto-create-catch-all-subdomains-in-plesk</link>
		<comments>http://www.diademblogs.com/plesk-cp/howto-create-catch-all-subdomains-in-plesk#comments</comments>
		<pubDate>Fri, 16 Jul 2010 05:41:22 +0000</pubDate>
		<dc:creator>ankur</dc:creator>
				<category><![CDATA[Plesk Control Panel]]></category>
		<category><![CDATA[catch-all Subdomain]]></category>
		<category><![CDATA[catchcall subdomain]]></category>
		<category><![CDATA[plesk catchall]]></category>

		<guid isPermaLink="false">http://www.diademblogs.com/?p=205</guid>
		<description><![CDATA[A &#8216;catch all&#8217;  subdomain allows you to redirect all users who might type in http://subdomain.yourdomain.com  where &#8216;subdomain&#8217; could be any subdomain which you would like to redirect users from. Why would you need catch all subdomains Maybe you have a few subdomains but sometimes your visitors are accessing non-existing subdomains. So the most appropriate solution [...]]]></description>
			<content:encoded><![CDATA[<p>A &#8216;catch all&#8217;  subdomain allows you to redirect all users who might type in http://subdomain.yourdomain.com  where &#8216;subdomain&#8217; could be any subdomain which you would like to redirect users from.</p>
<h3>Why would you need catch all subdomains</h3>
<p>Maybe you have a few subdomains but sometimes your visitors are accessing non-existing subdomains. So the most appropriate solution would be to either redirect them to your main website or at least show them a list of available pages.</p>
<h3>Step-by-step configuration in Plesk</h3>
<ol>
<li><strong>Create a subdomain &#8216;z-WILDCARD&#8217; in Plesk</strong> &#8211; under the admin section of the right domain.<br />
Why do we need this name?  Because this entry should be the last entry in the list of subdomains, otherwise this “trick” will not work.</li>
<li><strong>Add special configuration</strong> (catchall for all subdomains) <strong>to the vhosts.conf file of this subdomain</strong>.<br />
Normally it’s located in /srv/www/vhosts/<strong>domain.com/</strong>subdomains/<strong>z-WILDCARD</strong>/conf/vhosts.conf. You have to create it &#8211; normally you need the root user to do this. Copy the following content into the file:<br />
<code>ServerAlias *.<strong>domain.com</strong></code></li>
<li>Apply the new configuration &#8211; recreate the Apache configuration. You have to run the tool websrvmng which is a Plesk tool that manages and creates the webserver configuration. Execute the following as root user.<br />
<code>/usr/local/psa/admin/sbin/websrvmng -u --vhost-name=domain.com</code></li>
<li>Finally &#8211; restart Apache to load the new configuration, also as root.<br />
<code>service httpd restart</code></li>
</ol>
<p>That’s it! Now your users can access non-existing subdomains as e.g. doesnotexists.domain.com and you should see the Plesk page displayed for new pages.</p>
Note: There is a rating embedded within this post, please visit this post to rate it.
]]></content:encoded>
			<wfw:commentRss>http://www.diademblogs.com/plesk-cp/howto-create-catch-all-subdomains-in-plesk/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Alternate SMTP port through Plesk for Linux</title>
		<link>http://www.diademblogs.com/linux/alternate-smtp-port</link>
		<comments>http://www.diademblogs.com/linux/alternate-smtp-port#comments</comments>
		<pubDate>Sat, 12 Sep 2009 04:20:58 +0000</pubDate>
		<dc:creator>ankur</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Plesk Control Panel]]></category>
		<category><![CDATA[Alternative port in qmail]]></category>
		<category><![CDATA[Alternative SMTP port in Linux Plesk]]></category>

		<guid isPermaLink="false">http://www.diademblogs.com/?p=518</guid>
		<description><![CDATA[Nowadays, quite a few ISPs block port# 25 which is the default SMTP port for relaying email for security purposes, so you need to configure an alternative port for SMTP connection. Use instructions below to configure an additional alternate SMTP port in a Plesk Server running in Redhat Enterprise Linux Version 4/5 or CentOS version [...]]]></description>
			<content:encoded><![CDATA[<p>Nowadays, quite a few ISPs block port# 25 which is the default SMTP port for relaying email for security purposes, so you need to configure an alternative port for SMTP connection.</p>
<p>Use instructions below to configure an additional alternate SMTP port in a Plesk Server running in Redhat Enterprise Linux Version 4/5 or CentOS version 5 in Qmail  Server.</p>
<p>Choose any unused port and add it to the /etc/services file, for example:</p>
<blockquote><p>smtp_alt        8425/tcp        mail            # Alternate SMTP Port<br />
smtp_alt        8425/udp        mail            # Alternate SMTP Port (optional)</p></blockquote>
<p>Make a copy of /etc/xinetd.d/smtp_psa to /etc/xinetd.d/smtp_psa_alt and correct service line within new file:</p>
<blockquote><p>service smtp_alt</p></blockquote>
<p>Below is a sample of smtp_psa_alt file.</p>
<blockquote><p><span style="color: #333399;">service smtp_alt<br />
{<br />
socket_type     = stream<br />
protocol        = tcp<br />
wait            = no<br />
disable         = no<br />
user            = root<br />
instances       = UNLIMITED<br />
server          = /var/qmail/bin/tcp-env<br />
server_args     = -Rt0 /var/qmail/bin/relaylock /var/qmail/bin/qmail-smtpd /var/qmail/bin/smtp_auth /var/qmail/bin/true /var<br />
/qmail/bin/cmd5checkpw /var/qmail/bin/true<br />
}</span></p></blockquote>
<p>Restart xinetd and Qmail</p>
<blockquote><p>service xinetd restart<br />
service qmail restart</p></blockquote>
<p>SMTP connections will be accepted on the both standard and 8025 ports. You may also need to reconfigure Horde IMP (webmail) settings so it uses the alternative SMTP port too. This can be done editing the following file in Horde webmail:</p>
<p><strong><em>/etc/psa-horde/imp/servers.php</em></strong> file under <strong><em>smtpport </em></strong>parameter for both IMAP and POP3 servers.</p>
Note: There is a rating embedded within this post, please visit this post to rate it.
]]></content:encoded>
			<wfw:commentRss>http://www.diademblogs.com/linux/alternate-smtp-port/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to unlock Plesk admin user from the shell console</title>
		<link>http://www.diademblogs.com/plesk-cp/how-to-unlock-plesk-admin-user-from-the-shell-console</link>
		<comments>http://www.diademblogs.com/plesk-cp/how-to-unlock-plesk-admin-user-from-the-shell-console#comments</comments>
		<pubDate>Mon, 06 Apr 2009 03:09:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Plesk Control Panel]]></category>
		<category><![CDATA[plesk admin]]></category>
		<category><![CDATA[plesk admin lockout]]></category>

		<guid isPermaLink="false">http://diadem.co.in/blog/?p=45</guid>
		<description><![CDATA[The default lock time is 30 minutes. Do not attempt to log in until next 30 minutes and it will get unlocked itself. If you make 3 additonal failed attempts to login, this will lock out the users for an additional 30 minutes. You can manually remove the lock from psa database. Do the following [...]]]></description>
			<content:encoded><![CDATA[<p>The default lock time is 30 minutes. Do not attempt to log in until next 30 minutes and it will get unlocked itself. If you make 3 additonal failed attempts to login, this will lock out the users for an additional 30 minutes.</p>
<p>You can manually remove the lock from psa database.</p>
<p>Do the following from the shell console<br />
<code># mysql -u admin -p`cat /etc/psa/.psa.shadow`<br />
mysql&gt; use psa;<br />
mysql&gt; delete from lockout where login = 'admin';<br />
</code><br />
This short but helpful tip would allow you to login to the admin panel immediately without having to wait for 30 or more mins.<br />
Note: There is a rating embedded within this post, please visit this post to rate it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.diademblogs.com/plesk-cp/how-to-unlock-plesk-admin-user-from-the-shell-console/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creation of additional FTP users for Plesk Linux</title>
		<link>http://www.diademblogs.com/linux/creation-of-additional-ftp-users-for-plesk-linux</link>
		<comments>http://www.diademblogs.com/linux/creation-of-additional-ftp-users-for-plesk-linux#comments</comments>
		<pubDate>Sun, 15 Mar 2009 10:54:02 +0000</pubDate>
		<dc:creator>ankur</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Plesk Control Panel]]></category>
		<category><![CDATA[Additional FTP User in Plesk (Linux)]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[Linux Plesk Control Panel]]></category>
		<category><![CDATA[Plesk Tips]]></category>

		<guid isPermaLink="false">http://diadem.co.in/blog/?p=21</guid>
		<description><![CDATA[Plesk is a great Control Panel in  the shared hosting environment, but there are a few things that are not available in the Control Panel. For example, you cannot create additional FTP user in Plesk Control panel for Linux (this support is enabled in Plesk for windows).  But some time it is required to have [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Plesk is a great Control Panel in  the shared hosting environment, but there are a few things that are not available in the Control Panel. For example, you cannot create additional FTP user in Plesk Control panel for Linux (this support is enabled in Plesk for windows).  But some time it is required to have multiple FTP accounts to upload/download data. You need to have shell access since the Plesk control panel won&#8217;t allow it in the GUI.</p>
<p style="text-align: justify;">Assuming you already have an existing domain (example.com) with the primary FTP user (jack) with password (schmidt) with home directory (/var/www/vhosts/example.com), and you wish to create additional ftp users (jill and bob) with the same access privileges as jack:</p>
<h2>Procedure:</h2>
<p>Login to server via SSH as root.</p>
<p>Issue the shell command:</p>
<blockquote><p><strong>#cat /etc/passwd |grep &#8216;jack&#8217;</strong></p></blockquote>
<p>This will show you a line similar to the following:</p>
<blockquote><p><strong>jack:x:10041:10001::/var/www/vhosts/example.com:/bin/false</strong></p></blockquote>
<p style="text-align: justify;">The first number (after the 2nd colon : ) is 10041, so this is the UID of user jack. You will need this in the &#8216;useradd&#8217; lines since useradd wants a number for the UID.</p>
<p>The second number (after the 3rd colon : ) is 10001, this is the GID (psacln), we won&#8217;t need that right now.</p>
<p>Then run the following shell commands to create the users and passwords:</p>
<blockquote><p><strong>#useradd -u 10041 -o -d /var/www/vhosts/example.com -g psacln -s /bin/false jill<br />
#useradd -u 10041 -o -d /var/www/vhosts/example.com -g psacln -s /bin/false bob<br />
#passwd jill (enter the new password and confirm it, does not have to be the same as jack&#8217;s)<br />
#passwd bob (enter the new password and confirm it, does not have to be the same as jack&#8217;s)</strong></p></blockquote>
<p>You should now be able to use an FTP client to login with that user&#8217;s name and password.</p>
<p style="text-align: justify;">User jill and bob should be able to see the example.com docroot just as user jack can. You should NOT be able to browse above the example.com docroot directory. All 3 users should have the same access to the files since they belong to the same group, so no matter which of the users created or edited the file(s), all should be able to access/edit/whatever the same files.</p>
<p><em><strong>(NOTES:</strong></em> Since these are users defined at the OS level, when connecting with an FTP client, they would login with username &#8216;jill&#8217;, &#8216;bob&#8217;, or &#8216;jack&#8217;. They would NOT use &#8216;jill@example.com&#8217;. This also means that <em>USERNAMES MUST BE UNIQUE</em>.<strong><em>)</em></strong><br />
<span id="more-21"></span></p>
<h2>Subdomain FTP users:</h2>
<p style="text-align: justify;">If you wanted to change their default directory and limit them to a Plesk created subdomain docroot, in the useradd line above, you would change &#8220;/var/www/vhosts/example.com&#8221; to &#8220;/var/www/vhosts/example.com/subdomains/subname&#8221;. So if you wanted to create the same users, but for a subdomain called &#8216;admin&#8217;:</p>
<p>Then do the following shell commands to create the users and passwords:</p>
<blockquote><p><strong>#useradd -u 10041 -o -d /var/www/vhosts/example.com/subdomains/admin -g psacln -s /bin/false jill<br />
#useradd -u 10041 -o -d /var/www/vhosts/example.com/subdomains/admin -g psacln -s /bin/false bob<br />
#passwd jill (enter the new password and confirm it, does not have to be the same as jack&#8217;s)<br />
#passwd bob (enter the new password and confirm it, does not have to be the same as jack&#8217;s)</strong></p></blockquote>
<p>Deleting an FTP user:</p>
<blockquote><p><strong>#userdel jill</strong></p></blockquote>
<p><em><strong>(</strong></em><strong><em>Note: </em></strong>this will not delete any files unless you use the -r option which you probably don&#8217;t want to do if they are sharing files!<strong>)</strong><br />
Note: There is a rating embedded within this post, please visit this post to rate it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.diademblogs.com/linux/creation-of-additional-ftp-users-for-plesk-linux/feed</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
	</channel>
</rss>

