tag:blogger.com,1999:blog-53623652676498246362024-03-20T04:17:14.516-07:00Web Hosting , Ethical hacking and lots more ...All Techn!cal S0lut!0n Under 0ne R00f !!!Anonymoushttp://www.blogger.com/profile/16181170512501847718noreply@blogger.comBlogger85125tag:blogger.com,1999:blog-5362365267649824636.post-58433227531100875812013-07-11T05:43:00.000-07:002013-07-11T05:43:13.887-07:00DNS cache problem on local machine !!!<div dir="ltr" style="text-align: left;" trbidi="on">
DNS cache is most common problem in now a days and largely its create difficulty to web developer and technician who are working to solve the web issue.You can clear the DNS cache from your local machine by using following commands as per your local machine operating system.<br /><br />1) For Windows<br /><br />- Start -> Run -> type cmd<br />-In command prompt, type<br /><br />ipconfig /flushdns<br /><br />2) For Linux<br /><br />- To restart the nscd daemon, type<br /><br />/etc/rc.d/init.d/nscd restart in your terminal<br />3) For Mac OS X<br /><br />- type lookupd -flushcache in your terminal to flush the DNS resolver cache.<br />ex: bash-2.05a$ lookupd -flushcache<br /><br />4) For WIN 7<br /><br />Here is how to fix that corrupted DNS cache in WIN 7.<br /><br />1. Click the Microsoft Start logo in the bottom left corner of the screen<br />2. Click All Programs<br />3. Click Accessories<br />4. RIGHT-click on Command Prompt<br />5. Select Run As Administrator<br />6. In the command window type the following and then hit enter:<br /><br />ipconfig /flushdns</div>
Anonymoushttp://www.blogger.com/profile/16181170512501847718noreply@blogger.com0tag:blogger.com,1999:blog-5362365267649824636.post-66855954924305944192013-07-06T05:18:00.003-07:002013-07-06T05:18:51.804-07:00WordPress Blog Brute Force Flood Underway !!<div dir="ltr" style="text-align: left;" trbidi="on">
Recently we have seen on-going global attack on WordPress installations across every web host in existence. This attack is well organized and specially targets the file wp-login.php. Some of the ramifications of this attacks are<br /><br />1) Sites are loading extremely slow.<br />2) Unable to login to WordPress Admin Panel.<br />3) Website could even intermittently go down for undisclosed periods of time.<br /><br />So what needs to bed one. Here are some tips we will let you know to protect your WordPress blog.<br /><br />1) Make sure that you keep updated your WordPress blog with all the plugins ,themes to the most current WordPress version. WordPress team is constantly upgrading and patching the software for<br />inherent security.<br /><br />2) We may recommend you to change your WordPress admin panel password as soon as possible. Make sure your password is atleast eight ten characters long and contain a random mixture of character as well as special symbols.<br /><br />3) We may recommend you to allow access to wp-login.php file from only limited IP’s.<br /><br /><files wp-login.php=""><br />order deny,allow<br />Deny from all<br />allow from 1.2.3.4</files><br /><br />Note: – Please replace 1.2.3.4 with your actual IP address. We do not guarantee a solution or fix for this issue, But with the above methods we managed to stopped the attacks atleatst temporarly. Try it at your own risk.</div>
Anonymoushttp://www.blogger.com/profile/16181170512501847718noreply@blogger.com0tag:blogger.com,1999:blog-5362365267649824636.post-47938590732006767332013-07-02T21:27:00.001-07:002013-07-02T21:27:34.774-07:00Setup HAProxy on CentOS !!!<div dir="ltr" style="text-align: left;" trbidi="on">
HAProxy stands for High Availability Proxy, for the High Performance TCP/HTTP load balancing.<br /><br />Installation Steps :<br /><br /># yum -y install wget gcc gcc-c++ autoconf automake make<br /><br /># wget http://haproxy.1wt.eu/download/1.4/src/haproxy-1.4.20.tar.gz /download<br /><br /># tar -zxf haproxy-1.4.20.tar.gz<br /><br /># cd haproxy-1.4.20<br /><br /># make TARGET=centos<br /><br /># cp haproxy /usr/sbin/haproxy<br /><br />Now take configuration files :<br /><br /># wget http://layer1.rack911.com/haproxy/haproxy-standard.cfg -O /etc/haproxy.cfg<br /><br /># wget http://layer1.rack911.com/haproxy/haproxy.init -O /etc/init.d/haproxy<br /><br />================================================<br />Sample /etc/haproxy.conf file:<br /><br />global<br />maxconn 4096<br />pidfile /var/run/haproxy.pid<br />daemon<br /><br />defaults<br />mode http<br />retries 3<br />option redispatch<br />maxconn 2000<br />contimeout 5000<br />clitimeout 50000<br />srvtimeout 50000<br /><br />listen server0 192.168.1.1:80<br />mode http<br />balance roundrobin<br />server server1 192.168.1.2:80 check ( Replace with your public IPs)<br />server server2 192.168.1.3:80 check<br />================================================<br />Start the load balancer now<br /><br />Note : Just make sure you have set a proper data syncronization between your two web-servers</div>
Anonymoushttp://www.blogger.com/profile/16181170512501847718noreply@blogger.com0tag:blogger.com,1999:blog-5362365267649824636.post-10174429269974464022013-05-15T08:26:00.000-07:002013-05-15T08:26:00.915-07:00How to install maldet in linux server !<div dir="ltr" style="text-align: left;" trbidi="on">
<b>Maldet also known as Linux Malware Detect virus scanner for Linux.<br /><br />Go to the below path:<br /><br /> cd /usr/local/src/<br /><br />Download the tar file using the below link:<br /><br /> wget http://www.rfxn.com/downloads/maldetect-current.tar.gz<br /><br />Extract the file using the below command:<br /><br /> tar -xzf maldetect-current.tar.gz<br /><br />go to the maldet folder:<br /><br /> cd maldetect-*<br /><br />Now, run the below command to install maldet:<br /><br /> sh ./install.sh or sudo sh ./install.sh<br /><br />It will give below output:<br /><br /> Linux Malware Detect v1.3.4<br /> (C) 1999-2010, R-fx Networks <proj r-fx.org=""><br /> (C) 2010, Ryan MacDonald <ryan r-fx.org=""><br /> inotifywait (C) 2007, Rohan McGovern <rohan mcgovern.id.au=""><br /> This program may be freely redistributed under the terms of the GNU GPL<br /><br /> installation completed to /usr/local/maldetect<br /> config file: /usr/local/maldetect/conf.maldet<br /> exec file: /usr/local/maldetect/maldet<br /> exec link: /usr/local/sbin/maldet<br /> cron.daily: /etc/cron.daily/maldet<br /><br /> maldet(32517): {sigup} performing signature update check…<br /> maldet(32517): {sigup} local signature set is version 2010051510029<br /> maldet(32517): {sigup} latest signature set already installed<br /><br /> <br /><br />To update the maldet use the below commands:<br /><br /> maldet –update-ver<br /><br /> maldet –update[/i]<br /><br />To scan the files:<br /><br /> maldet -a /home/username/<br /><br />It will scan all the files and provide you the output:<br /><br /><br /><br />To scan all user uder public_html paths under /home*/ this can be done with:<br /><br /> root@server[~]# maldet –scan-all /home?/?/public_html<br /><br />To scan the same path but the content that has been created/modified in the last 5 days:<br /><br /> root@server[~]# maldet –scan-recent /home?/?/public_html 5<br /><br />To scan but forget to turn on the quarantine option, you could quarantine all malware results from a previous scan with:<br /><br /> root@server[~]# maldet –quarantine SCANID<br /><br />If you wanted to attempt a clean on all malware results from a previous scan that did not have the feature enabled, you would do with:<br /><br /> root@server[~]# maldet –clean SCANID<br /><br />If you had a file that was quarantined from a false positive or that you simply want to restore (i.e: you manually cleaned it), you can use the following:<br /><br /> root@server[~]# maldet –restore config.php.2384<br /> root@server[~]# maldet –restore /usr/local/maldetect/quarantine/config.php.2384<br /><br /> </rohan></ryan></proj></b></div>
Anonymoushttp://www.blogger.com/profile/16181170512501847718noreply@blogger.com0tag:blogger.com,1999:blog-5362365267649824636.post-35840584039284409752013-03-23T14:17:00.000-07:002013-03-23T14:17:36.865-07:00Unsuspending Bandwidth Limit Exceeded user/domain<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<b><span style="color: white;">Hello,</span></b><br />
<b><span style="color: white;"><br /></span></b>
<b><span style="color: white;">If domain is giving the error of "Bandwidth Limit Exceeded" you can unsuspend it from WHM or terminal as well.</span></b><br />
<b><span style="color: white;"><br /></span></b>
<b><span style="color: white;">From WHM :</span></b><br />
<b><span style="color: white;"><br /></span></b>
<b><span style="color: white;">To bring the website back online or un-suspend the bandwidth exceed-er, use the option</span></b><br />
<b><span style="color: white;">WHM >> Account Functions >> Unsuspend Bandwidth Exceeders >> click “Proceed”.</span></b><br />
<b><span style="color: white;"><br /></span></b>
<b><span style="color: white;">This will reset the bandwidth usage to zero for the account. To increase the bandwidth limit for the account, use the option</span></b><br />
<b><span style="color: white;"><br /></span></b>
<b><span style="color: white;">WHM >> Account Information >> “View Bandwidth Usage”</span></b><br />
<b><span style="color: white;"><br /></span></b>
<b><span style="color: white;">From Shell :</span></b><br />
<b><span style="color: white;"><br /></span></b>
<b><span style="color: white;">vi /var/cpanel/users/USERNAME</span></b><br />
<b><span style="color: white;">change BWLIMIT (Increase the value)</span></b><br />
<b><span style="color: white;">/scripts/updateuserdomains</span></b><br />
<b><span style="color: white;">cd /var/cpanel/bwlimited/</span></b><br />
<b><span style="color: white;"><br /></span></b>
<b><span style="color: white;">remove the files related to that user or domain </span></b><br />
<b><span style="color: white;">OR</span></b><br />
<b><span style="color: white;">rename the fies with suffix _bk</span></b><br />
<b><span style="color: white;">e.g.; </span></b><br />
<b><span style="color: white;">user_bk</span></b><br />
<b><span style="color: white;">domainname.com_bk</span></b><br />
<b><span style="color: white;">www.domainname.com_bk</span></b><br />
<b><span style="color: white;"><br /></span></b>
<b><span style="color: white;">This will bring the website back online..</span></b><br />
</div>
Anonymoushttp://www.blogger.com/profile/16181170512501847718noreply@blogger.com0tag:blogger.com,1999:blog-5362365267649824636.post-78510279749224128502013-03-23T12:56:00.000-07:002013-03-23T12:56:06.299-07:00How to reset bandwidth for a domain in WHM/CPANEL using Shell !!!<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<b><span style="color: white;">You can follow below steps to reset bandwidth of a Domain in cpanel server through Shell :</span></b><br />
<b><span style="color: white;"><br /></span></b>
<b><span style="color: white;">************************************************</span></b><br />
<b><span style="color: white;"><br /></span></b>
<b><span style="color: white;"> ssh to your server</span></b><br />
<b><span style="color: white;"> cd /var/cpanel/bandwidth.cache/</span></b><br />
<b><span style="color: white;"> vi domainname.com and/or vi username</span></b><br />
<b><span style="color: white;"> replace contents with 0</span></b><br />
<b><span style="color: white;"> save and quit</span></b><br />
<b><span style="color: white;"><br /></span></b>
<b><span style="color: white;">************************************************</span></b><br />
</div>
Anonymoushttp://www.blogger.com/profile/16181170512501847718noreply@blogger.com0tag:blogger.com,1999:blog-5362365267649824636.post-58704381306121982002013-03-12T14:52:00.001-07:002013-03-23T14:18:22.489-07:00How insecure is SNMP protocol !!<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div style="border: 0px none; font-family: arial; font-size: 12px; line-height: 18px; padding: 0px;">
<b><span style="color: white;">SNMP itself does not define which information (which variables) a managed system should offer. Rather, SNMP uses an extensible design, where the available information is defined by management information bases (MIBs). MIBs describe the structure of the management data of a device subsystem; they use a hierarchical namespace containing object identifiers (OID).</span></b></div>
<div style="border: 0px none; font-family: arial; font-size: 12px; line-height: 18px; margin-top: 10px; padding: 0px;">
<b><span style="color: white;">SNMP is based on the manager/agent model consisting of an SNMP manager, an SNMP agent, a database of management information, managed SNMP devices and the network protocol.SNMP was derived from its predecessor SGMP (Simple Gateway Management Protocol) and was intended to be replaced by a solution based on the CMIS/CMIP (Common Management Information Service/Protocol) architecture. This long-term solution, however, never received the widespread acceptance of SNMP.</span></b></div>
<div style="border: 0px none; font-family: arial; font-size: 12px; line-height: 18px; margin-top: 10px; padding: 0px;">
<b><span style="color: white;">SNMP traps obviously contain information specific to the SNMP protocol such as Enterprise ID, Generic Trap and Specific Trap. Since SNMP is a UDP-based protocol and messages can therefore be lost, SNMP traps should be avoided where events can be received through other mechanisms such as log file encapsulation.</span></b></div>
<div style="border: 0px none; font-family: arial; font-size: 12px; line-height: 18px; margin-top: 10px; padding: 0px;">
<i><strong><span style="color: white;">Summary:</span></strong></i></div>
<ul style="border: 0px none; font-family: arial; font-size: 12px; line-height: 18px; list-style-position: outside; margin: 10px 0px 10px 30px; padding: 0px;" type="disc">
<li style="border: 0px none; list-style-image: url(http://blog.hostripples.com/wp-content/wp-content/themes/graphene/images/list-style-image.png); margin: 0px 0px 7px; padding: 0px;"><b><span style="color: white;">Not very secure</span></b></li>
<li style="border: 0px none; list-style-image: url(http://blog.hostripples.com/wp-content/wp-content/themes/graphene/images/list-style-image.png); margin: 0px 0px 7px; padding: 0px;"><b><span style="color: white;">SNMP version 2 is addressing this</span></b></li>
<li style="border: 0px none; list-style-image: url(http://blog.hostripples.com/wp-content/wp-content/themes/graphene/images/list-style-image.png); margin: 0px 0px 7px; padding: 0px;"><b><span style="color: white;">Extended security is possible with current protocol (example: DES and MD5)</span></b></li>
<li style="border: 0px none; list-style-image: url(http://blog.hostripples.com/wp-content/wp-content/themes/graphene/images/list-style-image.png); margin: 0px 0px 7px; padding: 0px;"><b><span style="color: white;">Does not reduce its power for monitoring</span></b></li>
</ul>
<div style="border: 0px none; font-family: arial; font-size: 12px; line-height: 18px; margin-top: 10px; padding: 0px;">
<br /></div>
<div style="border: 0px none; font-family: arial; font-size: 12px; line-height: 18px; margin-top: 10px; padding: 0px;">
<br /></div>
<div style="border: 0px none; font-family: arial; font-size: 12px; line-height: 18px; margin-top: 10px; padding: 0px;">
<br /></div>
<div style="border: 0px none; font-family: arial; font-size: 12px; line-height: 18px; margin-top: 10px; padding: 0px;">
<br /></div>
</div>
Anonymoushttp://www.blogger.com/profile/16181170512501847718noreply@blogger.com0tag:blogger.com,1999:blog-5362365267649824636.post-2084300005258640622013-03-12T14:52:00.000-07:002013-03-23T12:57:02.342-07:00How insecure is SNMP protocol !!<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div style="border: 0px none; font-family: arial; font-size: 12px; line-height: 18px; padding: 0px;">
<b><span style="color: white;">SNMP itself does not define which information (which variables) a managed system should offer. Rather, SNMP uses an extensible design, where the available information is defined by management information bases (MIBs). MIBs describe the structure of the management data of a device subsystem; they use a hierarchical namespace containing object identifiers (OID).</span></b></div>
<div style="border: 0px none; font-family: arial; font-size: 12px; line-height: 18px; margin-top: 10px; padding: 0px;">
<b><span style="color: white;">SNMP is based on the manager/agent model consisting of an SNMP manager, an SNMP agent, a database of management information, managed SNMP devices and the network protocol.SNMP was derived from its predecessor SGMP (Simple Gateway Management Protocol) and was intended to be replaced by a solution based on the CMIS/CMIP (Common Management Information Service/Protocol) architecture. This long-term solution, however, never received the widespread acceptance of SNMP.</span></b></div>
<div style="border: 0px none; font-family: arial; font-size: 12px; line-height: 18px; margin-top: 10px; padding: 0px;">
<b><span style="color: white;">SNMP traps obviously contain information specific to the SNMP protocol such as Enterprise ID, Generic Trap and Specific Trap. Since SNMP is a UDP-based protocol and messages can therefore be lost, SNMP traps should be avoided where events can be received through other mechanisms such as log file encapsulation.</span></b></div>
<div style="border: 0px none; font-family: arial; font-size: 12px; line-height: 18px; margin-top: 10px; padding: 0px;">
<i><strong><span style="color: white;">Summary:</span></strong></i></div>
<ul style="border: 0px none; font-family: arial; font-size: 12px; line-height: 18px; list-style-position: outside; margin: 10px 0px 10px 30px; padding: 0px;" type="disc">
<li style="border: 0px none; list-style-image: url(http://blog.hostripples.com/wp-content/wp-content/themes/graphene/images/list-style-image.png); margin: 0px 0px 7px; padding: 0px;"><b><span style="color: white;">Not very secure</span></b></li>
<li style="border: 0px none; list-style-image: url(http://blog.hostripples.com/wp-content/wp-content/themes/graphene/images/list-style-image.png); margin: 0px 0px 7px; padding: 0px;"><b><span style="color: white;">SNMP version 2 is addressing this</span></b></li>
<li style="border: 0px none; list-style-image: url(http://blog.hostripples.com/wp-content/wp-content/themes/graphene/images/list-style-image.png); margin: 0px 0px 7px; padding: 0px;"><b><span style="color: white;">Extended security is possible with current protocol (example: DES and MD5)</span></b></li>
<li style="border: 0px none; list-style-image: url(http://blog.hostripples.com/wp-content/wp-content/themes/graphene/images/list-style-image.png); margin: 0px 0px 7px; padding: 0px;"><b><span style="color: white;">Does not reduce its power for monitoring</span></b></li>
</ul>
<div style="border: 0px none; font-family: arial; font-size: 12px; line-height: 18px; margin-top: 10px; padding: 0px;">
<br /></div>
<div style="border: 0px none; font-family: arial; font-size: 12px; line-height: 18px; margin-top: 10px; padding: 0px;">
<br /></div>
<div style="border: 0px none; font-family: arial; font-size: 12px; line-height: 18px; margin-top: 10px; padding: 0px;">
<br /></div>
<div style="border: 0px none; font-family: arial; font-size: 12px; line-height: 18px; margin-top: 10px; padding: 0px;">
<br /></div>
</div>
Anonymoushttp://www.blogger.com/profile/16181170512501847718noreply@blogger.com0tag:blogger.com,1999:blog-5362365267649824636.post-5857006783688198592013-03-09T13:35:00.002-08:002013-03-12T14:10:35.154-07:00To display the default Apache page how do I set the primary IP address for my cPanel environment !!!<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<b>To display the default Apache page how do I set the primary IP address for my cPanel environment .</b><br />
<b><br /></b>
<b>Log into your cPanel web server via Secure Shell (SSH).</b><br />
<b><br /></b>
<b>Located the httpd.conf file using the following command:</b><br />
<b><br /></b>
<b>located httpd.conf</b><br />
<b>Open the httpd config file found in step 2 using the following command:</b><br />
<b><br /></b>
<b>pico /usr/local/apache/conf/httpd.conf</b><br />
<b>Find the first VirtualHost container in the file. It will look similar to the following: (xx.xx.xx.xx will be the primary IP address of your server)</b><br />
<b><br /></b>
<b><virtualhost xx.xx.xx.xx=""> BytesLog domlogs/cptemp.safesecureweb.com-bytes_log ServerName cptemp.safesecureweb.com DocumentRoot /usr/local/apache/htdocs </virtualhost></b><br />
<b>Above this section, add the following:</b><br />
<b><br /></b>
<b><virtualhost xx.xx.xx.xx=""> ServerAlias xx.xx.xx.xx ServerAdmin admin@domain.com DocumentRoot /usr/local/cpanel/htdocs ServerName xx.xx.xx.xx </virtualhost></b><br />
<b>Save and exit the file.</b><br />
<b><br /></b>
<b>Test the config file to ensure the text you entered is properly formatted using the following command:</b><br />
<b><br /></b>
<b>/etc/init.d/httpd configtest</b><br />
<b>Assuming the test returns the message Syntax OK, restart Apache using the following command:</b><br />
<b><br /></b>
<b>/etc/init.d/httpd restart</b><br />
<b>The restart of Apache will make your websites unavailable for a few seconds.</b></div>
Anonymoushttp://www.blogger.com/profile/16181170512501847718noreply@blogger.com0tag:blogger.com,1999:blog-5362365267649824636.post-33554171028821529612013-03-09T13:20:00.000-08:002013-03-12T14:09:47.397-07:00How to configure cPanel !!!<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<b>Open a web browser and connect to your cPanel Control Panel located at https://ip address:2087.</b><br />
<b>Login as the Administrator using the information sent to you in your setup email.</b><br />
<b>Under the Welcome message click Next.</b><br />
<b>Read the cPanel license agreement and click I Agree.</b><br />
<b>Enter the requested information:</b><br />
<b><br /></b>
<b>Main Shared Virtual Host IP: enter the IP of your VPS Hostname: enter your domain name. If you do not currently have a domain name, you can ignore this field Primary Nameserver: enter the primary name server for your domain name; if you are using HostMySite's nameserver, enter ns1.lnhi.net Secondary Nameserver: enter the secondary name server for your domain name; if you are using HostMySite's nameserver, enter ns2.lnhi.net Tertiary Nameserver: enter the tertiary name server for your domain name; if you are using HostMySite's nameserver, enter ns3.lnhi.net</b><br />
<b>Click Save.</b><br />
<b>Click Next Step to begin the Initial Quota Scan.</b><br />
<b>Click Next Step to continue past the Setup Nameserver screen.</b><br />
<b>Click Next Step to continue past the Setup Resolver Config screen.</b><br />
<b>For Step 6, enter a root MySQL password and click Change Password.</b><br />
<b>Click Finish.</b></div>
Anonymoushttp://www.blogger.com/profile/16181170512501847718noreply@blogger.com0tag:blogger.com,1999:blog-5362365267649824636.post-26401578185834205642013-03-09T13:17:00.000-08:002013-03-12T14:05:37.501-07:00How to install BIND .<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<b>[Root @ example ~] # yum -y install BIND BIND-utils</b><br />
<b>It is set assuming that the global address [192.16.0.80/29], private address [10.0.0.0/24], the following settings in the domain name, and [server.world]: Setting BIND. Please replace to suit your environment. (192.16.0.80/29 is actually the address for private)</b><br />
<b><br /></b>
<b>[Root @ example ~] # echo 'OPTIONS = "-4"' >> / etc / sysconfig / named # If you do not want to use the IPv6 (you will not be set if used) set [Root @ example ~] # vi / etc / named.conf / / / / Named.conf / / / / Provided by Red Hat bind package to configure the ISC BIND named (8) DNS / / Server as a caching only nameserver (as a localhost DNS resolver only). / / / / See / usr / share / doc / bind * / sample / for example named configuration files. / /</b><br />
<b><br /></b>
<b>options { # (Listens to port 53 on all interfaces of the server) Comment # listen-on port 53 {127.0.0.1;}; # (If you do not want to use the IPv6) change listen-on-v6 {None;}; directory "/ Var / named"; dump-file "/ Var / named / data / cache_dump.db"; statistics-file "/ Var / named / data / named_stats.txt"; memstatistics-file "/ Var / named / data / named_mem_stats.txt"; # (Where the internal network, etc.) to allow range queries allow-query {Localhost; 10.0.0.0/24; }; # (Range / the place if there is a secondary DNS) range to allow the transfer of information zone allow-transfer {localhost; 10.0.0.0/24;}; recursion yes; dnssec-enable yes; dnssec-validation yes; dnssec-lookaside auto; / * Path to ISC DLV key * / bindkeys-file "/ etc / named.iscdlv.key"; }; logging { channel default_debug { file "data / named.run"; severity dynamic; }; };</b><br />
<b><br /></b>
<b># Change the following line from all view "internal" { match-clients { localhost; 10.0.0.0/24; }; zone "." IN { type hint; file "named.ca"; }; zone "server.world" IN { type master; file "server.world.lan"; allow-update {none;}; }; zone "0.0.10.in-addr.arpa" IN { type master; file "0.0.10.db"; allow-update {none;}; }; include "/ etc/named.rfc1912.zones"; }; view "external" { match-clients {any;}; allow-query {any;}; recursion no; zone "server.world" IN { type master; file "server.world.wan"; allow-update {none;}; }; zone "80.0.16.172.in-addr.arpa" IN { type master; file "80.0.16.172.db"; allow-update {none;}; }; };</b><br />
<b><br /></b>
<b># Allow-query ⇒ (specify the internal network, etc.) to allow range queries # Allow-transfer ⇒ (range / the place if there is a secondary DNS) range to allow the transfer of information zone # Recursion ⇒ Whether you are allowed to retrieve comeback # View "internal" {~}; ⇒ describes the definition for internal # View "external" {~}; ⇒ describes the definition for the external</b><br />
<b># *. *. *. *. Place of in-addr.arpa is about to enter what was to reverse the network address # If the 10.0.0.0/24 # Network Address ⇒ 10.0.0.0 # Range of network ⇒ 10.0.0.0 - 10.0.0.255 # How to specify ⇒ 0.0.10.in-addr.arpa</b><br />
<b><br /></b>
<b># If 192.16.0.80/29 # Network Address ⇒ 192.16.0.80 # Range of network ⇒ 192.16.0.80 - 192.16.0.87 # How to specify ⇒ 80.0.16.172.in-addr.arpa</b><br />
<div>
<br /></div>
</div>
Anonymoushttp://www.blogger.com/profile/16181170512501847718noreply@blogger.com0tag:blogger.com,1999:blog-5362365267649824636.post-54368023531070191742013-03-07T12:45:00.000-08:002013-03-07T14:36:38.469-08:00Script to kill Roundcube stuck process !!<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;"><b><span style="color: white;"><br /></span></b>
<b><span style="color: white;">Create the new file roundcube.sh and insert the following code.</span></b></span><br />
<b><span style="color: white; font-family: Arial, Helvetica, sans-serif;">#!/bin/sh</span></b><br />
<b><span style="color: white; font-family: Arial, Helvetica, sans-serif;">for ROUNDCUBE in `ps aux | grep roundcube | awk -F ” ” ‘{print $10}’ | awk -F “:” ‘{print $1}’`;</span></b><br />
<b><span style="color: white; font-family: Arial, Helvetica, sans-serif;">do</span></b><br />
<b><span style="color: white; font-family: Arial, Helvetica, sans-serif;">if [ $ROUNDCUBE -ge 20 ]; then</span></b><br />
<b><span style="color: white; font-family: Arial, Helvetica, sans-serif;">pkill -u cpanelroundcube</span></b><br />
<b><span style="color: white; font-family: Arial, Helvetica, sans-serif;">echo “kill roundcube process roundcube”;</span></b><br />
<b><span style="color: white; font-family: Arial, Helvetica, sans-serif;">fi</span></b><br />
<b><span style="color: white; font-family: Arial, Helvetica, sans-serif;">done</span></b><br />
<b><span style="color: white; font-family: Arial, Helvetica, sans-serif;">You can add the cron job to run the above script after a specific time period, if you are facing the roundcube cpu usage issue continuously.Add following line under the crontab by using the crontab -e, it will run the cron after every 10 minutes.</span></b><br />
<b><span style="color: white; font-family: Arial, Helvetica, sans-serif;">*/10 * * * * sh /root/roundcube.sh;</span></b></div>
Anonymoushttp://www.blogger.com/profile/16181170512501847718noreply@blogger.com0tag:blogger.com,1999:blog-5362365267649824636.post-83824660857240171722013-03-07T07:11:00.001-08:002013-03-07T07:11:42.781-08:00How to use cgi script to check the Server uptime .<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="color: white;"><b>The following script you can use to check the Server uptime?</b></span><br />
<span style="color: white;"><b> </b></span><span style="color: white;"><strong>root@admin[/usr/local/apache/cgi-bin]# nano loads<br />#!/bin/bash</strong></span><br />
<span style="color: white;"><b> </b></span><span style="color: white;"><strong>echo Content-type: text/plain<br />echo</strong></span><br />
<span style="color: white;"><b> </b></span><span style="color: white;"><strong>echo $(hostname)<br />echo “=>”<br />echo $(uptime)</strong></span></div>
Anonymoushttp://www.blogger.com/profile/16181170512501847718noreply@blogger.com0tag:blogger.com,1999:blog-5362365267649824636.post-29191647938510409082013-02-23T18:17:00.001-08:002013-02-23T18:17:12.632-08:00Add SPF and Domainkeys in cPanel <div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<b><span style="color: white;">If you have a cPanel based server, adding an SPF record or domain keys entries for domains are so much easier than manually entering them.</span></b><br />
<b><span style="color: white;">cPanel provides the following scripts/commands to help us through this task:</span></b><br />
<b><span style="color: white;"><br /></span></b>
<b><span style="color: white;"># /usr/local/cpanel/bin/domain_keys_installer</span></b><br />
<b><span style="color: white;"><br /></span></b>
<b><span style="color: white;"># /usr/local/cpanel/bin/spf_installer</span></b><br />
<b><span style="color: white;"><br /></span></b>
<b><span style="color: white;">Note:: This would add the records for all domains under this cPanel account. Meaning for all Addon domains too.</span></b><br />
</div>
Anonymoushttp://www.blogger.com/profile/16181170512501847718noreply@blogger.com0tag:blogger.com,1999:blog-5362365267649824636.post-70552865544195535412013-02-23T18:15:00.003-08:002013-02-23T18:15:34.274-08:00Database size doesn't get updated in cPanel. <div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<b><span style="color: white;">If the database inside the cPanel shows 0 mb, it is because the database cache file of the user is not updated. </span></b><br />
<b><span style="color: white;"><br /></span></b>
<b><span style="color: white;">To fix this, login to server via SSH and edit the below file:</span></b><br />
<b><span style="color: white;"><br /></span></b>
<b><span style="color: white;">vi /var/cpanel/cpanel.config</span></b><br />
<b><span style="color: white;"><br /></span></b>
<b><span style="color: white;">check disk_usage_include_sqldbs=0 and change it to disk_usage_include_sqldbs=1, if the line noe found, simply add it to the bottom. </span></b><br />
<b><span style="color: white;"><br /></span></b>
<b><span style="color: white;">You can do the same via WHM >> Main >> Server Configuration >> Tweak Settings >> SQL >></span></b><br />
<b><span style="color: white;">Include databases in disk usage calculations >> Set that to On.</span></b><br />
<b><span style="color: white;"><br /></span></b>
<b><span style="color: white;">Then run the below command:</span></b><br />
<b><span style="color: white;">/scripts/update_db_cache</span></b><br />
</div>
Anonymoushttp://www.blogger.com/profile/16181170512501847718noreply@blogger.com0tag:blogger.com,1999:blog-5362365267649824636.post-52629229671431965932013-02-16T08:34:00.000-08:002013-02-16T08:34:17.585-08:00How to enable alternate port for exim?<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="color: white;"><b>Exim is a mail transfer agent (MTA) used on
Linux/Unix-like operating systems. It is freely available under the GNU
GPL and it aims to be a general and flexible mailer with extensive
facilities for checking incoming e-mail.</b></span><br />
<br />
<span style="color: white;"><b>
</b></span><span style="color: white;"><b>Normally default port for exim is 25. but most of
the ISP block port 25. so it is necessary that an altername port for
exim is open on server. Following are the steps to configure alternate
port on cpanel/WHM installed on the server.</b></span><br />
<br />
<span style="color: white;"><b>
</b></span><span style="color: white;"><b>1) Login to WHM as root.</b></span><br />
<br />
<span style="color: white;"><b>
</b></span><span style="color: white;"><b>2) In WHM click on Main >> Service Configuration >> Service Manager</b></span><br />
<br />
<span style="color: white;"><b>
</b></span><span style="color: white;"><b>3) Now tick the check box under Exim on another port and also enter the alternate port no: in the corresponding text box.</b></span></div>
Anonymoushttp://www.blogger.com/profile/16181170512501847718noreply@blogger.com0tag:blogger.com,1999:blog-5362365267649824636.post-10764495685928360502013-02-16T08:28:00.000-08:002013-02-16T08:28:31.997-08:00Not able to login to Horde?<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="color: white;"><b>Many times it happens that horde wont allow user to login to webmail.</b></span><br />
<span style="color: white;"><b>
</b></span><span style="color: white;"><b>Try following command to fix the issue</b></span><br />
<br />
<span style="color: white;"><b>
</b></span><span style="color: white;"><strong>root@server[~]#/usr/local/cpanel/bin/checkperlmodules</strong></span>
<span style="color: white;"><strong>root@server[~]#/scripts/fullhordereset</strong></span>
<span style="color: white;"><strong>root@server[~]#myisamchk -r /var/lib/mysql/horde/horde_sessionhandler.MYI</strong></span><br />
<br />
<span style="color: white;"><b>
</b></span><span style="color: white;"><b>If still you have problem then check the ownership for session directory present in /var/cpanel/userhomes/cpanelhorde directory.</b></span><br />
<br />
<span style="color: white;"><b>
</b></span><span style="color: white;"><strong>root@server[~]#ll /var/cpanel/userhomes/cpanelhorde</strong></span><br />
<span style="color: white;"><strong></strong></span>
<span style="color: white;"><strong>drwx–x–x 4 cpanelhorde cpanelhorde 4096 June 5 2012 ./</strong></span>
<span style="color: white;"><strong>drwx–x–x 7 root root 4096 Dec 17 01:48 ../</strong></span>
<span style="color: white;"><strong><strong>drwxr-x— 2 cpanelhorde cpanelhorde 4096 </strong><strong>June 5 2012</strong> mail/</strong></span>
<span style="color: white;"><strong>drwx—— 2 cpanelhorde cpanelhorde 4096 Jan 27 14:01 sessions/</strong></span><br />
<br />
<span style="color: white;"><b>
</b></span><span style="color: white;"><b>Session directory should be cpanelhorde.cpanelhorde ownership recursively</b></span></div>
Anonymoushttp://www.blogger.com/profile/16181170512501847718noreply@blogger.com0tag:blogger.com,1999:blog-5362365267649824636.post-30114206556403353422013-02-16T08:18:00.002-08:002013-02-16T08:18:46.836-08:00How to Enable html view for horde?<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="color: white;"><b>Login to shell using root user and follow the following steps to enable HTML view of horde webmail.</b></span><br />
<span style="color: white;"><b>
</b></span><span style="color: white;"><b>root@server[~]# vi /usr/local/cpanel/base/horde/imp/config/mime_drivers.php</b></span><br />
<span style="color: white;"><b>
</b></span><span style="color: white;"><b>Search for the line<br />
—-<br />
/**<br />
* HTML driver settings<br />
*/<br />
$mime_drivers['imp']['html']['inline'] = false;<br />
—–</b></span><br />
<span style="color: white;"><b>
</b></span><span style="color: white;"><b>and replace it with</b></span><br />
<span style="color: white;"><b>
</b></span><span style="color: white;"><b>——–<br />
/**<br />
* HTML driver settings<br />
*/<br />
$mime_drivers['imp']['html']['inline'] = true;<br />
——–<br />
Save the changes and restart the following services.<br />
root@server[~]#service cpanel restart<br />
root@server[~]#/scripts/restartsrv_courier</b></span></div>
Anonymoushttp://www.blogger.com/profile/16181170512501847718noreply@blogger.com0tag:blogger.com,1999:blog-5362365267649824636.post-49985047266052033402013-02-16T08:12:00.001-08:002013-02-16T08:12:54.207-08:00Mysql error : Can’t create new tempfile: ‘*.TMD file<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="color: white;"><b>If you are getting error like Can’t create new tempfile:
‘tablesname.TMD file error while repairing corrupted database tables
please try use following command to fix it.</b></span><br />
<span style="color: white;"><b>
</b></span><span style="color: white;"><strong>Solution : </strong></span><br />
<span style="color: white;"><b>
</b></span><span style="color: white;"><b>You need to just run below command on the shell.</b></span><br />
<span style="color: white;"><b>
</b></span><span style="color: white;"><strong># myisamchk -r -f tables.MYI</strong></span><br />
<span style="color: white;"><b>
</b></span><span style="color: white;"><b>Thats all.</b></span></div>
Anonymoushttp://www.blogger.com/profile/16181170512501847718noreply@blogger.com0tag:blogger.com,1999:blog-5362365267649824636.post-1542031221599083632013-02-16T07:54:00.003-08:002013-02-16T07:54:54.056-08:00Repairing corrupted mysql database !!<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="color: white;"><b>Sometimes it happens that your database get corrupted due to many
reason like it does not get restored properly or server get rebooted
while updating database etc…. and you have tried to repair it using
phpmyadmin and it does shows that it has repaired but it is not.</b></span><br />
<span style="color: white;"><b>
</b></span><span style="color: white;"><strong>Solution :</strong></span><br />
<span style="color: white;"><b>
</b></span><span style="color: white;"><b>Login to server with root access</b></span><br />
<span style="color: white;"><b>
</b></span><span style="color: white;"><b>Stop mysql using following command</b></span><br />
<span style="color: white;"><b>
</b></span><span style="color: white;"><strong>/etc/init.d/mysql stop</strong></span><br />
<span style="color: white;"><b>
</b></span><span style="color: white;"><b>Run following command to check all teh tables in teh database</b></span><br />
<span style="color: white;"><b>
</b></span><span style="color: white;"><strong>/usr/bin/myisamchk /var/lib/mysql/databasename/*.MYI</strong></span><br />
<span style="color: white;"><b>
</b></span><span style="color: white;"><b>Run following command to repair all teh tables in the database</b></span><br />
<span style="color: white;"><b>
</b></span><span style="color: white;"><strong>/usr/bin/myisamchk -r /var/lib/mysql/databasename/*.MYI</strong></span><br />
<span style="color: white;"><b>
</b></span><span style="color: white;"><b>Then recheck again using following command</b></span><br />
<span style="color: white;"><b>
</b></span><span style="color: white;"><strong>/usr/bin/myisamchk /var/lib/mysql/databasename/*.MYI</strong></span><br />
<span style="color: white;"><b>
</b></span><span style="color: white;"><b>Restrart MySql service using following command</b></span><br />
<span style="color: white;"><b>
</b></span><span style="color: white;"><strong>/etc/init.d/mysql restart</strong></span></div>
Anonymoushttp://www.blogger.com/profile/16181170512501847718noreply@blogger.com2tag:blogger.com,1999:blog-5362365267649824636.post-85167980109215940932013-02-16T03:56:00.002-08:002013-02-16T03:57:55.650-08:00Magento – “Failed to mkdir” Error<div dir="ltr" style="text-align: left;" trbidi="on">
<div>
<span style="color: white;"><b> Magento – “Failed to mkdir” Error</b></span></div>
<hr size="1" />
<div id="post_message_74738">
<span style="color: white;"><b>Many times when you try to install a new theme or application from<br /> "Magento Connect Manager” , you may encounter the error :</b></span><br />
<div>
<table border="0" cellpadding="6" cellspacing="0" class="mceItemTable" style="width: 100%px;"><tbody>
<tr><td><span style="color: white;"><b>ERROR: failed to mkdir</b></span></td></tr>
</tbody></table>
</div>
<span style="color: white;"><b>To fix this issue follow the below steps :</b></span><br />
<div>
<table border="0" cellpadding="6" cellspacing="0" class="mceItemTable" style="width: 100%px;"><tbody>
<tr><td><span style="background-color: black;"><span style="color: white;"><b>root@server[#] cd /home/username/public_html/downloader<br /> root@server[#] vi config.ini</b></span></span></td></tr>
</tbody></table>
</div>
<span style="color: white;"><b>It will show something like this :</b></span><br />
<div>
<table border="0" cellpadding="6" cellspacing="0" class="mceItemTable" style="width: 100%px;"><tbody>
<tr><td><span style="background-color: black;"><span style="color: white;"><b>preferred_state=stable<br /> use_custom_permissions_mode=1<br /> mkdir_mode=0777<br /> chmod_file_mode=0777<br /> chmod_file_mode_executable=0777<br /> tmp_dir=../var/tmp<span style="background-color: black;"><span></span></span></b></span></span></td></tr>
</tbody></table>
</div>
<span style="color: white;"><b>Now make the below changes :</b></span><br />
<div>
<table border="0" cellpadding="6" cellspacing="0" class="mceItemTable" style="width: 100%px;"><tbody>
<tr><td><span style="background-color: black;"><span style="color: white;"><b>preferred_state=stable<br /> use_custom_permissions_mode=0<br /> mkdir_mode=0777<br /> chmod_file_mode=0777<br /> chmod_file_mode_executable=0777<br /> tmp_dir=../var/tmp</b></span></span></td></tr>
</tbody></table>
</div>
<span style="color: white;"><b>That’s all you are done. </b></span></div>
</div>
Anonymoushttp://www.blogger.com/profile/16181170512501847718noreply@blogger.com0tag:blogger.com,1999:blog-5362365267649824636.post-1426900952128631372013-02-16T03:54:00.000-08:002013-02-16T03:54:24.417-08:00syslogd status failed in WHM<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="color: white;"><b>Sometimes, you may face an issue related to syslogd showing down in
service WHM >> Main >> Server Status >> Service
Status</b></span><br />
<span style="color: white;"><b>The issue can be resolved by</b></span><br />
<span style="color: white;"><b>Checking related RPM on server</b></span><br />
<span style="color: white;"><b># rpm -q sysklogd</b></span><br />
<span style="color: white;"><b>If its not installed, you can install it by</b></span><br />
<span style="color: white;"><b># yum install sysklogd</b></span><br />
<span style="color: white;"><b>after installation, you will have to restart the service by</b></span><br />
<span style="color: white;"><b># /etc/init.d/syslog restart</b></span><br />
<span style="color: white;"><b>Check the service in Service Manager in WHM, reenable it and check the status in Service Status.</b></span><br />
<span style="color: white;"><b>Its done!</b></span></div>
Anonymoushttp://www.blogger.com/profile/16181170512501847718noreply@blogger.com0tag:blogger.com,1999:blog-5362365267649824636.post-72896790961682993292013-02-16T03:53:00.000-08:002013-02-16T03:53:13.796-08:00Fatal error: Unable to read 32654 bytes in /home/xxx/public_html/includes/functions.php on line 0<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="color: white;"><b>For zend encoded files, you may face following error</b></span><br />
<pre><span style="color: white;"><b>Fatal error: Unable to read 32654 bytes in
/home/xxx/public_html/includes/functions.php on line 0
Its most probable the related files for the script are uploaded in ASCII mode,
all encoded files must be uploaded in binary mode.
01. You need to reupload all files in binary mode,
or set the transfer mode to auto in FTP client.
02. Check if short_open_tags in set as On in PHP configuration ie php.ini
03. Check if you have updated versions for Zend optimizer or ionCube loaders.
In most cases, files reupload in binary mode resoves the issue.</b></span></pre>
</div>
Anonymoushttp://www.blogger.com/profile/16181170512501847718noreply@blogger.com0tag:blogger.com,1999:blog-5362365267649824636.post-38496645968524511472013-02-15T02:43:00.000-08:002013-02-15T02:43:11.063-08:00How to Remove/uninstall MailScanner !!<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div style="border: 0px none; font-family: arial; font-size: 12px; line-height: 18px; padding: 0px;">
<b><span style="color: white;">To remove MailScanner and the MailScanner Front-End, run these commands in shell as root:</span></b></div>
<pre style="font-family: Consolas, Monaco, monospace; font-size: 12px; line-height: 18px;"><b><span style="color: white;">cd /usr/mscpanel
sh uninstall.msfe.sh
cd /root
wget http://www.configserver.com/free/msinstall.tar.gz
tar -xzf msinstall.tar.gz
cd msinstall/
sh uninstall.sh</span></b></pre>
<div style="border: 0px none; font-family: arial; font-size: 12px; line-height: 18px; margin-top: 10px; padding: 0px;">
<b><span style="color: white;">Remove the sare rules and MailScanner-specific SpamAssassin configuration files (in shell as root):</span></b></div>
<pre style="font-family: Consolas, Monaco, monospace; font-size: 12px; line-height: 18px;"><b><span style="color: white;">cd /etc/mail/spamassassin/
rm -fv *sare* configserver.cf mailscanner.cf</span></b></pre>
<div style="border: 0px none; font-family: arial; font-size: 12px; line-height: 18px; margin-top: 10px; padding: 0px;">
<b><span style="color: white;">To remove the MailScanner Configuration icon from cPanel, go to WHM > Packages > Feature Manager. Edit the "disabled" Feature List and uncheck the box for MailScanner Configuration.</span></b></div>
<div style="border: 0px none; font-family: arial; font-size: 12px; line-height: 18px; margin-top: 10px; padding: 0px;">
<b><span style="color: white;">Remove the root cron jobs that run mscpanel.pl, sa_rules.sh (or rules_du_jour), and the cronjob that restarts clamd (in shell as root):</span></b></div>
<pre style="font-family: Consolas, Monaco, monospace; font-size: 12px; line-height: 18px;"><b><span style="color: white;">crontab -e</span></b></pre>
<div style="border: 0px none; font-family: arial; font-size: 12px; line-height: 18px; margin-top: 10px; padding: 0px;">
<b><span style="color: white;">Remove the following lines (if they exist - they may or may not be there) from /scripts/postupcp:</span></b></div>
<pre style="font-family: Consolas, Monaco, monospace; font-size: 12px; line-height: 18px;"><b><span style="color: white;">#!/bin/sh
perl /usr/mscpanel/mscheck.pl</span></b></pre>
<div style="border: 0px none; font-family: arial; font-size: 12px; line-height: 18px; margin-top: 10px; padding: 0px;">
<b><span style="color: white;">Reset Exim Configuration (if desired), in WHM > Exim Configuration Editor > Reset All Configs to Defaults. This is not required. To remove our install of clamav, run these commands in shell as root:</span></b></div>
<pre style="font-family: Consolas, Monaco, monospace; font-size: 12px; line-height: 18px;"><b><span style="color: white;">killall clamd
/bin/rm -Rfv /usr/bin/clam*
/bin/rm -Rfv /usr/sbin/clam*
/bin/rm -Rfv /usr/lib/libclam*
/bin/rm -Rfv /usr/share/clam*
/bin/rm -Rfv /usr/include/clam*
/bin/rm -Rfv /usr/bin/freshclam*
/bin/rm -Rfv /usr/etc/clamav*
/bin/rm -Rfv /var/clamd
/bin/rm -Rfv /usr/local/bin/clam*
/bin/rm -Rfv /usr/local/sbin/clam*
/bin/rm -Rfv /usr/local/lib/libclam*
/bin/rm -Rfv /usr/local/share/clam*
/bin/rm -Rfv /usr/local/include/clam*
/bin/rm -Rfv /usr/local/bin/freshclam*
/bin/rm -Rfv /usr/local/etc/clamav*
/bin/rm -fv /etc/init.d/clamd
/bin/rm -fv /etc/cron.daily/freshclam
/bin/rm -fv /etc/cron.hourly/freshclam
/bin/rm -fv /etc/cron.d/freshclam</span></b></pre>
<div style="border: 0px none; font-family: arial; font-size: 12px; line-height: 18px; margin-top: 10px; padding: 0px;">
<b><span style="color: white;">In WHM > Service Configuration > Service Manager > Additional Services uncheck both boxes for clamav.</span></b></div>
<div style="border: 0px none; font-family: arial; font-size: 12px; line-height: 18px; margin-top: 10px; padding: 0px;">
<b><span style="color: white;">You can then install clamavconnector via WHM > Manage Plugins if desired. if you want to re-enable SpamAssassin through cPanel:</span></b></div>
<div style="border: 0px none; font-family: arial; font-size: 12px; line-height: 18px; margin-top: 10px; padding: 0px;">
<b><span style="color: white;">WHM > Tweak Settings > SpamAssassin > tick<br />WHM > Service Manager > spamd > tick both boxes<br />WHM > Feature Manager > Edit a Feature List > disabled > Edit > SpamAssassin and SpamAssassin Spam Box > tick<br />WHM > Feature Manager > Edit Feature List - edit any feature lists that you want to allow access to the SpamAssassin configuration in cPanel</span></b></div>
<div style="border: 0px none; font-family: arial; font-size: 12px; line-height: 18px; margin-top: 10px; padding: 0px;">
<br /></div>
<div style="border: 0px none; font-family: arial; font-size: 12px; line-height: 18px; margin-top: 10px; padding: 0px;">
<br /></div>
</div>
Anonymoushttp://www.blogger.com/profile/16181170512501847718noreply@blogger.com0tag:blogger.com,1999:blog-5362365267649824636.post-28726758418886437632013-02-15T02:41:00.000-08:002013-02-15T02:41:22.161-08:00Plesk External component has thrown an exception<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div style="border: 0px none; font-family: arial; font-size: 12px; line-height: 18px; padding: 0px;">
<b><span style="color: white;">Following error can come in plesk control panel while setting up/updating physical hosting for a domain in the plesk control panel...<br />------------------<br />External component has thrown an exception.<br />In IIS7NativeProvider module<br />Exception type: System.Runtime.InteropServices.SEHException<br />at _CxxThrowException(Void* , _s__ThrowInfo* )<br />at ServerManagerFactory.getHttpRedirectSection(String location)<br />at IIS7ServerManager.getSitesInfo(IIS7ServerManager* , list<websiteinfo br="" std:="">:allocator<websiteinfo> >* sitesInfo)<br />-----------------</websiteinfo></websiteinfo></span></b></div>
<div style="border: 0px none; font-family: arial; font-size: 12px; line-height: 18px; margin-top: 10px; padding: 0px;">
<b><span style="color: white;">Here is the quick workaround :</span></b></div>
<div style="border: 0px none; font-family: arial; font-size: 12px; line-height: 18px; margin-top: 10px; padding: 0px;">
<b><span style="color: white;">Open IIS, expand sites.<br />In my case, I found an entry "SITE_*****" under sites which was stopped. I was not able to delete it directly from IIS. I used the following command to remove the entry from IIS.<br />-------------------<br />C:\> cd %systemroot%\System32\inetsrv<br />C:\Windows\System32\inetsrv>APPCMD delete site SITE_*****<br />SITE object "SITE_*****" deleted<br />-------------------<br />You need to restart the IIS.</span></b></div>
<div style="border: 0px none; font-family: arial; font-size: 12px; line-height: 18px; margin-top: 10px; padding: 0px;">
<b><span style="color: white;">If you still find the entry "SITE_*****" under sties in IIS, then you need to manually delete the respective entries from the applicationhost.config file.</span></b></div>
<div style="border: 0px none; font-family: arial; font-size: 12px; line-height: 18px; margin-top: 10px; padding: 0px;">
<b><span style="color: white;">Note : It is highly recommended to take the backup of applicationhost.config file before making any changes. You can also copy the entire "inetserv" folder as a backup.</span></b></div>
<div style="border: 0px none; font-family: arial; font-size: 12px; line-height: 18px; margin-top: 10px; padding: 0px;">
<br /></div>
<div style="border: 0px none; font-family: arial; font-size: 12px; line-height: 18px; margin-top: 10px; padding: 0px;">
<br /></div>
</div>
Anonymoushttp://www.blogger.com/profile/16181170512501847718noreply@blogger.com0