buy tb500

Archive for the ‘Uncategorized’ Category

Vagrant configuration file

Wednesday, March 27th, 2019

you’re doing.

Vagrant.configure(“2”) do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
# https://docs.vagrantup.com.

config.vm.define “clustercontrol” do |clustercontrol|

clustercontrol.vm.box = “centos/7”

clustercontrol.vm.network “private_network”, ip: “192.168.10.5”

end

config.vm.define “ansible” do |ansible|
ansible.vm.box = “centos/7”
ansible.vm.network “private_network”, ip: “192.168.10.10”
end
config.vm.define “host1” do |host1|
host1.vm.box = “centos/7”
host1.vm.network “private_network”, ip: “192.168.10.20”
end

SSH key (passwordless)

Thursday, March 21st, 2019

$ ssh-keygen -t rsa # press enter on all prompts
$ ssh-copy-id -i ~/.ssh/id_rsa[IP address]

How to avoid WordPress shared hosting high CPU problems

Wednesday, May 27th, 2015

Following are the top 10 tips to keep your CPU usage minimal:

#1. Remove unwanted Plugins

When it comes to WordPress, plugins consume maximum resource. Moreover, with time, several plugins come unresponsive. Often, they may not tally with your present WordPress version also. Hence, it is recommended to install reliable plugins and remove the ones that are no more in use. Using too many plugins overloads the server. Avoid using poorly coded plugins and deactivate the unnecessary ones.

#2. Update to the Latest version plug-ins

Updating plugins is not a cakewalk. The update process may bring along a number of bugs, particularly if you have up have upgraded to the advanced WordPress version but have forgot to keep pace with new developments. However, ensure to check the plug-in discussion groups as well as forums to ensure that it’s fine to update. Updates often pop-up on your screen however, read the pop-up message carefully before clicking the update version.

#3. Routine Database Tables Optimization

To keep things running smoothly, you need to log onto PhpMyAdmin on a routine bases and optimize the database tables. Unoptimized data tables can overload the server. More over, the CPU usage is also more for reading unoptimized data tables. Besides data table optimization, you can also delete spam/unapproved data.

#4. Concentrate on the themes

Themes may also add to high CPU usage. Hence, the moment you realize that too many themes have piled up, try updating or changing them. The more stylish themes you choose, the more loaded the CPU is. Simpler or optimized themes work better and don’t consume much resource. Some themes may come with plugins; in that case you should update the plugins as well. Prefer using a light them that has fewer queries.

#5. WordPress Upgradating and Caching

Are you still laid behind with the older WordPress version? Well, if that is so then it is high time you upgrade to an advanced and latest version. Most of us ignore the idea of upgrading WordPress just because it works perfectly. An upgradation helps because the newer versions are better in terms of security and optimization.

You may also install WordPress caching program. Caching archives each web page on your site. This lowers server load as it doesn’t require sending multiple queries to the database for generating multiple pages.

#6. Reduce widgets

There may be certain widgets that aren’t essential. Check them thoroughly and remove the ones that may not be beneficial for the readers. The more widgets you use the more strain you are enforcing on the server. Hence, to lower server load and CPU usage, get rid of unwanted widgets.

#7. Lower PHP or Database calls

PHP scripts and database calls also consume a lot of CPU resource. Caching your sites helps but certain database/PHP calls cannot be avoided. Hence, you should go through the plugins documentation carefully and disable the unnecessary options.

#8. Lower load on index.php file

At peak hours, your homepage may create a load on your server during the peak hours. To lower this load, ensure keeping your homepage simple. Try to lower the number of posts on your homepage and remove unwanted files, links and high resolution images. It would be even better if you choose a CDN service like Cloudfront

#9 Disable WP-Cron

Disable WP-Cron or change to a scheduled task to run every hour. This will greatly reduce your CPU usage. WP-Cron manages all your scheduled events so it is continually active on many sites when it isn’t necessary.

#10 Avoid plugins that use excessive CPU load.

These are often backup and security pluggins. These functions are best being offered by a quality host provider that has integrated solutions.

Why isn’t my site showing up on search engine results pages?

Monday, December 29th, 2014


There are several reasons why a site might not show up in search engine results pages. Here are the most common ones:

The search engines haven’t indexed the site yet. Sometimes it can take a week or more for a search engine to find your website. This is because your website is new and doesn’t have any inbound links. Once your website is crawled, it usually takes another week or two for it to be pushed out to the index. A long time ago submitting your website to the search engines used to be a good way to speed up the process. But these days there are so many requests that the feature doesn’t work. It’s much easier to create links to get the spiders to crawl your site.

