↓
 

A Pipe and a Keyboard

A sort of Linux scrapbook

  • Home
  • About
  • Software
  • List of posts

Category Archives: Tech stuff

Post navigation

<< 1 2 … 11 12 13 14 15 16 17 … 27 28 >>

Moving a WordPress site to a new server

A Pipe and a Keyboard Posted on October 5, 2011 by RichardOctober 8, 2011

Moving an ordinary website from one server to another is generally no problem.  The method is to copy across the files, and then to redirect the domain to point to the new server.  Sit back and wait, and shortly the new site will go live and the old can be deleted.

Moving WordPress is a little more complex.

The problem with WordPress is that it is heavily integrated, not just with its database and domain name but also with the actual structure of the server.  Recently I decided for various reasons to move this site and this is more or less the sequence of events.  Note that I could have made the job slightly easier by taking some shortcuts, but when working with a live site, it is better to be cautious and take things one step at a time.

Firstly I set up the new webspace and pointed a spare domain at it.  Once it was running, I set up a new database.  I then installed WordPress and made sure all was running smoothly.  At this point I had a full WordPress installation running that had no connection at all with the site I was moving.  Now was the time to start integrating.

The first thing I did was to download all the files from the old site.  I then uploaded all files – EXCEPT wp-config.php to the new server.  If I had copied wp-config.php, the new site would just point to the old database, which contains the live domain so any testing would just redirect to the old site.  At this stage I could test the appearance and plugins.  At this stage, the new site should be almost identical to the old site, but won’t contain any posts, comments and so on.

I then made a dump of the database from the old site, but did it in two chunks – All the tables EXCEPT _options, and _options on its own.  The former, I inserted into the new database and tested to make sure all the posts were correct.  The latter file has to be manually edited.as it contains absolute path references.

For example, one field in the old file contained the following –

“/usr/local/pex/vhosts/115120/webspace/httpdocs/pipenkeyboard/wp-content/”

That refers to the location relative to the root of the server and is going to be different on any other server.  All that is required is a simple find and replace to update the information from the new server.  If you are not sure, just check the _options record on the new installation, and you will find it there.

Once the file is edited, save and upload to the new database.

Now comes the nerve wracking bit.

First I pointed the live domain to the new site using my control panel.  If the IP address of the new server is different (more than likely it will be) then the live domain details need to be changed on the DNS server.  Once that is done, just sit back and wait.

During my waiting period, I repeatedly checked the live domain.  At one stage, it broke, giving pure text on the screen with no formatting or graphics.  That only lasted a few minutes however, as all the parts became synchronised.

So you are now reading this on the new server.  Hopefully you won’t notice any difference whatsoever.

If you do see any differences, then break it to me gently!

Posted in Tech stuff | Leave a reply

Firefox Nightly

A Pipe and a Keyboard Posted on August 27, 2011 by RichardOctober 7, 2011

In my last posting I mentioned as a footnote that I am using Firefox 8.

Since then, it has re-branded itself as Firefox 9, and this is how it announces itself to the Web, and how it will appear on server stats and the like.  On the Title-bar however, it calls itself just “Nightly”.

nightly

As I mentioned before, this incarnation of Firefox seems to be concentrating on speed. and therefore the backend, rather than any major changes to the frontend.

The increase in speed is not one that will just appear on benchmark tests, but is something that will be noticeable to anyone using the current version of Firefox.  When I say it is fast, it is fast.

If you want to see for yourself, Then pop over and download the latest for yourself.

One thing I have noticed is that they have made a very small change to the Forward and Back buttons.  Normally if there is no Forward or Back in the history, the buttons will be greyed out.  However I notice lately that instead of greying out, the buttons vanish altogether.  This wouldn’t be a problem, except that The Home, Refresh and address bar then slide over to the left.

I find this mildly irritating and distracting, and frankly I can’t see the point.  I have no problems with them wanting to increase “real estate” but this doesn’t do that.  It just creates a bit of space amongst the toolbars.

It’s not irritating enough for me to revert to the “normal” Firefox though!

Posted in Tech stuff | Leave a reply

Firefox losing its menu bar

A Pipe and a Keyboard Posted on August 5, 2011 by RichardAugust 5, 2011

Last night, Herself was browsing the Internet.  She came across a site that claimed that her Javascript was disabled.

