Posts Tagged ‘Control Panel’

Help my WordPress was Hacked! Now What?

First off, don’t panic. That might seem like simple advice or even bad advice but after your website was hacked, the last thing you want to do is panic or try doing this too quickly.

Step One when dealing with a hack is to determine where that hack is.

When I’m called in to help get a hacked website back together, the first thing that I do is disable all the plugins and see if the vandalism goes away. If it does, the hack is in one of the plugins and I simple reactivate them one at a time until I find the culprit.

If it’s not in the plugins, I download a fresh theme from WordPress.org and install it on my website, this allows me to see if the hack is in my theme files. If it is, simply reinstalling my theme will solve the problem.

Using a tool like phpMyAdmin, I scan the database for keywords and common phrases which might point to a database insertion.

Finally, I test the WordPress files themselves. A lot of hackers attach their rubbish to the core WordPress files these days, to clean them up I simply replace them all with a fresh install.

What to do next?

If you suspect your website has been the victim of a hack, the most important thing to do is replace all your current usernames and passwords with clean ones.  Make sure to include:

  1. FTP & Hosting Control Panel
  2. WordPress Admin
  3. Database Connectivity

Afterwards, ensure you’ve deleted all non essential user accounts in WordPress and be sure to follow my guide to securing WordPress.

How do you move a website to a new domain?