The site isn’t optimized for search engine crawling. Once you submit your site to a search engine, a spider is sent to your site to crawl it for content. These spiders don’t view your site like a visitor would. They scan your site for meta content, keyword saturation, relevant content, and many other factors. Therefore, you need to consider what content search engines actually see on your Web pages.

Wondering why a certain search term doesn’t bring your site up in Google®? Take a look at the page content of your site. If the search term isn’t in the actual content of your site, it’s not considered relevant to the search engines.

Once search engines index your site, and you’ve sprinkled targeted keywords throughout the pages, the site starts displaying in queried search results. However, this does not necessarily mean you’re going to be on the first page of search results.

For sites using JavaScript menus, a sitemap helps search engines index the entire. Because most search engines cannot follow JavaScript links, a sitemap aids in spider navigation.

Not enough quality content. Your Web page copy — being the actual, visible main content of the page — should be presented and arranged in a logical and visually pleasing manner. And, the copy should be rich in keywords.

The keywords should be woven into the flow wherever it is possible, but without sacrificing narrative and textual flow. Note that search engines are very aware of keyword stuffing in page copy. Therefore, do not force keywords into the copy. Rather make the keywords appear as integral part of the natural flow.

In layout and writing style, your copy should suit the page’s main target group. The point is to instantly catch and keep page visitors’ attention, so they stay on your page instead of exiting via the nearest outbound link. Note that Internet readers tend to have shorter attention spans than readers of print media, such as newspapers and magazines. Web page copy should generally be shorter than similar text in printed form. Ideally, you should break up large amounts of text with images, animations or other elements.

Too much Flash®. Flash-animation can be visually stunning and might turn a Web page into a virtual work of art. Unfortunately, very few search engine spiders understand Flash. This means that Flash-embedded page elements, including links and text, are invisible to many visiting spiders. In other words, submitting heavily Flash animated pages to Internet search engines is usually futile.

You can still achieve decent rankings with partially Flash-animated pages by optimizing your site content and meta tags.

The site isn’t optimized for search engine inclusion. Search engine optimization (SEO) describes the process of refining a website to gain a higher search engine ranking in “organic” search engine results. By optimizing your site, you can tailor your site to be search engine-friendly. SEO can be a challenging and rather lengthy process. The more research you put into the practice, the greater of a return you’re going to see in your rankings.

The keyword market is very competitive. Search engines help millions of users across the world navigate the World Wide Web and find specific content amid the billions of documents that inhabit the Web. Make sure you are targeting a less competitive keyword market, so you can gain the attention of your consumer. Remember, your site might be returning in the results of a search engine query, but if you’re keywords are too general your site is going to get lost in the shuffle.

This is where Search Engine Visibility can help:

If you’re using Search Engine Visibility you can use the sitemap submission tool, optimization options, and the SEO Checklist to identify possible issues with your website.

  • Optimize — Using the optimization options, you can tailor your website content to be search engine-friendly. Search Engine Visibility optimization features help you generate keywords, analyze site content, optimize tags, control crawling, and create a sitemap.
  • Analyze — Using the SEO Checklist, you can identify whether you have problems with any of the top 10 most common search engine optimization pitfalls.
  • Submit — Using the submission features, you can submit to specific search engines and directories, check the status of existing submissions, and correct any submission issues. Submitting your URL(s) directly to search engines ensures that their spiders crawl your site at the earliest opportunity.

 

How to find and fix spam script in wp themes and plugins

Wednesday, December 24th, 2014

Be careful while selecting any free Premium WordPress Themes because the theme can be no doubt free but you don’t know if its spam script free too. Else you too will have to invest your time in researching the reasons like me or recovering your losses due to these scam scripts.

In most case spam script are always there if you get a premium theme or plugin from the internet for free. So next time if you get any premium theme or plugins from the internet for free make sure it is spam script free, otherwise you have to pay much more than original cost of the themes and plugins.

As in the traditional way you go for cross checking the theme with your antivirus software and gets a green signal “No Virus Detected”,  you stop here and get it, but the reality is some spam scripts not detected by antivirus,  google webmaster tools or any wordpress security plugin

Let me share my experience in brief. I got an amazing impressive theme used by labnol for free. And the offer for me no doubt was like a “BUMPER PRIZE” . I tested it with antivirus and Google fetch and it shows no error and according to me I became a saver by saving $200. I was really happy with the theme and was using it over my official website. But after one month i realized that by traffic decrease to 80% !!!

This was the time when I was to search for the reasons. Why is my traffic drowning with such a dratic rate… ? What’s wrong with the world???

And after my research I found something that shocked me!!!! Yes it really shocked me when realized that after few refresh my blog redirect to some others site. My website was being controlled by a scam script. But it was quite late for the losses that I bared. I lost my genuine organic traffic, business and of course the hard work that I invested.

