Wordpress Membership Plugin - MemberWing. And it’s free!
October 2, 2008 by admin · Leave a Comment
If you want to convert your wordpress blog into membership site and shy spending hundreds of dollars upfront - keep reading!
The new free wordpress membership plugin - MemberWing allows to convert your existing blog into membership site without any changes or re-designs.
MemberWing was built with Search Engine Optimization and speed in mind.
By inserting small text marker "{+++}" inside any article (old or new) - the content of it will become "protected" and available only to registered premium members. Simply put - anything that was before the marker - is visible for everyone - so put your teasers here. Anything after the "{+++}" marker will only be visible to users who are "Gold" or "Platinum" members. This is great feature that allows search engines to index and rank free text "teasers" part of your blog/website. Other plugins and multi-hundred dollars membership software packages does not have this very useful feature. They just lock site completely leaving you on your own with zero chance for organic rankings.
Once activated, plugin created 4 separate group members - Bronze, Silver, Gold and Platinum. So you may (if wanted to) have 4 classes of contents and charge fees accordingly to access each class of contents. The way you mark contents of your articles for each group is the same simple one - via markers that separate free teasers from premium "juicy" part. {+} - Bronze members, {++} - Bronze and Silver members, {+++} - Bronze, Silver and Gold members, etc..
Membership plugin MemberWing supports latest version of self-hosted Wordpress 2.6+ and works on any hosted account that allows wordpress installations.
I've installed it here - and protected this article
Here's how your protected article will look like, when viewed by non-premium member:
...{+}
The rest of this article is available to premium members only. Become a member
(You can customize this text and links)
[ Guarded by Wordpress Membership Plugin - MemberWing ]
Aweber vs 1ShoppingCart vs GetResponse - autoresponders comparison
September 30, 2008 by admin · Leave a Comment
I was searching for the best autoresponder to use for business and as many of us do - went to Google to search for unbiased opinions, reviews and experiences. The quest was a bit time consuming - Google still has a work to do eliminating useless spam and zero-value pages from their index. Until they do - we - the searchers has to do it ourselves. So I did it and filtered through the content of all these results to make the final choice.
My research might save you time if you're after similar task.
I already have basic shopping cart account with 1ShoppingCart and they also offer autoresponder at extra monthly cost. Another contender is AWeber. I also found quite a few people using GetResponse. I wanted to find which one is the best and whether I might be missing other choices in this area.
Choosing the right autoresponder is VERY important as the task of moving away from it later on could mean serious loss of established business (old list members refuse to re-optin).
I decided to search for reasonably fresh pages - dated less than 1 yr old. I wanted to find decent reviews/comparisons/articles regarding choosing the right autoresponder.
So here I just list the reasonably decent posts I found and at the end summarize my choice.
- Great discussion thread of Aweber vs GetResponse and autoresponders in general is here:
http://www.copywritersboard.com/copywriting-discussion/1584-autoresponders-aweber-vs-getresponse-vs-6.html
Includes direct responses from Tom Kulzer - founder of AWeber.
Summary - even the ones who blame Aweber for their glitches, agrees that 1SC is worse.
Winner: Aweber. - Good thread at:
http://www.entrepreneurs-journey.com/405/aweber-email-autoresponder-review/
Author was slightly biased to Aweber although plenty of valuable replies / comments and answers on questions. Some mentioning 1ShoppingCart.
Overall winner: Aweber. - Short Positive report about switching from 1ShoppingCart to Aweber:
http://www.kaboodle.com/reviews/testing-aweber-v.-1shoppingcart-for-deliverability
Winner: Aweber. - Another fresh post from Gobala Krishnan:
http://www.gobalakrishnan.com/aweber-defines-email-marketing/
His view in terms of choices: 1: Aweber, 2: GetResponse, 3: 1ShoppingCart
Winner: AWeber. - I wanted to find something "bad" about AWeber just to fill both sides of scale and came across great blog post of Caroline Middlebrook:
http://www.caroline-middlebrook.com/blog/aweber-6-painful-lessons-learned/
At first I thought that her painful lessons would tell people to stay away from aweber, yet i found great teaching article and tips that help other people to actually use aweber more productively.
Cautious winner: Aweber. - Nice post that explains benefits of Aweber vs. Feedburner/Feedblitz:
http://www.chrisg.com/aweber-versus-feedburner-for-bloggers-with-email-newsletters/
Main point of this article is that Aweber beats feedburner/feedblitz combo with introduction of a service that can read your RSS and post it out to subscribers.
I personally was glad to learn that. And here's how Aweber explains it:
When you publish articles to your blog, your blogging software automatically publishes content to an RSS feed containing your newest blog posts.
Our Blog Broadcast feature can check this feed frequently for new content, and if any new articles are found, a blog email newsletter will be automatically created and sent to readers who subscribe to receive them.
This article had great replies from people as well - worth reading! Readers seems to jointly agree in appreciating AWeber's customization features.
Additionally to that from my personal experience customizing and setting up feedblitz as a full blown autoresponder is not for the faint of heart. I really didn't like it's non intuitive and convoluted interface and hence will be switching to other means of feed-to-email delivery.
ON a side note - author have a nice posts for beginner bloggers/marketers about email marketing in general - worth checking:
http://www.chrisg.com/email-marketing-tips-what-is-email-marketing/ - Tom Kulzer (founder of AWeber) on email deliverability to yahoo email addresses:
(need to click link in video window):
http://www.marketing-ideas.org/Stump-Markus-648.php
Conclusions + Bottom line:
- Switching from one autoresponder to another one is bad - choose one carefully and stick with it.
- Stay away from "free" solutions. What you pay is what you get.
- I've known marketers who use solutions that cost almost 100x times more than AWeber but have yet to see independent trustworthy report of their real benefits.
- 1ShoppingCart is great integrated solution for everything e-commerce. It is an excellent shopping cart, it's premium version includes affiliate marketing features, digital downloadable products delivery and autoresponder as well. If you want all-in-one for everything (ecommerce+autoresponder) this might work well.
There were number of people though who expressed criticism toward 1SC autoresponder's features and capabilities in favor of Aweber.
Overall winner of all autoresponders: www.Aweber.com
5R System: How to build your opt-in list 4 to 7 times faster
September 30, 2008 by admin · Leave a Comment
I missed this week's call with Michel Fortin and Daniel Levis about growing your online customer and prospects lists 4 to 7 times faster. Luckily Michel Fortin (my fellow Ottawan) was kind enough to mail me MP3 recording of a call. This call was obviously pre-sale for more complete and detailed system by Daniel Levis but nevertheless it was full of actionable tips that could be utilized by any webmaster in any business immediately.
Just by reading these ideas and acting upon them could really improve the speed of any opt-in prospects gathering process quite a bit.
So here they are.
5R system by Daniel Levis - well defined workflow for improving conversion. It boils down to:
Effective Communication
which in 5R terms could be spelled as:
Right person communicating Right message to the Right audience at the Right time in the Right way
What these principles are (in different order):
-
Right audience.
Take empathy for your audience. Learn their language, find their problems, live their emotions. To do that - search relevant blogs, forums. Create and let people fill single question surveys: whats your biggest question or problem about "X" ?
Utilize exit popups in sales pages - ask question: "why didn't you buy?" or similar, invite feedback. -
Right message.
Begins with simple, easily understood, ultra compelling promise, follows with social proof that your product can deliver on it, ends with a singular clearly defined, easily measurable call to action. This action could be as simple as asking to "put your first name and primary email address to this box". "Click here to lock in your spot". Relevant promise, proof and call to action - helps to grow list faster than competition.
Whats target audience goals? They dont buy things, they buy results, outcomes, benefits. They want to go away from pain / toward pleasure. -
Right person.
You must be perceived as the right person doing communicating. Inject human element into static world of a webpage. Position to the upper left is preferable. Use conversation language - not corporate or average marketing bubble. Jargon/sleng familiar to your target audience could give a good personal feel. Personal signature at the bottom is great. People must feel personal with your marketing message. Physical attractiveness gives best impression. Expression on face - eyes, smile, look - always work well. Evaluate your current imagery - dress, look, allow prospect to identify with you more easily. Positive visual presentation principles allow prospect to bond with you.
Michel Fortin: it takes about 1/20th of a second for a person to decide whether to stay on or leave your website.
-
Right timing.
= Sequence: in what order you will need to deliver your sales message. It must be in series of linked steps. Important to segment the message. Each step must have specific function.
Simple scenario:
- Banner ad(on other sites): seize attention+arose curioucity and interest.
- Landing page: seize attention, establish liking, authority, stimulate reciprocity, demo proof, make offer, reverse risk, create scarcity/urgency and scarcity, take prospect to the shopping cart page.
I personally detest these lame cheap "scarcity" tricks that marketers are trying to pull on you nowadays. Only 29 copies of "digital" downloadable product left, so you have to hurry to buy, or else!!! Yeah right, blow me. Not my type of marketing. When I see this type of stuff on a sales page - I don't trust the marketer any more, don't buy and go to download his product from torrent site in a few days).
- On shopping cart page: summarize offer, restate guarantee, restate social proof, close the deal.What doesn't add to the sale - detract from the sale. The less steps the better.
Dedicated squeeze page - best way to increase number of leads - single purpose - short - all must be above the fold.Longer copy - bad 50% less conversion. Extend person's existing beleifs toward what you want. Don't try to change him. For example: Prospect believes that buying new car is difficult + paying too much. How to bridge gap between distrust and trust? Offer free report: "10 sneaky tricks card dealers use to inflate car price. How to turn tables on them".
if he downloaded your report - trust is gradually established. Series of more emails strengthen trust.
-
Doing it in the right way.
Aim at sales killers: bad things you never want to happen on your website: confusion + boredom + disbelief.
Each line of copy must maintain readers interest. Always keep reason to keep reading.6 words that never failed to captivate interest: "Let me tell you the story" (Gary Bencievenga). Good story always has element of surprise. Good story emotionalize facts - makes them more meaningful. People acts on emotions and than justify their action by logic. Emotion - driving force of sale. Story about blind man's sign: "i am blind - please donate" vs. "It's spring, and i am blind".
Clarity is important. Ok to tease - never ok to confuse. Look at each sentence and eliminate double meaning words. Get rid of too long sentences. Bridge sections together properly.
So here they are - great easy principles to use in your online business to increase conversions and opt-in rates!
Thanks for Michel Fortin and Daniel Levis.
Building fast SEO-optimized websites
This tutorial is the result of my quest to find the best way to build fast, CMS-based, easy to manage, SEO friendly websites that would be well capable of generating money.
(I wanted to use the word "extra" but then why "extra"? It could very well be "main" money! The act of "generating money online" I envision as an act of easily delivering useful products or services to other people with the help of a website and being compensated for your work. The less problems or tractions that are happening during this process - the better)
The following features of WEB site building tool as well as features of final website were of the most importance:
- Ability to quickly build fully featured website. No painstaking struggles with web building software itself is acceptable.
- Ability to easily manage website from any internet-connected computer with any browser. In other words I want CMS (Contents Management System) based solution. No "create here and then copy there" solutions are acceptable any more.
- Ability to clone website - duplicate your success at will!
- Web site needs to load fast - Google spider wouldn't wait 30 seconds to read your sluggish pages and will move on.
- SEO: Web site needs to be highly optimized for search engines and SEO-important elements and structures needs to be highly customizable.
- Web site needs to be WEB2.0 ready. Meaning:
- Allowing your visitors/members to contribute and share contents right on your website.
- Having Social Media / Social Networking elements either built-in or easily added.
- Web site needs to be perfectly suitable for online e-commerce - in other words I want to be able to build online store to sell anything.
- Web site needs to be compatible with modern membership-based solutions (for the webmasters who wants to build membership sites)
- Web site needs to be able to be properly indexable by spiders and able to rank high on major search engines. This of course depends on skills of webmaster, but having these skills - the solution needs to be on par.
- Web site needs to have integrated backup facility - I had my share of defacings done by mentally challenged script kiddies and backups are a necessity of life.
What I don't care much about:
- Obsession with CSS purity. The is no proof that CSS-based website could generate more money than table-based site. CSS - while being a wonderful concept - trying to create perfect CSS based site that works on all browsers - is an ungrateful activity. It will distract you for a long time from other creative work that other people might benefit from. Nevertheless - there are large number of religious CSS obsessive compulsive disorder communities in existence that create (or proudly copy from each other) amazingly good looking pure CSS web pages full of hacks to satisfy all flavors of unruly web browsers - and I totally respect that. If CMS of choice could generate good CSS - it's a plus. Yawn. Btw - i think Yahoo is seriously under way to change the worldwide CSS and Javascript suffering via Yahoo User Interface YUI Library.
- Obsession with [X]HTML validation. Unfortunate reality is that Internet is full of ugly unvalidating pages that generate mind boggling amount of cash for their owners on an hourly basis. To prove my point - search for any popular moneymaking keywords on google and try to validate first 10 hits - you'll see what I mean. Again - the concept of validation has a large following - perfectionists are welcome.
Joomla
At first I went Joomla way. Joomla is an open source Contents Management System. Joomla is packed with features but having said that Search Engine Optimization was not the first priority for Joomla developers. Default URL structures of Joomla looked just plain ugly and while some quick fix was available through admin panel - the need was to install a special add-on component to take care of redirects. Later on this component disappeared from the market to appear later on as part of commercial package of some sort. Joomla wants to be everything for everyone right from the beginning and hence it's admin panel is looking like a freshly decorated Christmas tree carrying tons of elements and features that you might not need, yet missing essentials that you likely want when building SEO optimized website. Additionally to that Joomla being pretty large and heavy CMS is not super high performing either. To customize Joomla look and feel you'd be quickly lured into paid membership sites selling $49 templates or custom consulting fees. Joomla has a huge community of faithful followers and excited community of commercial developers selling their products to faithful followers. I had my share of Joomla-related purchases and paid memberships and still ended up having my site look like 1000 of other similar looking sluggishly performing Joomla-based sites. On January 22, after long and painful pregnancy Joomla gave birth to the new major upgrade to their CMS - 1.5. By then I was heavily into Wordpress-based solutions so I couldn't participate in the party. If you'd search "powered by joomla" - google will claim to find 11.3 million of pages carrying this message! This is a strong sign of huge online presence for Joomla. This also means that if someone wants to hack your Joomla-based website - you'll be easy to find. Although removing this message from your site is considered to be "not ethical" among conservative pussies.
Drupal
Then I went to Drupal. Drupal is another well-respected CMS enjoying huge following. It comes bare bones (although lately more and more features were included) and to make something useful out of it - you'll need to lurk around, read tons of documents, assemble a long list of things-to-do and things-to-get. I passed through these stages and ended up creating some sort of conglomerate of "recommended" add-ons and mods to make my new Drupal-based website perfectly SEO optimized. Along the way I actually wrote a tutorial on "How to make your Drupal site SEO friendly", describing step by step instructions. But performance of my website sucked! It was very slow. Slower than Joomla even. You may blame my cheap shared hosting account but Wordpress works so fast at the same place - so I wouldn't bother argue.
Having said that I think Drupal is a great concept that makes for stable secure bare-boned system for building scalable web portals - but only for people who knows PHP and MySQL intimately. Last I checked - the consultant who knows Drupal and who knows what he is doing charges about $100/hr for the work. Unfortunately it takes too much time for an an average small business owner to create customized Drupal based website and make it do what you want.
Yahoo Merchant Accounts
Then I went to Yahoo stores. Let me say it upfront - if you are USA-based person and want to build 50,000 items high performing catalog-based no-frills online store - stop reading and go for Yahoo Stores. Yahoo have everything ready for that. Additional HUGE bonus comes in terms of trust and ranking friendliness from Google. Most Yahoo stores are apparently allocated within small group of IP addresses that Google is well aware of that. Yahoo have very strict policy on what you can sell from your store as well as what you cannot do from your hosting account. Lots of things you cannot do - hence Yahoo hosting is the last choice of hackers, spammers, lamers, script kiddies, black hatters and similar audience frowned upon by Google. What it means for you as potential Yahoo store owner - is that Google will grant you immediate trust in your intentions and content with ability to be ranked higher than your less-than fortunate competitors hosting at other hosting services. One of my test pet store was almost immediately listed on the first page of google for high volume 2 keyword target phrase.
Disadvantages of Yahoo Merchant account are including but not limited to the following:
- Cannot do a lot of things you could of if you'd own a dedicated server or 1and1 shared hosting account. SSH access? silly question! .htaccess editing? you gotta be kidding! Custom redirects? Stay away! - This list of limitations is likely much longer...
- Yahoo Store editor is Yahoo's proprietary way to create online store - very awkward but does the job. They also have other ways such as "Store Builder" or some extensions for Dreamweaver.
- Serious customizations of templates needs to be done via RTML - which is another Yahoo proprietary technology. The result of it is a limited number of people who knows it (including YOU) and it will cost you a fortune to satisfy your Yahoo Store customization urges.
- Canadian customers are loosely supported in terms of merchant accounts. Yahoo only supports some sort of Nashville-compatible merchant accounts platform. This term is widely recognized in USA but canadian bank's reps never heard about this term. In other words - Yahoo Merchant Solution does not properly support canadians. You can still make sales via PayPal of course.
- It's not designed to run multiple stores off single account. In other words if you want to open www.mysuperwidgets.com and your wife wants to open www.mysuperpets.com - you'll need to fork out $40/mo x number_of_stores_you_want_to_open to have them up and running. There are braintwisting ways to get around that but I didn't even wants to know it.
- Hard (impossible even?) to build multi-level hierarchy of web pages - all pages are created off root folder.
Having said all the bad things above - if you are in USA - most of that negatives does not apply to you. With yahoo stores you *will* enjoy rock solid secure space, lighting fast page loading, huge respect from Google search engine right up front and large community of free and commercial services available to help you launch successful online store. If you are looking for absolutely world's best help in setting up, configuring and customizing your yahoo store regardless of your level of experience - I could highly recommend Shauna Fennel's 1Choice4YourStore. I met her personally at business conference and highly admire her friendly personality, attention to details and quality of work she is doing. She offers her services commercially yet if you have a budget to start up your online business from 0 to 60 is shortest possible time - she's your one stop place for anything about Yahoo Stores.
XSite Pro is a great product created by Paul Smithson. I purchased it and used it. I was pretty impressed by many features. Paul put SEO features of his product on high priority and that earned him well deserved appreciation from many customers. Did I mention that XSitePro has a strong set of SEO features and options? XSite Pro is not an online CMS though - all development has to happen on single machine and results of website development work need to be uploaded to the hosting server every time. The disadvantage of XSite Pro - is that it creates pure static portals and you need to have access to your development system to change/update/delete anything from your site. This of course carrying the advantage of these web pages being fast. In fact super fast. The added advantage of your website pages being fast is that Google will give you more ranking juice - it is well known fact that faster loading pages are favored more by Google and other search engines, spidered more often and rank higher than slower ones. Obviously google wouldn't want to put slow loading web sites high in ranks, but with static sets generated by XSitePro your site will likely fly fast even at cheap shared hosting accounts.
So if you are hosting your site on shared hosting space and do not need dynamic database driven backend - this is the great software, probably the best one available out there.
It also has great active community and excellent set of up to the point video tutorials.
For more complicated social media ready dynamic portals look for dynamic CMS-type solutions, like Semiologic's XSitePro.
A bit about WEB hosting places/spaces.
HostGator
I use Hostgator for their very fast and SEO friendly hosting space with lighting fast tech support. I haven't considered them until recently where I came across super fast loading affiliate marketing website carrying many products and images on the front page. Yet it was so fast that I asked owner where does she host it - and the answer was HostGator. I was sure she had a dedicated server - but she really surprised me saying that she only has shared hosting "baby" account with them. I signed up with them next day. Being slightly geeky - I requested and received SSH access. They have SVN installed by default (my preferred way to install/upgrade wordpress). I have to admit their support is very good. Contrary to other services it takes them only 15-30 minutes to answer/resolve your problems by email. With other hosters you're lucky to get ticket opened within 24 hrs of submission. Phone tech support, while takes some time on hold during peak hours is handled completely by local American people. No offense to my old 1AND1 service where young guy from india recently managed to resolve/answer all my questions pretty nicely. Hostgator also offers a less advertised dedicated IP address for mere $2/mo extra on any account. I think this is just amazing. All above sold me out and I closed accounts at other places in favor of hostgator. In fact I looking to move there all my domains and spaces. So if you are looking for fast and reliable service - look no further, I give them 2 thumbs up.
...and back to SEO WEB Development solutions
This and some my other sites are using commercial WordPress theme named Semiologic Pro theme.
So what is Wordpress? Wordpress is an open source (read - "free") blogging software with an excellent set of features. Additionally to that it is simple, written on PHP language, it is "lightweight" and very well performing even when installed on cheap shared hosting accounts. As a blogging software it has large set of features + zillions of plugins, widgets and themes created by other people. Wordpress has large following and large number of developers creating free and commercial add-ons to it.
I came across wordpress in my quest to create a simple CMS-based website where I could concentrate on quickly building my online presence and business instead of struggling with mutually incompatible WEB technologies and overcomplicated lackluster solutions.
Semiologic Pro is an excellellent "umbrella" of the latest WordPress software packaged with most useful plugins, widgets and add-ons to help you create, customize and manage full-blown CMS based website highly optimized for Search Engines and well suitable for Social Media Marketing (WEB 2.0).
This page will contain more details about my experience, tips and suggestions about Semiologic Pro for Wordpress.
Semiologic Pro is good not only to build general static websites - but also fully featured online stores. Here is one of my online stores built with Semiologic and selling very specialized hardware devices -> VGA Frame Grabbers
Here's a good example of how well optimized is Semiologic Pro - based website:
- I registered domain on November 25-th
- At the end of December I put a first cut of the website (with many pages were still empty)
- On January 25th, 2 month anniversary of domain name I made a first $300 sale! The customer reported that he went on Google looking for specific device, found my site on the first page and proceeded with his purchase. This made me really feel excited about the powers of Wordpress + extra work that was put into Semiologic Pro "umbrella" to come up with a good package suitable for money making websites.
Self hosted, self-themed WordPress sites.
Semiologic Pro theme offers you "everything at almost click of a button", but if you'd like to get a bit more customized look and feel for your blog/site then you might need to check other available themes. There are plenty of resources, free and commercial.
If you looking to create SEO friendly online magazine, sports reporting blog, business looking portal, real estate website or news portal - then Revolution Themes is the first class option to consider. Product of Brian Gardener, Revolution Themes gives you excellent quality design and top notch polished look and feel portal at a click of a button.
Additionally to large selection of high quality themes he also offer free support forum that has active and knowledgeable community of webmasters and developers. While software itself is not free - it is one of the best available collection of modern Wordpress themes available.
I strongly suggest considering Revolution Themes by Brian Gardener. I use and will continue to use them on multiple portals with great success. I purchased his all-inclusive developer's option and was pleased to discover how easily they could be modified and customized for different needs.
Next Upcoming Article: Building SEO Optimized Membership sites with Wordpress.
Please subscribe for an updates to be notified about new article as soon as it will be published.
Disclaimer: I've purchased and using all above products myself on more than one site with significant success. I actually purchased many more tools, software packages and services to evaluates but this article dedicated to the collection of the best tools that I could personally recommend.
How to reboot/reset/restart iPhone or iPod touch
September 1, 2008 by admin · Leave a Comment
How to prevent wordpress from messing up with your rich editing tags
August 30, 2008 by admin · Leave a Comment
function myautop ($text) { return $text; }
function mytext ($text) { return $text; }
remove_filter ('the_content', 'wpautop');
add_filter ('the_content', 'myautop');
remove_filter ('the_content', 'wptexturize');
add_filter ('the_content', 'mytext');
You may download actual plugin from the link below. Just unzip, copy it into ./plugins directory, activate and enjoy.
Note: to fix another big annoyance with Wordpress eliminating line breaks - this is what I use to "create" line breaks that Wordpress doesn't kill. In HTML mode insert this code:
<div style="margin:2em;"><span style="display:none;">-</span></div>Advantage of this method is that you can regulate size of your "custom line break" by changing value in "margin" CSS tag. Bonus TIP: Actually I just found a better way to keep linebreaks: Advanced TinyMCE plugin seems to add lot more features to TinyMCE editor as well as has an option to stop Wordpress's messing up with line breaks.
Download: WP-AllowTags Wordpress Plugin that allows inserting tags
Perfect Setup: Ubuntu Hardy+Nginx+MySQL5+PHP5+Wordress
August 16, 2008 by admin · 21 Comments
The Perfect Setup:
Ubuntu Server 8.04.1 LTS Hardy (supported to 2013) + EngineX (NGINX) Web Server built from sources + MySQL 5 + PHP 5.
(Or LEMP )
Tested on 256MB VPS slice at SliceHost. Should work for other hardware.
From baremetal/barebone/empty fresh install of Ubuntu Server to shiny, fast and SEO-friendly Wordpress Portal propelled by WP Super Cache plugin.
All configured and powered by NGinx WEB Server.
Step by step copy/paste instructions - from "zero to hero" with everything on a single page (albeit long one) and in the right order. Just what your granma was asking for!
Every time I need to quickly utilize new product or technology it always made me wonder "why don't someone came up with a simple step by step instructions on which buttons to press to make this thing work?". So instead of waiting for someone to do it this time I decided to make one myself.
After spending countless hours and days hunting for scripts, searching for clues, scrolling through misleading posts, extracting bits from articles, eliminating blubber and fluff, bugging busy geeky people for hints and getting all necessary pieces together in the right order I finally came up with this instructional post. It all boils down to step-by-step copy/paste instructions that should take you less than 1 hour to get from freshly installed Ubunty server to fully functioning, search engine optimized business-ready Wordpress-powered website.
I tested it all on 256MB VPS image offered by SliceHost but the same instructions should work just just fine on any real hardware as well.
Most credits goes to excellent set of articles by PickedOnion at SliceHost plus to some more sources, acknowledged within this post.
This article assumes your username is 'jsmith' and your domain is 'mydomain.com'.
Now it's time to get our hands dirty!
Secure and tidy-up your fresh Ubuntu Server installation- Login as root.
- Change root password:
passwd - Add new username - yourself:
adduser jsmith
visudo - Append this line to end of file (to navigate within 'vi' editor to create next line - use these: L, $, a, <ENTER>):
jsmith ALL=(ALL) ALL
To save and exit do: <ESC>, :wq, <ENTER>
- SSH configuration:
nano /etc/ssh/sshd_config - Find
Port 22 - and change number to something different (12345) to make hacking more difficult.
- Set these to:
PermitRootLogin no
X11Forwarding no
UsePAM no
- Append these lines to the very end:
UseDNS no
AllowUsers jsmith - Secure slice with iptables
iptables-save > /etc/iptables.up.rules
nano /etc/iptables.test.rules - 1. Copy contents of this file -> and paste it into 'iptables.test.rules'.
2. Change port number to your port number on this line:
...
-A INPUT -p tcp -m state --state NEW --dport 30000 -j ACCEPT
...
3. Save and exit (Ctrl+O, Ctrl+X).
- Apply new iptables rules:
iptables-restore < /etc/iptables.test.rules - Save iptables rules permanently:
iptables-save > /etc/iptables.up.rules - Make sure iptables rules will apply when server is rebooted as well: nano /etc/network/interfaces
- Add new line after these 2:
auto lo
iface lo inet loopback
pre-up iptables-restore < /etc/iptables.up.rules
Save and exit. - Reload SSH to use new ports and configurations:
/etc/init.d/ssh reload - Keep 'root' session running and open second session.
SSH login to your slice to new port, with your new username and password:
- Linux: ssh -p 12345 jsmith@123.45.6.78 - Windows: putty jsmith@123.45.6.78 12345 - If you logged on successfully via your new username: 'jsmith' - you may close 'root' session now.
If not - you still have 'root' session opened to fix problems. In the worst case - you can use web based console shell login from your manage.slicehost.com dashboard to fix issues. sudo aptitude -y install screen - Enter screen:
screen Screen is the great little utility that allows your terminal session activity to keep running (say lengthy builds) even if you were cut off or disconnected. You may reenter your abandoned screen session at a later time to check progress and continue working.
- Usage notes:
- new screen session: screen
- attach to existing screen session: screen -r
- list all existing screen sessions: screen -list (output: 12045.pts-0.MENSK (Detached), etc...)
- attach to existing screen session by number: screen -r 12045
- detach from screen session and back to main terminal: Ctrl+A, D
- to rename screen session from inside of it: Ctrl+A, Shift+A - and enter it's name.
- to kill current screen session: exit or Ctrl+A
- to kill all screen sessions: Ctrl+A,\
- Edit .bashrc file to make terminal window a bit more helpful:
nano ~/.bashrc - Append these lines to the end of it:
export PS1="\[\e[32;1m\]\u\[\e[0m\]\[\e[32m\]@\h\[\e[36m\]\w \[\e[33m\]\$ \[\e[0m\]"
alias ll="ls -la"
alias a2r="sudo /etc/init.d/apache2 stop && sleep 2 && sudo /etc/init.d/apache2 start"
alias n2r="sudo /etc/init.d/nginx stop && sleep 2 && sudo /etc/init.d/nginx start"
alias ver="cat /etc/lsb-release"
Save and exit.
- Reload .bashrc to make changes active:
source ~/.bashrc - Update sources: sudo aptitude update
- Set system locale:
sudo locale-gen en_US.UTF-8
sudo /usr/sbin/update-locale LANG=en_US.UTF-8 - Upgrade system now:
sudo aptitude -y safe-upgrade
sudo aptitude -y full-upgrade
- Install Build essentials:
sudo aptitude -y install build-essential - Install PHP with php client and without apache (one long line):
sudo aptitude -y install php5-common php5-dev php5-mysql php5-sqlite php5-tidy php5-xmlrpc php5-xsl php5-cgi php5-mcrypt php5-curl php5-gd php5-memcache php5-mhash php5-pspell php5-snmp php5-sqlite libmagick9-dev php5-cli - Fix issues with imagick:
sudo aptitude -y install make php-pear
sudo pecl install imagick (Just press <ENTER> at prompt)
- Adjust php.ini:
sudo nano /etc/php5/cgi/php.ini Adjust memory limit to accomodate Wordpress requirements:
Find line:
memory_limit = 16Mand change it to:memory_limit = 48M
Append to the end of this file this line:
extension=imagick.so
- Install MySQL server, secure it and create database for wordpress (or other dynamic web app you will be using)
sudo aptitude -y install mysql-server mysql-client libmysqlclient15-devSecure MySQL server:
mysql_secure_installation - Install subversion (best to install and upgrade wordpress is via subversion):
sudo aptitude -y install subversion
- First - login into slicemanager at manage.slicehost.com, click "DNS" tab and "Reverse DNS".
Replace record with:mail.mydomain.com.
- sudo nano /etc/hostname Replace slicename with mail.mydomain.com
- sudo nano /etc/hosts
Replace 127.0.0.1 slicename with 127.0.0.1 mail.mydomain.com - Reboot slice:
sudo reboot - When rebooted - check slice hostname (it must be mail.mydomain.com):
hostname -f - Install dns utils and check RDNS (by using your slice's IP address)
sudo aptitude -y install dnsutils - Check if RDNS propagated already:
dig -x 123.45.6.78
If "ANSWER SECTION" still shows old name (or anytihng other than mail.mydomain.com) - you'll have to wait until propagation will finish before proceeding. - sudo aptitude -y install postfix telnet mailx Select "Internet Site", and then for "System mail name:" -> "mail.mydomain.com".
- Redirect all email destined to 'root' toward 'jsmith':
sudo nano /etc/aliasesAppend this line to the end of file:
root: jsmith
- Refresh aliases database now:
sudo newaliases
- Edit main.cf file:
sudo nano /etc/postfix/main.cf
- Replace: myorigin = /etc/mailname
- with this: myorigin = $mydomain
- Replace this: mydestination = mail.mydomain.com, localhost.mydomain.com, , localhost
- with this: mydestination = $mydomain, localhost.$mydomain, localhost
- Replace this: mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
- with this: mynetworks = 127.0.0.0/8
- Restart postfix to make changes take effect: sudo /etc/init.d/postfix restart
- Test email sending capabilities. Run little php console prog to do it. Check if you receive email message.
php -a
mail ('your@email.com', "Hello from slice!", "My email setup works!");
exit (); - Follow this article if you want to setup postfix to receive emails as well (opening port 25 in firewall and configuring stuff):
But what we've done already is enough to have hosted portal with full outgoing email capabilities.
-
Install NGINX. Dependencies first. Check sysoev.ru website first for newer versions though.
sudo aptitude -y install libpcre3 libpcre3-dev libpcrecpp0 libssl-dev zlib1g-dev
mkdir ~/sources
cd ~/sources/
wget http://sysoev.ru/nginx/nginx-0.6.32.tar.gz
tar -zxvf nginx-0.6.32.tar.gz
cd nginx-0.6.32
./configure --sbin-path=/usr/local/sbin --with-http_ssl_module
make
sudo make install
- Start Nginx:
sudo /usr/local/sbin/nginx - Navigate to your slice's IP address to test that it works: http://123.45.6.78
- Stop Nginx:
sudo kill `cat /usr/local/nginx/logs/nginx.pid` - Create NGINX init script
sudo nano /etc/init.d/nginx Copy/paste this text into it:
#! /bin/sh ### BEGIN INIT INFO # Provides: nginx # Required-Start: $all # Required-Stop: $all # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: starts the nginx web server # Description: starts nginx using start-stop-daemon ### END INIT INFO PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/local/sbin/nginx NAME=nginx DESC=nginx test -x $DAEMON || exit 0 # Include nginx defaults if available if [ -f /etc/default/nginx ] ; then . /etc/default/nginx fi set -e case "$1" in start) echo -n "Starting $DESC: " start-stop-daemon --start --quiet --pidfile /usr/local/nginx/logs/$NAME.pid \ --exec $DAEMON -- $DAEMON_OPTS echo "$NAME." ;; stop) echo -n "Stopping $DESC: " start-stop-daemon --stop --quiet --pidfile /usr/local/nginx/logs/$NAME.pid \ --exec $DAEMON echo "$NAME." ;; restart|force-reload) echo -n "Restarting $DESC: " start-stop-daemon --stop --quiet --pidfile \ /usr/local/nginx/logs/$NAME.pid --exec $DAEMON sleep 1 start-stop-daemon --start --quiet --pidfile \ /usr/local/nginx/logs/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS echo "$NAME." ;; reload) echo -n "Reloading $DESC configuration: " start-stop-daemon --stop --signal HUP --quiet --pidfile /usr/local/nginx/logs/$NAME.pid \ --exec $DAEMON echo "$NAME." ;; *) N=/etc/init.d/$NAME echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 exit 1 ;; esac exit 0 - Set it executable:
sudo chmod +x /etc/init.d/nginx - Add it to the default run levels:
sudo /usr/sbin/update-rc.d -f nginx defaults - Create folder layout:
sudo mkdir /usr/local/nginx/sites-available
sudo mkdir /usr/local/nginx/sites-enabled -
Adjust main NGINX configuration file to look in sites-enabled folder for vhosts: sudo nano /usr/local/nginx/conf/nginx.conf Delete all contents of this file and replace it with this:
user www-data www-data; worker_processes 4; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; sendfile on; tcp_nopush on; tcp_nodelay off; keepalive_timeout 5; gzip on; gzip_comp_level 2; gzip_proxied any; gzip_types text/plain text/html text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript; include /usr/local/nginx/sites-enabled/*; }
- Create default vhost in 'sites-available' folder:
sudo nano /usr/local/nginx/sites-available/defaultCopy/paste this text into it:
server { listen 80; server_name localhost; location / { root html; index index.php index.html index.htm; } # redirect server error pages to the static page /50x.html # error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } } - Enable vhost by creating symlink:
sudo ln -s /usr/local/nginx/sites-available/mydomain.com /usr/local/nginx/sites-enabled/mydomain.com - Start NGINX:
sudo /etc/init.d/nginx start Make sure that navigating to slice IP will show "Welcome to nginx!" default page.
- Create layouts for domains to be served.
sudo mkdir /home/public_html
sudo mkdir -p /home/public_html/mydomain.com/{public,private,log,backup} - Setup users and groups to manage portal:
sudo -i
addgroup webmasters
usermod -G webmasters jsmith
OPTIONAL: Do it for every user who will be allowed to manage files for the portal:
usermod -G webmasters user_2
usermod -G webmasters user_3
Change ownership of main web files directory:
chown -R jsmith.webmasters /home/public_html
chmod -R g+w /home/public_html
Set group id to 'webmasters' for all newly created files and dirs.
find /home/public_html -type d -exec chmod g+s {} \;
exit - Create initial index.html file for the domain:
sudo nano /home/public_html/mydomain.com/public/index.phpPaste this into the file:
<?php echo phpinfo(); ?>
First - create supporting wordpress-specific configuration files. 'wordpress_params.regular' - is basic wordpress config file that allows support for nice permalinks.
sudo nano /usr/local/nginx/conf/wordpress_params.regular...And paste into it the following contents:
# WordPress pretty URLs: (as per dominiek.com) if (-f $request_filename) { break; } if (-d $request_filename) { break; } rewrite ^(.+)$ /index.php?q=$1 last; # Enable nice permalinks for WordPress: (as per Yawn.it) error_page 404 = //index.php?q=$uri;Save and exit.
Next - create second version of NGinx-specific Wordpress config file that allows support for nice permalinks + WP Super Cache plugin. WP Super Caching gives you extra horse power and juice to handle intense traffic and getting your portal seriously ready to be DIGG-ed.
sudo nano /usr/local/nginx/conf/wordpress_params.super_cache...And paste into it the following contents (Credits: Matt Stevens):# if the requested file exists, return it immediately if (-f $request_filename) { break; } set $supercache_file ''; set $supercache_uri $request_uri; if ($request_method = POST) { set $supercache_uri ''; } # Using pretty permalinks, so bypass the cache for any query string if ($query_string) { set $supercache_uri ''; } if ($http_cookie ~* "comment_author_|wordpress|wp-postpass_" ) { set $supercache_uri ''; } # if we haven't bypassed the cache, specify our supercache file if ($supercache_uri ~ ^(.+)$) { set $supercache_file /wp-content/cache/supercache/$http_host/$1index.html; } # only rewrite to the supercache file if it actually exists if (-f $document_root$supercache_file) { rewrite ^(.*)$ $supercache_file break; } # all other requests go to Wordpress if (!-e $request_filename) { rewrite . /index.php last; }Create vhost for domain mydomain.com:
sudo nano /usr/local/nginx/sites-available/mydomain.com...And paste into it the following contents:
server { listen 80; server_name mydomain.com; rewrite ^/(.*) http://www.mydomain.com/$1 permanent; } server { listen 80; server_name www.mydomain.com; access_log /home/public_html/mydomain.com/log/access.log; error_log /home/public_html/mydomain.com/log/error.log; location / { root /home/public_html/mydomain.com/public/; index index.php index.html; # Basic version of Wordpress parameters, supporting nice permalinks. # include /usr/local/nginx/conf/wordpress_params.regular; # Advanced version of Wordpress parameters supporting nice permalinks and WP Super Cache plugin include /usr/local/nginx/conf/wordpress_params.super_cache; } # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; include /usr/local/nginx/conf/fastcgi_params; fastcgi_param SCRIPT_FILENAME /home/public_html/mydomain.com/public/$fastcgi_script_name; } }Above will append 'www' to all non-www requests - all requests for http://mydomain.com/dir/page will be redirected to -> http://www.mydomain.com/dir/page.
As you can also see above we enabled 'wordpress_params.super_cache' settings. If for some reason you'll have problems - you may comment ' ....wordpress_params.super_cache' line out, disable wordpress WP Super Cache plugin via Wordpress admin panel and uncomment '...wordpress_params.regular' settings (+restart Nginx). From my own test - they both works with or without WP Super Cache enabled and I'd definitely prefer WP Super Cache to be up and running.
- Enable site:
sudo ln -s /usr/local/nginx/sites-available/mydomain.com /usr/local/nginx/sites-enabled/mydomain.com
- Making NGinx to serve PHP and make it all start automatically after system restart (Credits):
sudo aptitude -y install libfcgi0
cd /etc/default/
sudo wget -O php-fastcgi http://www.mensk.com/uploads/php-fastcgi.txt
cd /etc/init.d/
sudo wget -O php-fastcgi http://www.mensk.com/uploads/php-fastcgi.rc.txt
sudo chmod +x php-fastcgi
sudo /usr/sbin/update-rc.d -f php-fastcgi defaults
sudo /etc/init.d/php-fastcgi start Restart NGINX:
n2r (or sudo /etc/init.d/nginx stop, sudo /etc/init.d/nginx start)
- Navigate to your website: http://mydomain.com you should be redirected to http://www.mydomain.com and then see phpinfo() screen...
- Reboot your slice and make sure that after restart everything still works (NGINX & Co restarts properly)
sudo reboot
- Install Wordpress. Login to mysql console as mysql's root user: mysql -u root -p
- Issue this command to create new username for Wordpress database (replace username, password and database name with your values):
mysql> grant all privileges on *.* to wp_user@localhost identified by "wp_pa55w0rd";
mysql> create database wp_dbase;
mysql> quit - Get Wordpress files directly from SVN repository. See this great article about using subversion to install and update Wordpress.
cd /home/public_html/mydomain.com/public
sudo rm index.php
svn co http://svn.automattic.com/wordpress/tags/2.6 .
mv wp-config-sample.php wp-config.php
sudo nano wp-config.php
Set database name, DB user name and password, Change DB prefix to something different (good security measure), save and exit.
- Adjust permissions:
sudo chmod -R 777 /home/public_html/mydomain.com/public/wp-content
sudo chmod 666 /home/public_html/mydomain.com/public/wp-config.php - Access your site: http://www.mydomain.com/
- Enter blog name, remember the password that wordpress gave you.
- Login as admin/password
- Click Users tab at upper right in admin panel
- Click on 'admin' user
- Change password to something secure and you'd remember.
- Logoff, Logon again with your new password.
- Goto Settings->Permalinks
- Set (x) "Custom Structure" -> /%category%/%postname%/, [Save Changes], ignore Wordpress warning: "You should update your .htaccess now." - it cannot find .htaccess - we are not running apache.
- Access your blog's "About" page - and voila - it should work just fine as this: http://www.mydomain.com/about/ (instead of default ugly: http://www.mydomain.com/?p=123) - Download and unzip WP Super Cache plugin into '/home/public_html/mydomain.com/public/wp-content/plugins' directory. Activate it via Admin panel.
For FTP-ing purposes I use FileZilla configured to use SFTP. (I don't elaborate on specifics of installing and activating Wordpress plugins in this document).
- Goto Plugins, activate "WP Super Cache".
- Goto Settings->WP Super Cache and set (x) WP Super Cache Status to "ON". [Update Status].
You'll see bunch of warnings on this page regarding "mod rewrite" rules and ".htaccess" file. Just ignore these - we are not using Apache so WP Super Cache cannot find apache specific places to write settings. We did it for WP Super Cache already inside of 'wordpress_params.super_cache' - which contains "translation" of caching rules from Apache to Nginx.
Your WP Super Cache-ed blog should be up and running now at fullest speed. - Make 'wp-content' directory a bit more secure: sudo chmod -R 755 /home/public_html/mydomain.com/public/wp-content - Goto Manage->Categories. Create few categories with subcategories.
- Goto Write->Post - create few posts and assign them to subcategory, publish, save.
- Access your posts - and see that they all have nice SEO-friendly URLs, thanks to custom wordpress-specific setups we included in our '/usr/local/nginx/sites-available/mydomain.com' file.
- This also works just fine with John Godley's excellent redirection plugin that supports flexible custom redirects with regular expressions. - Customize your theme and go wild!
- Enjoy your fresh shiny new Wordpress blog, with nice SEO friendly permalinks enabled, ready to utilize powerful caching capabilities of WP Super Cache plugin, running under cutting edge NGINX web server, powered by top of the line Long Term Supported (up to 2013) Ubuntu 8.04 Hardy, hosted by great VPS hosting team at SliceHost.com!
Use Google Webmaster Tools to see through the walls …
July 12, 2008 by admin · Leave a Comment
- Go to https://www.google.com/webmasters/tools , signup
- Go to Dashboard -> Statistics -> Overview -> Top Search queries.
How to redirect old webpages to the new ones
How to redirect web pages, what is 301 redirect and how to do redirects in different technologies
Sometimes we move domains, rename pages, migrating to different hosting account and different content management systems. This all result in URL change (changing of address) of our old pages. With proper usage of redirects this move will be easy and as search engine friendly as we could make it.What is a 301 redirect?
301 Redirect - tells Search Engines that your old page has "permanently moved" to the new location - new page. 301 Redirect could also affect group of pages or the whole site altogether. Your old site will be gradually removed from the Search Engine' indexes and your new site will take its place. The advantage of using this approach is that the 301 Redirect will also transfer the link popularity gained by your old site, to the new one. The bad news is that some search engines might not recognize that you've simply changed domains and will subject your new domain to the aging delay as if it were a brand new site. The result is that your rankings might suffer, especially in more competitive markets. Regardless of that 301 redirect is the best recommended technique to do redirects. 301 redirect will work just fine in most cases, such as:- domain.com -> www.domain.com
- domain.com/old-page -> domain.com/new-page
- domain.com/old-category/page1 -> domain.com/new-category/page1
########## Begin - prohibit usage of URLs without "www" ###########
RewriteEngine On
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www.yourwebsitename.com [NC]
RewriteRule (.*) http://www.yourwebsitename.com/$1 [R=301,L]
########### End - prohibit usage of URLs without "www" ##########
How to do redirects in PHP
<?php header("Location: http://www.newsite.com/"); ?>
or:
<?php
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.newsite.com");
?>
How to do redirect in JSP (Java)
<% response.setStatus(301); response.setHeader( "Location", "http://www.newsite.com/" ); response.setHeader( "Connection", "close" ); %>
How to do redirect in CGI PERL
$q = new CGI;
print $q->redirect("http://www.newsite.com/");
How to do redirect in Ruby on Rails
def old_action headers["Status"] = "301 Moved Permanently" redirect_to "http://www.newsite.com/" end
How to do redirects in ASP
<%@ Language=VBScript %> <% Response.Status="301 Moved Permanently" Response.AddHeader "Location","http://www.newsite.com/" %>
How to do redirects in ASP .NET
<script runat="server">
private void Page_Load(object sender, System.EventArgs e)
{
Response.Status = "301 Moved Permanently";
Response.AddHeader("Location","http://www.newsite.com");
}
</script>
More readings: Apache .htaccess tutorial Credits: WebConfs