“… changing your IP address, webhost, domain name, blog template, and blog version all at the same time is the exact opposite of what you should normally do. It’s better to change only one thing at a time so that if something goes horribly wrong, you can trace what caused it.”

 - Matt Cutts (http://www.dullest.com/blog/switching-things-around/)

Why move a website?

First and foremost, why would you move a website? Well there’s a few reasons that I can think of right off the top of my head:

  • Your old domain name was inappropriate
  • You lost your old domain
  • You decided to change focus
  • You started on a sub domain and related to a full

What ever the reason, sometimes we have to move domains so the real question is … how do you do it right?

How to move a domain properly

Moving WordPress

First, lets assume that you’re using WordPress.

  1. Log into your phpMyAdmin or control panel and export the WordPress database to an SQL file.
  2. Save the SQL to your hard drive and open it in a text editor
  3. Search for the path of your old domain (i.e. thisismyurl.com) and replace it with your new domain (i.e. getawaygraphics.com) If you’re changing the path, (/blog/) to the root or something as well please make sure to search for the whole string!
  4. Search again! 
  5. Change your server paths. This is a UNIX friendly path that the server uses to identify where you are on that hard drive. For example it may look like /var/www/t/thisismy/public_html/. If you don’t know your server path use my phpinfo() plugin for WordPress to find it.

Installing WordPress on a new domain

Now that you’ve altered your SQL for your old WordPress website,

  1. Install a copy of WordPress on your new domain
  2. Open your phpMyAdmin or control panel and paste the edited SQL into your SQL query box
  3. Wait …
  4. Open your new website in a separate web browser. Assuming everything worked, you should be up and running.

One final note, I always like to re-save my permalink options at this point to ensure the server writes a proper .htaccess file as sometimes it seems to act up.

Search Engine Optimization for the new domain

Next, you’ll want to make sure that the search engines know that you’re new domain is the correct domain and that your old domain is no longer active. You can do this using what is called a 302 redirect. Pretty fancy right? Not really, we’re geeks but … it’s important and that’s where Matt’s post Switching things around comes in handy.

It’s easy to setup your domain name you don’t need to be an expert.

Setting our GoDaddy settings to point to BlueHost

OK so the other day I wrote about the fact that you don’t need to hire a web guru to setup your website using something like Blogger, WordPress.com or BlueHost and yesterday I told you how to setup your own domain name such at a hosting company like GoDaddy or Domains At Cost but how do you combine them? Again, this is painfully simple and not just for spiffy web guys like me. Anybody can do this, so lets take a quick look at how it’s done.

In this example, I’m going to assume that you’re hosting your website at BlueHost and you’ve registered your domain name with GoDaddy, if you’ve done it else where the steps should be fairly simple to modify with a little bit of common sense and reading their Frequently Asked Questions section.

First … we need to point the domain name to the hosting company. We do this by logging into GoDaddy and editing something special called the DNS records. You can find this under your account Domain Manager. If you have multiple domain names, it will display a list and prompt you to select the one you’re looking to modify. At the top of the domain profile, there’s a button called Name Servers, we’re going to click that and expose the Custom Name Servers option where we simply type the name servers for BlueHost. The name servers for BlueHost are:

  • ns1.bluehost.com
  • ns2.bluehost.com
BlueHost setup process

BlueHost setup process

Once that’s done, setting up your hosting account at BlueHost takes about 15 minutes and requires very little technical knowledge.

Now that you’re in the Add Domain screen, specify the name of the domain you wish to setup and the wizard should fill out the rest of what you need for you.
Please note, in order to assign a domain to BlueHost the first step at GoDaddy must already be complete, sometimes this takes a few hours so my advice is after you’ve completed the process at GoDaddy take a couple of dollars from the money you just saved and go have a coffee.
Now you’re done. Your website will take between 24 and 48 hours to propagate which is a fancy Internet term for point to the right place. Once it’s done you’ll be able to setup your own emails and put up a website at your new address, which I will talk about later this week  so why not sign up for my email notification or RSS feed to stay connected.
In the interest of being honest, BlueHost pays me to refer people to them but I’d do it anyways. While you’re waiting for me to write something else, feel free to comment on any of my existing articles.

Using MAMP and LAMP for WordPress Development

My FTP program is a time thief. Sometimes when I’m in the middle of a major edit, it’ll hang or crash or simply refuse to do what I’m asking it to. More often than not however it will simply choose to take seconds to do what I want it to do in a fraction of a second.

What am I going on about? Frankly, sometimes my tubes are clogged and FTP’ing changes to my web host takes far too long. It’s not their fault, I live in a city with free high speed WiFi access virtually everywhere in town. This is great but it means that I do a surprisingly large amount of my work sitting in coffee shops, on park benches or along the river. The bad part is that it’s a public WiFi so I’m reluctant to use FTP passwords across the network and sometimes it’s a little slower than I’d like.

My Solution? MAMP, Macintosh Apache MySQL PHP, it’s available from http://www.mamp.info/en/index.php and it’s free. There’s also Windows and Linux versions of the tool but since I’m a MacHead I choose to use the version best suited for me. What MAMP does is install the equivalent of a Linux web server on your computer, which allows you to host your own WordPress websites on your local computer for development purposes.

To do this, first you’ll have to download the MAMP installer and set it up on your Mac (remember, there are PC versions called LAMP). Next, copy your WordPress website in the /Applications/MAMP/htdocs/ directory and set up your local copy of WordPress as you normally would.

If you already have a copy of WordPress running on your hosted blog, use your phpMyAdmin control panel to export your database and install it on your laptop. Next, download and edit your local copy of wp-config.php to have the following settings:

define(‘DB_NAME’, ‘intranet’); // The name of the database
define(‘DB_USER’, ‘root’); // Your MySQL username
define(‘DB_PASSWORD’, ‘root’); // …and password
define(‘DB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value

If you’ve done everything correctly, you can now access a local copy of your WordPress website from http://localhost:8888/wordpress/.

Remember, changes to your local blog *do not* update your hosted blog but this is a great way to make edits to your templates, test local content and develop client websites in a localized, hosted environment.

For bonus coolness, if you setup your Adobe Dreamweaver site correctly you can make edits to your themes without having to upload anything to a web server. I know this is a sad confession but I use this technique regularly while sitting in airport terminals.

I’d love to be able to sync my live blog directly with my local offline copy every now and then, so that I can always have a fresh copy on my MacBook. What would you do?

How can you make $500 a month part time from the web?

So maybe $500 a month isn’t going to let you retire this year but with the economy going down the tubes and our fearless political leaders still assuming that Wall Street will fix itself, it’s time to share a little secret with you … the web really does work.

Using the method below, I easily make $500 each month from my own web blogs and it’s really pretty easy. I spend about 10 hours a month working on my sites, you can do the math.

First, you need to cover a few basics in order to get your website up and running.

1) Select a blogging package

This is pretty simple really, there are a few out there but WordPress is my personal favorite, it’s super easy to use and even comes with some great looking themes. You can also use something like

3) Hosting

 

 