The laptop in question is running Firefox 5 on Linux Mint 11.

When I went to check Firefox I discovered that the main menu bar was missing.  The address bar was there along with the favourites bar, but no sign of the all important menu.  I tried some other programmes and they all ran normally, so it was obviously a Firefox problem.

I browsed the Internet and found that that wasn’t much help.

Eventually, by trial and error I found the solution, which is (of course) very simple –

Open a terminal and type ‘firefox –safe-mode’ (without the quotes).

A window will pop up.  Simply select “Reset toolbars and controls’ and that’s it.  Everything will be restored to normal.

-oOo-

While I am on the subject of Firefox, I have been running the nightly version of Firefox 8 for the last week or so.  (whatever happened to 6 and 7? Winking smile ).  Visually, there is little difference between 5 and 8.  The difference though is in speed.  It really is lightning on steroids.  I started using it occasionally, but it is now my default.  I love it!

Posted in Tech stuff | Tagged Linux | 4 Replies

WP Social Blogroll

A Pipe and a Keyboard Posted on July 29, 2011 by RichardJuly 29, 2011

I am not a great fan of Blogger as a platform.

I admit I have never used it with an account of my own, but I do know that it can be difficult commenting on Blogger site.  There is one feature of it that I like however and that is the ability to display links along with the title and time of their last post.  It was a feature I envied and finally I found a solution.

I installed WP-Social-Blogroll on Head Rambles.

I had a philosophy of linking to any site that linked to Rambles and this led to a rather long list.  I therefore set the list up on its own page.  At the time, I could not get the damned thing to work in the way I wanted, as it insisted on displaying the links and the icon, but it left out the latest post, the author and the date.   I left it and promised myself I would address it at another time but never did.

Recently it was pointed out to me that the Links Page wasn’t showing any links at all.  I dived in and for the live of me couldn’t understand why it wasn’t working.  I decided to install the plugin again from scratch.

Originally I just set up a normal page and included the Social Blogroll code.  They did recommend that I install it from a template however.  I tried that [I had never used a template page before but it was simple enough] and the links appeared, but still without title, author or date.  I was back to square one again.

I scoured the Internet but could find nothing relevant.  I don’t know how I found the solution, but I did.  I was using the wrong API key from Google!  I set up a new key, using the precise link to the Links Page and inserted it.  It worked perfectly.

The problem then was that I suddenly discovered just how many sites hadn’t been updated for months or even years.  The only thing is to remove all the links that haven’t been updated in [say] the last six months.  That is going to be a big job.

Maybe I should have left the plugin unfixed?!

Posted in Blogging, Tech stuff | 6 Replies

What happened on January 11th?

A Pipe and a Keyboard Posted on June 30, 2011 by RichardJuly 1, 2011

I’m a grand one for playing around with site statistics.

One day recently I was taking an overview of Headrambles in Google Analytics and noticed something strange.  I had a fair idea of the average rate of page views the site was receiving per month, yet the figures I was now looking at were much higher.  I took a snapshot of the period 1st September to 30th  June and sure enough, there was a distinct jump where the figures tripled.

pageviews

Ignoring the peak on the right [a mention on a high profile site!], the jump is is quite marked.

Looking a bit further, I took a series of snapshots over the same period.  Traffic to the site remains more or less constant over the period, but I hit another anomaly when I looked at the Bounce Rate:

bounce

Once again there was a very dramatic change.

I drilled in a bit further, and the date of transition for each graph is January the 11th.  It was also around that time that I had noticed a jump in Google Rank from 3 to 6, but unfortunately I don’t have a precise date for that.

So what the hell happened on the 11th January?

Google only knows!

Posted in Tech stuff | 1 Reply

Post navigation

<< 1 2 … 11 12 13 14 15 16 17 … 27 28 >>

Recent Posts

  • GRUB problems
  • Tab bar broken again in Firefox 133
  • WP phpMyAdmin Session mismatch
  • When Linux slows down
  • Firefox broken again

Categories

  • Blogging
  • General
  • Linux
  • Media
  • Tech stuff
  • Writing

Blogroll

  • Head Rambles
  • Kirk M's Just Thinkin'
  • Wordpress Beginner
  • Wordpress Development

Archives

©2025 - A Pipe and a Keyboard - Weaver Xtreme Theme
↑