This spam script was in themes header file which redirect to other site. So I immediately remove this script and back to my twenty eleven theme.this tutorial will tell you how to find and fix spam script in your theme or plugin

But with every loss you learn something. And no doubt I had lost my ranking but got some answers, and I think they can help my friends and readers.

Why spam script not detected by the antivirus ??

Because this spam script do nothing with your PC

Why spam script does not detected by Google fetch ??

because it redirect to another site only after few page view .

Type of spam scripts in themes and what they can do :

Scam Script implementation can be done in many ways.
-Some spam scripts are placed inside the theme or plugin because for traffic and back link .
-Other scripts can take control of your site and these are much dangerous as it can destroy you website or blog.

Two ways how hackers place these scam scripts:
-The hackers placed spam script in two way either by javascript code or php code.
-Common and interesting thing in both is that in both the cases scripts are encrypted so you can not be sure what this code does?

Encrypted JavaScript spam script

encrypted spam script thumb How to find and fix spam script in wp themes and plugins

Encrypted php spam script

encrypted spam script php thumb How to find and fix spam script in wp themes and plugins

How to find and remove spam script in wordpress themes and plugin????

 

Okay we need an IDE you can choose Notepad++ , Edit plus or Eclipse its your choice.

Whenever you download some suspicious theme or plugin extract it to your desktop.and do the following steps.

  1. Open your IDE . I choose Notepad++ because its light .
  2. Go to search and click find in files menu
  3. Now Find in files Box will be open in Find What enter the keyword eval.
  4. Now choose your theme or plugin directory.
  5. Click on find all.
  6. If result comes click on the link in result bar. You wil see the encrypted line in the line.
  7. Now Remove it.

Follow the same steps for the keywords curl.

cURL is a computer software project providing a library and command-line tool for transferring data using various protocols

curl has no use in your wordpress theme . Although some seo plugins use curl for making connection with remote server.

This method no doubt remove the encrypted script but my recommendation is that use genuine plugins and theme.

“Unable to submit the form, please retry” wordpress contact form

Friday, December 12th, 2014


if you got the following error  “Unable to submit the form, please retry” while you try to submit in wordpress site contact form

you need to follow below solutions to fix the issue

 

1- login to wordpress admin page

2- click on “Forms” on your left side> you will get menue, then click on “forms” in the menue as well

3- you get list of page, click on contact form

4- click on “preview/test”

5- scroll a bit down and untick   “Use AJAX to avoid page reload when submitting form”

6- save setting then the issue confirm will be fix,

i have tried the above solutions my self and fixed the issue

 

thank you.

qmail- plesk – to find spamming ip

Tuesday, November 11th, 2014


if you want to find the spammer ip in qmail plesk

tail -f /var/log/secure

 

more /usr/local/psa/var/log/maillog |grep email ID

 

mail queue   /var/qmail/bin/qmail-qread

Thank you.

Find Spammer in Exim

Tuesday, September 9th, 2014


 

  1. Login to your server via SSH as the root user.
  2. Run the following command to pull the most used mailing script’s location from the Exim mail log:grep cwd /var/log/exim_mainlog | grep -v /var/spool | awk -F”cwd=” ‘{print $2}’ | awk ‘{print $1}’ | sort | uniq -c | sort -n

     

  3. Knowing the mailer.php script was sending mail into Exim, we can now take a look at our Apache access log to see what IP addresses are accessing this script using the following command:

grep “mailer.php” /home/userna5/access-logs/example.com | awk ‘{print $1}’ | sort -n | uniq -c | sort -n

 

Reference

http://www.inmotionhosting.com/support/email/exim/find-spam-script-location-with-exim

 

550 Access denied – Invalid HELO name – SmarterMail

Saturday, August 2nd, 2014


When you send an email through SmarterMail, you receive following error in bounc back email.

Remote host said: 550 Access denied – Invalid HELO name (See RFC2821 4.1.1.1)

Soltution:

  • Login as admin
  • Settings/General Settings/Server Info
  • Set the hostname to ‘mailserver.mydomain.xxx’
  • Point an A record of ‘server1’ to the ip of your server
  • Create a Reverse DNS PTR record for the server ip to resolve back to mailserver.mydomain.xxx

Reason: Remote host said: 601 Attempted to send the message to the following ip’s

Tuesday, December 24th, 2013


An error containing Reason: Remote host said: 601 Attempted to send the message to the following ip’s is returned when SmarterMail is unable to connect to the recipients e-mail server and deliver the e-mail you attempted to send.

 
To resolve the issue, please contact the recipient via alternate methods and inform them of the above. 
 
Typically this happens when the recipients mail server is offline, smtp traffic blocked by a firewall or the e-mail server not accepting connections on port 25.