A web host is a dedicated place on the web that you can put your website. Personally I love hosting at BlueHost. They’re wonderful, friendly, helpful and have WordPress preinstalled. They can also take care of your domain name registration.

4) Analytics

You’ll want to signup for Google Analytics and insert the code into the footer of your website. Analytics are web statistics, it will tell you who’s reading your blog and where they’re coming from. Remember, without data your decisions are nothing more than guesses … Google takes the guessing away.

Now that you have the basic pieces of the puzzle, we need to put it all together.

5) Building your first blog

First, we need to activate our BlueHost account and log into our account manager. Towards the bottom of the control panel you’ll find a link called Fantastico, which we’ll need to click to install WordPress.

Fantastico will ask you some questions about what you want to call your blog etc. and when you’re done, it will redirect you to your WordPress blog. It’s really that simple.

6) Inserting your Google Analytics code

Now that your blog is running, you’ll need to do some technical stuff for a few minutes. Log into Your Google Analytics account and add your new website. Once done, select Get Code and copy the JavaScript.

Return to BlueHost and select Design > Edit Theme from your WordPress installation. On the right hand side you’ll see an option for your site Footer. This is the file that appears on the bottom of all your pages, you’ll want to open that file and paste the JavaScript just before the tag in your footer.

What this has done is installed the tracking scripts on every page your site generates, remember how to do it because later when we change your theme you’ll have to do it again.

7) Sign up for ad programs

There are a few great ad programs out there, the most popular of course is Google AdSense but there are plenty to choose from. Once you’ve signed up for some ad programs it’s time to start thinking about where (and how) to place ads on your website. There are aslo some great sites like Commission Junction and wonderful affiliate programs for you to use.

8) Designing a better website

There are plenty of great themes out there for WordPress, even the default one is pretty great but if you’re looking to make money from your sites you’ll want to find a good WordPress theme, ideally free. Once you’ve done that simply upload it to your website using an FTP program and activate it.

Remember, you’ll need to update your Google Analytics code (step 6) in the new template and you should take the Google Adsense code from the previous step and place it in your template.

9) Start blogging

Everything before this is pretty simple really, if you can’t do it yourself send me an email and I’ll take care of it for you but the hard part about making money on a blog is … writing the blog.

There’s a few things to keep in mind when you’re writing.

First, make sure that you’re writing about something people care about. It doesn’t have to be popular, and niche blogging is great but it has to be something that people really want to read otherwise you’re wasting your time.

Second, try to make it original. Search engines (and readers) are not looking for copy-and-paste posts from other sites, so write something original if you’re looking to get traffic.

Finally, write often. Try to write as often as you can but ensure it’s good, clean and useful writing. If you can do that, you’ll build a reputation as a reliable source quickly.

10) Promotion

The best way to get people to read your website is to post reliable comments in forums, on other blogs and sites with links back to your own online blog. Before you know it, if you’re a good net citizen other blog owners and readers will start visiting your site to see what else you have to say. Remember to always have a hyperlink to your blogs in your signatures to increase traffic to your site.

BlueHost also gives you $75 worth of advertising on Google and Yahoo, use it to build an online marketing campaign to draw even more traffic to your website.

I hope my suggestions helped, feel free to comment and share your own thoughts with me.