<?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>linux spy</title>
	<atom:link href="http://www.linuxspy.info/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.linuxspy.info</link>
	<description>Linux CPanel  Web-hosting Blog</description>
	<lastBuildDate>Wed, 22 Feb 2012 20:56:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Raid Monitoring Insatallation and Configuration</title>
		<link>http://www.linuxspy.info/1708/raid-monitoring-insatallation-and-configuration/</link>
		<comments>http://www.linuxspy.info/1708/raid-monitoring-insatallation-and-configuration/#comments</comments>
		<pubDate>Wed, 22 Feb 2012 02:32:00 +0000</pubDate>
		<dc:creator>Raj</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Raid Monitor]]></category>
		<category><![CDATA[Raid Monitoring]]></category>
		<category><![CDATA[Raid Monitoring Insatallation and Configuration]]></category>
		<category><![CDATA[Raid Monitoring Insatallation and Configuration on Linux server]]></category>

		<guid isPermaLink="false">http://www.linuxspy.info/?p=1708</guid>
		<description><![CDATA[If you want to install and configure Raid Array Monitoring on your server then follow the below steps :: Installation :: &#160; root@server[#] yum install mailx -y root@server[#] wget http://download1.obs.j0ke.net/hardware:/raid/openSUSE_10.3/i586/sas2ircu-5.00.00-1.1.i586.rpm root@server[#] rpm -ivh sas2ircu-5.00.00-1.1.i586.rpm And once the above RPM gets installed then you can check the Raid Array Status using the below command :: &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to install and configure Raid Array Monitoring on your server then follow the below steps ::</p>
<p><strong>Installation ::</strong></p>
<p>&nbsp;</p>
<blockquote>
<pre>root@server[#] yum install mailx -y
root@server[#] wget http://download1.obs.j0ke.net/hardware:/raid/openSUSE_10.3/i586/sas2ircu-5.00.00-1.1.i586.rpm
root@server[#] rpm -ivh sas2ircu-5.00.00-1.1.i586.rpm</pre>
</blockquote>
<p>And once the above RPM gets installed then you can check the Raid Array Status using the below command ::</p>
<p>&nbsp;</p>
<pre> root@server[#] sas2ircu 0 DISPLAY</pre>
<p><strong>Use sas2ircu  &#8211;help for available options.</strong></p>
<p><strong>Configuration ::</strong></p>
<p>&nbsp;</p>
<p>Add the below simple script in the /etc/cron.daily directory so that you can receive daily notification for Raid Array Status.</p>
<p>&nbsp;</p>
<pre>#!/bin/sh

Email="client's email address"
echo "#############  RAID ARRAY STATUS ON `hostname` `date` #############" &gt; /root/raidstatus

      sas2ircu 0 DISPLAY &gt;&gt; /root/raidstatus
echo "##############################################################" &gt;&gt; /root/raidstatus
  mail -s "RAID Array Status on `hostname` server :: `sas2ircu 0 STATUS | grep state | awk {'print $4'}` " $Email&lt;  /root/raidstatus

exit 0</pre>
<p><strong>That&#8217;s all you are done.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxspy.info/1708/raid-monitoring-insatallation-and-configuration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Table &#8216;mybb_datacache&#8217; is marked as crashed</title>
		<link>http://www.linuxspy.info/1702/table-mybb_datacache-is-marked-as-crashed/</link>
		<comments>http://www.linuxspy.info/1702/table-mybb_datacache-is-marked-as-crashed/#comments</comments>
		<pubDate>Sat, 18 Feb 2012 01:58:54 +0000</pubDate>
		<dc:creator>Raj</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Table 'mybb_datacache' is marked as crashed]]></category>

		<guid isPermaLink="false">http://www.linuxspy.info/?p=1702</guid>
		<description><![CDATA[Sometimes while upgrading the MyBB Forum you might came across this error : &#160; Table 'mybb_datacache' is marked as crashed and should be repaired Query: SELECT title,cache FROM mybb_datacache And if you have tried restoring the database from your backup.sql file but still getting the same error then don&#8217;t panic because this can simply be [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes while upgrading the MyBB Forum you might came across this error :</p>
<p>&nbsp;</p>
<blockquote>
<pre>Table 'mybb_datacache' is marked as crashed and should be repaired
 Query: SELECT title,cache FROM mybb_datacache</pre>
</blockquote>
<p>And if you have tried restoring the database from your backup.sql file but still getting the same error then don&#8217;t panic because this can simply be resolved from <span style="color: #339966;"><strong>phpMyAdmin</strong></span>,by running the following query:</p>
<p>&nbsp;</p>
<blockquote>
<pre>REPAIR TABLE mybb_datacache;</pre>
</blockquote>
<h2>That&#8217;s all easy isn&#8217;t it .</h2>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxspy.info/1702/table-mybb_datacache-is-marked-as-crashed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>File size limit exceeded (core dumped)</title>
		<link>http://www.linuxspy.info/1692/file-size-limit-exceeded-core-dumped/</link>
		<comments>http://www.linuxspy.info/1692/file-size-limit-exceeded-core-dumped/#comments</comments>
		<pubDate>Wed, 01 Feb 2012 17:16:09 +0000</pubDate>
		<dc:creator>Raj</dc:creator>
				<category><![CDATA[Cpanel Issues]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[File size limit exceeded (core dumped)]]></category>
		<category><![CDATA[File size limit exceeded(core dumped) $HTTPD -DSSL]]></category>

		<guid isPermaLink="false">http://www.linuxspy.info/?p=1692</guid>
		<description><![CDATA[Sometimes, it happens that when you try to access your domain  in a web browser you will  get a 500 Internal Server Error and after checking all  the permissions and ownerships for all  files and folders under that domain  you will find  that everything is correct but still  getting that error in  the browser. &#160; [...]]]></description>
			<content:encoded><![CDATA[<p><em><strong>Sometimes, it happens that when you try to access your domain  in a web browser you will  get a 500 Internal Server Error and after checking all  the permissions and ownerships for all  files and folders under that domain  you will find  that everything is correct but still  getting that error in  the browser.</strong></em></p>
<p>&nbsp;</p>
<p><strong>But when you try  to manually execute the php file from  the server using the php command as</strong></p>
<p>&nbsp;</p>
<blockquote>
<pre>root@server[public_html]# php  index.php</pre>
<pre>File size limit exceeded (core dumped)
</pre>
</blockquote>
<p><strong>you will get  the above error and now you start thinking what on earth is that .</strong></p>
<p>&nbsp;</p>
<blockquote>
<h2><em><strong>Reason for that ?</strong></em></h2>
<p>&nbsp;</p></blockquote>
<p><strong> The reason  for that error is that one of the file probably a log file under that domain exceeds to  2 GB and  by default Apache has setting enabled, to display 500 Internal  Server Error if  in case any file under a domain exceeds 2 GB.</strong></p>
<p>&nbsp;</p>
<blockquote>
<h2><em><strong>How to fix ?</strong></em></h2>
<h2></h2>
</blockquote>
<p><strong>Just either remove that file or echo that file and you are done.</strong></p>
<p>&nbsp;</p>
<blockquote>
<h2><em><strong>Tried the above fix  but still  not working ?</strong></em></h2>
<h2></h2>
</blockquote>
<p><strong>In that case, I  suggest you to check  all  the apache logs files specially error_log, suphp_log, suexec_log and modsec_audit.log and if you found any log file over 2 GB then just remove/echo  that file and restart apache service and you are done. </strong></p>
<p>&nbsp;</p>
<h2>That&#8217;s all</h2>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxspy.info/1692/file-size-limit-exceeded-core-dumped/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Problem installing PECL UploadProgress</title>
		<link>http://www.linuxspy.info/1687/problem-installing-pecl-uploadprogress/</link>
		<comments>http://www.linuxspy.info/1687/problem-installing-pecl-uploadprogress/#comments</comments>
		<pubDate>Sat, 21 Jan 2012 11:03:42 +0000</pubDate>
		<dc:creator>Raj</dc:creator>
				<category><![CDATA[Cpanel Issues]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[error: cannot run C compiled programs]]></category>
		<category><![CDATA[Problem installing PECL modules (Cannot run C compiled programs)]]></category>
		<category><![CDATA[Problem installing PECL UploadProgress]]></category>

		<guid isPermaLink="false">http://www.linuxspy.info/?p=1687</guid>
		<description><![CDATA[While installing uploadprogress using pecl, if you came across the below error :: checking whether the C compiler works&#8230; configure: error: cannot run C compiled programs. &#160; Then it means that the executable permission is not set on /tmp or /var/tmp &#160; root@server[~]# mount &#124; grep /tmp /usr/tmpDSK on /tmp type ext2 (rw,noexec,nosuid) /tmp on [...]]]></description>
			<content:encoded><![CDATA[<p><em><strong>While installing uploadprogress using pecl, if you came across the below error ::</strong></em></p>
<p><em><strong>checking whether the C compiler works&#8230; configure: error: cannot run C compiled programs.</strong></em></p>
<p>&nbsp;</p>
<p><strong>Then it means that the executable permission is not set on /tmp or /var/tmp </strong></p>
<p>&nbsp;</p>
<blockquote>
<pre>  root@server[~]# mount | grep /tmp
 /usr/tmpDSK on /tmp type ext2 (rw,noexec,nosuid)
 /tmp on /var/tmp type none (rw,noexec,nosuid,bind)
</pre>
</blockquote>
<p><strong>So, in-order to complete the pecl installation just remount the /tmp and /var/tmp with executable permissions as : </strong><br />
<strong></strong></p>
<blockquote>
<pre>root@server[#] mount -o remount rw /tmp</pre>
<pre>root@server[#] mount -o remount rw /var/tmp
</pre>
</blockquote>
<p><strong>And now just try the pecl install uploadprogress and it will work like a charm.</strong></p>
<p>&nbsp;</p>
<h3>That&#8217;s all you are done.</h3>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxspy.info/1687/problem-installing-pecl-uploadprogress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Softaculous error The MySQL Database could not be selected.</title>
		<link>http://www.linuxspy.info/1682/softaculous-error-the-mysql-database-could-not-be-selected/</link>
		<comments>http://www.linuxspy.info/1682/softaculous-error-the-mysql-database-could-not-be-selected/#comments</comments>
		<pubDate>Sat, 21 Jan 2012 10:40:27 +0000</pubDate>
		<dc:creator>Raj</dc:creator>
				<category><![CDATA[Cpanel Issues]]></category>
		<category><![CDATA[Error - The MySQL Database could not be selected]]></category>
		<category><![CDATA[Problem with Softaculous and Cpanel]]></category>
		<category><![CDATA[Softaculous :: The MySQL Database could not be selected.]]></category>
		<category><![CDATA[Softaculous error The MySQL Database could not be selected.]]></category>
		<category><![CDATA[The MySQL Database could not be selected.]]></category>

		<guid isPermaLink="false">http://www.linuxspy.info/?p=1682</guid>
		<description><![CDATA[If you came across this error while installing any application from  Softaculous after clicking  on the install Button then don&#8217;t panic you can  apply the below simple fix  to  get rid of that error : &#160; Login to WHM  &#62;&#62; Main &#62;&#62; SQL Services &#62;&#62; MySQL Root Password and then reset the mysql root password and [...]]]></description>
			<content:encoded><![CDATA[<p><strong>If you came across this error while installing any application from  Softaculous after clicking  on the install Button then don&#8217;t panic you can  apply the below simple fix  to  get rid of that error :</strong></p>
<p>&nbsp;</p>
<blockquote>
<pre>Login to WHM  &gt;&gt; Main &gt;&gt; SQL Services &gt;&gt; MySQL Root Password 
</pre>
</blockquote>
<p><em><strong>and then reset the mysql root password and now try to installing any application  from Softaculous Panel it will no longer show any error.</strong></em></p>
<p>&nbsp;</p>
<p><strong>And if you still face the same error then make sure that you have not disabled the Database Prefix in WHM .</strong></p>
<p>&nbsp;</p>
<p><em><strong>You can refer the below URL to  re-enable the database prefix  if you mistakenly disabled the database prefix in WHM. </strong></em></p>
<p>&nbsp;</p>
<p><span style="color: #ff0000;">http://www.linuxspy.com/1208/the-database-prefix-option-has-been-disabled/</span></p>
<p>&nbsp;</p>
<h3>That&#8217;s all you are done.</h3>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxspy.info/1682/softaculous-error-the-mysql-database-could-not-be-selected/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Plesk panel 404 /relay after upgrade</title>
		<link>http://www.linuxspy.info/1673/plesk-panel-404-relay-after-upgrade/</link>
		<comments>http://www.linuxspy.info/1673/plesk-panel-404-relay-after-upgrade/#comments</comments>
		<pubDate>Sun, 15 Jan 2012 15:15:46 +0000</pubDate>
		<dc:creator>Raj</dc:creator>
				<category><![CDATA[Plesk]]></category>
		<category><![CDATA[Plesk 404 relay error after upgrade]]></category>
		<category><![CDATA[Plesk panel 404 /relay after upgrade]]></category>

		<guid isPermaLink="false">http://www.linuxspy.info/?p=1673</guid>
		<description><![CDATA[After  upgrading plesk control sometimes it happens that your Plesk admin panel starts redirecting to hostname:8443/relay and whichresults in a 404 not found page and this happens when  you select/activated  sso component while upgrading your Plesk control panel. &#160; You can fix  this by  simply running the below command as root user :  &#160; /usr/local/psa/bin/sso [...]]]></description>
			<content:encoded><![CDATA[<p><strong>After  upgrading plesk control sometimes it happens that your Plesk admin panel starts redirecting to hostname:8443/relay and whichresults in a 404 not found page and this happens when  you select/activated  sso component while upgrading your Plesk control panel.</strong></p>
<p>&nbsp;</p>
<p><strong><em>You can fix  this by  simply running the below command as root user : </em></strong></p>
<p>&nbsp;</p>
<blockquote>
<pre><strong>/usr/local/psa/bin/sso --disable</strong></pre>
</blockquote>
<p>&nbsp;</p>
<h3>That&#8217;s all you are done.</h3>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxspy.info/1673/plesk-panel-404-relay-after-upgrade/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Command to check perl modules installed on the server</title>
		<link>http://www.linuxspy.info/1664/command-to-check-perl-modules-installed-on-the-server/</link>
		<comments>http://www.linuxspy.info/1664/command-to-check-perl-modules-installed-on-the-server/#comments</comments>
		<pubDate>Tue, 13 Dec 2011 15:55:32 +0000</pubDate>
		<dc:creator>Raj</dc:creator>
				<category><![CDATA[Cpanel Issues]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Command to check perl modules installed on the server]]></category>
		<category><![CDATA[How to list all installed Perl modules]]></category>
		<category><![CDATA[List all perl modules]]></category>
		<category><![CDATA[List all perl modules on a cpanel server]]></category>

		<guid isPermaLink="false">http://www.linuxspy.info/?p=1664</guid>
		<description><![CDATA[If you want to list all the installed perl module&#8217;s on the server then you can use the instmodsh command . instmodsh command provides an interactive shell interface to query details of locally installed Perl modules. &#160; root@server[#] instmodsh you will get the output like :: Available commands are: l - List all installed modules [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to list all the installed perl module&#8217;s on the server then you can use the <strong>instmodsh</strong> command .</p>
<p>instmodsh command provides an interactive shell interface to query details of locally installed Perl modules.</p>
<p>&nbsp;</p>
<blockquote>
<pre>root@server[#] <code>instmodsh

</code></pre>
</blockquote>
<p>you will get the output like ::</p>
<blockquote>
<pre>Available commands are:
   l            - List all installed modules
   m &lt;module&gt;   - Select a module
   q            - Quit the program
cmd?</pre>
</blockquote>
<p>at cmd ? command prompt type l to get list of all installed perl modules</p>
<p>&nbsp;</p>
<p><strong>Output ::</strong></p>
<p>&nbsp;</p>
<blockquote>
<pre>cmd? l
Installed modules are:
   Acme::Spork
   AppConfig
   Archive::Tar
   Archive::Tar::Streamed
   Archive::Zip
   Attribute::Handlers
   Authen::Libwrap
   BSD::Resource
   Bundle::Interchange
   Business::OnlinePayment
   Business::OnlinePayment::AuthorizeNet
   Business::UPS
   CDB_File
   CGI
   CPAN
   CPAN::DistnameInfo
   CPAN::Meta
   CPAN::Meta::YAML
   CPAN::SQLite
   Class::Accessor
   Class::Load
   Class::MakeMethods
   Class::Singleton
   Class::Std
   Class::Std::Utils
   Clone</pre>
<pre>   cmd?</pre>
</blockquote>
<p>&nbsp;</p>
<h2>That&#8217;s all.</h2>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxspy.info/1664/command-to-check-perl-modules-installed-on-the-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shell script to list all cpanel accounts for specific reseller</title>
		<link>http://www.linuxspy.info/1641/shell-script-to-list-all-cpanel-accounts-for-specific-reseller/</link>
		<comments>http://www.linuxspy.info/1641/shell-script-to-list-all-cpanel-accounts-for-specific-reseller/#comments</comments>
		<pubDate>Mon, 12 Dec 2011 13:26:49 +0000</pubDate>
		<dc:creator>Raj</dc:creator>
				<category><![CDATA[Cpanel Issues]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[How to get list of cpanel accounts for specific reseller?]]></category>
		<category><![CDATA[List all cPanel accounts under a reseller]]></category>
		<category><![CDATA[List out the users under a reseller account in cPanel Servers]]></category>
		<category><![CDATA[Shell script to list all cpanel accounts for specific reseller]]></category>

		<guid isPermaLink="false">http://www.linuxspy.info/?p=1641</guid>
		<description><![CDATA[If you want to list all  cPanel accounts under  a specific reseller, then you can  use the below simple shell script. &#160;  #!/bin/bash usage() {    echo "Example : $0 domain.com or username"    exit 1 } test $1 &#124;&#124; usage USERN=$(grep $1  "/etc/userdomains" &#124; awk '{print $NF}' &#124; awk 'NR==1') if [[ -z $USERN [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to list all  cPanel accounts under  a specific reseller, then you can  use the below simple shell script.</p>
<p>&nbsp;</p>
<blockquote>
<pre> #!/bin/bash
usage()
{
   echo "Example : $0 domain.com or username"
   exit 1
}

test $1 || usage
USERN=$(grep $1  "/etc/userdomains" | awk '{print $NF}' | awk 'NR==1')

if [[ -z $USERN ]]
then
echo -e "\e[1;33m $1 is not a reseller \e[0m"

exit 1

fi

OWNER=`cut -d: -f1  /var/cpanel/resellers | grep -o $USERN`
exitstatus=$?

if [ "$exitstatus" == 0 ] ; then
echo  "=========================================================="
echo -e  "\e[1;31m Below are the accounts associated with the reseller $name \e[0m"
echo "=========================================================="

output=$(for i in `grep $OWNER /var/cpanel/users/* -l` ; do grep USER= $i ; done | awk -F"=" '{ print $2 }')
echo -e   "\e[1;33m $output \e[0m"
else
echo -e  "\e[1;35m  $1  is not  a Reseller  \e[0m"
exit

fi</pre>
</blockquote>
<p>Copy the above script in a .sh file like listreseller.sh and allow executable permission to listreseller.sh file and then execute it as :</p>
<p>&nbsp;</p>
<blockquote>
<pre>root@server[#] ./listreseller resellerusername</pre>
</blockquote>
<p>or</p>
<blockquote>
<pre>root@server[#] ./listreseller  resellerdomain.com</pre>
</blockquote>
<p>&nbsp;</p>
<p>After executing the script you will get the below output as ::</p>
<p>&nbsp;</p>
<blockquote>
<pre>root@server[#] ./listreseller test.com
 ==========================================================
 Below are the accounts associated with the reseller
 ==========================================================
 test
 raj
 sunil</pre>
</blockquote>
<p>or</p>
<p>&nbsp;</p>
<pre> root@server[#] ./listreseller newtest
 newtest is not a reseller</pre>
<h3>That&#8217;s all.</h3>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxspy.info/1641/shell-script-to-list-all-cpanel-accounts-for-specific-reseller/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nameserver IP&#8217;s Missing in WHM?</title>
		<link>http://www.linuxspy.info/1632/nameserver-ips-not-showing-in-whm/</link>
		<comments>http://www.linuxspy.info/1632/nameserver-ips-not-showing-in-whm/#comments</comments>
		<pubDate>Mon, 12 Dec 2011 11:00:26 +0000</pubDate>
		<dc:creator>Raj</dc:creator>
				<category><![CDATA[Cpanel Issues]]></category>
		<category><![CDATA[Name-server IP's missing in WHM]]></category>
		<category><![CDATA[Name-server IP's not shown in WHM]]></category>
		<category><![CDATA[Nameserver IP's not showing in WHM?]]></category>
		<category><![CDATA[WHM Nameserver IP's Showing Wrong Information]]></category>
		<category><![CDATA[WHM showing incorrect nameserver IP's]]></category>

		<guid isPermaLink="false">http://www.linuxspy.info/?p=1632</guid>
		<description><![CDATA[Some time&#8217;s it happens that when you try to access the name-server IP&#8217;s from  WHM &#62;&#62; Main &#62;&#62; DNS Functions &#62;&#62; Nameserver IPs it either shows no IP&#8217;s or show incorrect information. To fix the issue you need to correct the entries for the name-server&#8217;s IP in the below two files :: 1&#62; /etc/nameserverips &#160; [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Some time&#8217;s it happens that when you try to access the name-server IP&#8217;s from  WHM &gt;&gt; Main &gt;&gt; DNS Functions &gt;&gt; Nameserver IPs it either shows no IP&#8217;s or show incorrect information. </strong></p>
<p><strong>To fix the issue you need to correct the entries for the name-server&#8217;s IP in the below two files ::</strong></p>
<p>1&gt;</p>
<blockquote>
<pre>/etc/nameserverips</pre>
</blockquote>
<p>&nbsp;</p>
<p>2 &gt;</p>
<blockquote>
<pre> /var/cpanel/nameserverips.yaml</pre>
</blockquote>
<p>&nbsp;</p>
<p><strong>Firstly, check the entries in the /etc/nameserverips file and it should show the below output :: </strong></p>
<p>&nbsp;</p>
<blockquote>
<pre>root@server [~]# cat /etc/nameserverips</pre>
<pre>192.168.1.1=ns1.yourdomain.com
192.168.1.2=ns2.yourdomain.com</pre>
</blockquote>
<p><strong>And if the entries in the above files are correct then check the next file it should show the below output ::</strong></p>
<p>&nbsp;</p>
<pre>root@server [~]# cat /var/cpanel/nameserverips.yaml
---
ns1.yourdomain.com:
"192.168.1.1": 1
count: '1'
zones: yourdomain.com
ns2.yourdomain.com:
"192.168.1.2": 1
count: '1'
zones: yourdomain.com</pre>
<p><strong>If the above entries are missing in the above file then add those as shown in the example.<br />
</strong></p>
<h3>That&#8217;s all.</h3>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxspy.info/1632/nameserver-ips-not-showing-in-whm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shell Script to list IP&#8217;s for domains</title>
		<link>http://www.linuxspy.info/1619/shell-script-to-list-ips-for-domains/</link>
		<comments>http://www.linuxspy.info/1619/shell-script-to-list-ips-for-domains/#comments</comments>
		<pubDate>Sun, 11 Dec 2011 12:25:50 +0000</pubDate>
		<dc:creator>Raj</dc:creator>
				<category><![CDATA[Cpanel Issues]]></category>
		<category><![CDATA[Plesk]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[domain ip address]]></category>
		<category><![CDATA[Domain resolving to which IP]]></category>
		<category><![CDATA[Hwo to check which domain is resolving from which IP]]></category>
		<category><![CDATA[list all domain in cpanel from shell]]></category>
		<category><![CDATA[list all domains in plesk from shell]]></category>
		<category><![CDATA[Script to check the ip for domains]]></category>

		<guid isPermaLink="false">http://www.linuxspy.info/?p=1619</guid>
		<description><![CDATA[Many times it happens that when auditing  a server  you need to  check  which  domain is resolving from  the server in  that case you can  use  the below simple shell script  which  will  list all the domains with  their respective IP&#8217;s. For this all you need to do is to copy all the domains hosted [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Many times it happens that when auditing  a server  you need to  check  which  domain is resolving from  the server in  that case you can  use  the below simple shell script  which  will  list all the domains with  their respective IP&#8217;s. </strong></p>
<p><strong>For this all you need to do is to copy all the domains hosted on the server in a  text file.</strong></p>
<p><strong>For cPanel  you can copy all domains in a .txt file  using the below command :: </strong></p>
<p>&nbsp;</p>
<blockquote>
<pre>root@server[#] cat  /etc/userdomains | awk '{print $1}' | tr -d ':|*' &gt; domainlist.txt</pre>
</blockquote>
<p><strong>For Plesk you can copy all domains in a .txt file  using the below command ::</strong></p>
<p>&nbsp;</p>
<blockquote>
<pre>root@server[#] cd /var/qmail/mailnames ;  ls -l  awk '{print $9}' &gt; domainlist.txt</pre>
</blockquote>
<p><strong>And for  Plain server you can copy all  the domains in a domainlist.txt file</strong></p>
<p>&nbsp;</p>
<p><strong>Now, that we have all the domain names copied in  the domainlist.txt file  we  just need to  execute the below script from shell  as a root user </strong></p>
<p>&nbsp;</p>
<blockquote>
<pre>root@server[#] for i in `cat domainlist.txt`; do host $i | grep 'not found|has IP address';  done</pre>
</blockquote>
<p>&nbsp;</p>
<p><strong>The above command will list the results as ::</strong></p>
<p>&nbsp;</p>
<blockquote>
<pre>test.com has address 192.168.0.1</pre>
<pre>testing.com has address 192.168.0.2</pre>
</blockquote>
<h4>That&#8217;s all.</h4>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxspy.info/1619/shell-script-to-list-ips-for-domains/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

