Get a web server running within minutes. Choose a Linux distro, resources, and node location. That’s essentially Linode in a nutshell. I signed up with Linode about two weeks ago. I’ve been playing around with it since then. I can happily say that I’m very impressed with Linode. It has exceeded my expectations.
If you want total control of your web server, Linode VPS is really the way to go. You will be asked to choose server size when you sign up. They come in many configurations. I chose Linode 512. You also need to choose a data center location. There are six data centers worldwide. I choose the one in Fremont since I live in California.
So far, I’m loving the guaranteed server resources. My websites are running faster . I chose Ubuntu 12.04 LTS 32 bit because it’s a Linux distro I am very familiar with. Apparently, 57% Linode users have chosen Ubuntu as well. I already transferred a couple of domains over to Linode. The websites are screaming.
I plan to migrate more websites later. If you are curious about how Linode works, here is a short list of features to get you started:
- Full ssh and root access
- Guaranteed Resources
- 4 processor Xen instances
- Out of band console shell
- Dedicated IP address, premium bw
- Six datacenters in the US, Europe, and Asia-Pacific
- HA and Clustering Support
- Bandwidth pooling
- Managed DNS with API
I want to share a database connection access problem I had last week, while working with a custom PHP script inside WordPress. I had created this WordPress Page Template containing some PHP code that needs access to the database. The problem was that the database connection for my custom script overwrote the WordPress database connection that was previously establish, causing certain parts of WordPress to not display properly.
It took me a while to figure out that it was the newer database connection of my custom PHP script that was causing the previously established WordPress database connection to disappear. Hence, certain parts of the WordPress page were not displayed. Little did I know, that the fix was quite simple. So, here’s a sample of my mysql_connect code. Prior to this line, I’ve already set the variables.
Simply add a fourth parameter called new_link and set it to TRUE.
What this does is basically telling mysql_connect to establish a new connection, while keeping the older mysql_connect connection around, in case we need to access it at a later time. It’s amazing how one little switch in a command can make a huge difference to this seemingly simple code. Anyways, adding a fourth parameter and setting it to TRUE was the solution.
It’s a new year, and it’s a good time to make a new start. I did a little bit of housekeeping work within WordPress, to make sure that my blog is off to a good start. I just changed theme today. That’s going very well. While browsing around my blog, I noticed that the time on my posts are off by one hour.
It doesn’t make any sense, since my webhost is Hostgator, which is based in Houston, which is in the Central timezone. I’m in California which is Pacific timezone. My blog, for some reason, seems to be in the middle, in the Mountain timezone. I did some little investigative work and found that my WordPress timezone settings has changed.
This post is about making sure that your WordPress timezone is set correctly. So, login to your Admin Dashboard. Access Settings > General look for the Timezone settings. See snapshot below.
Select your timezone correctly. I set mine to UTC-8 for the West Coast of the United States. If you don’t know where you are, you can check several websites that offer timezone information. Once you made the change, go ahead and save. You can validate your WordPress timezone setting by looking at the internal clock next to the form. It should display the correct time in your timezone.
You should only get to do this once, but my time setting, for some reason has changed, and I just recently noticed it. So, make sure to check that your timezone is setup correctly.
A new year, a new theme, a new framework, a somewhat familiar layout, and the same old background. The new theme is based on the Genesis framework by StudioPress. I’m using a child theme called News.
The new theme should be more flexible when it comes to layout and functionality. The Genesis framework is quite robust. The framework has a plugin called Simple Hooks that makes it easier to make theme customizations.
Overall, I’m still learning how to work with this framework works. The concept is a little foreign to what I am used to, but I like what I have done to the theme so far.
I hope you like the new theme.
According to WordPress, I wrote a total of 190 posts in 2011. To see all the articles written in 2011, simply access:
This feature is possible using one of the nicest features in WordPress called permalinks, which is short for permanent links. With permalinks, you can customize your own URL structure the way you want it. I happen to use this format:
which makes it easier for me to display articles by year, month and day. To access all articles written in 2011, I just provide the year and all articles written in 2011 will be displayed. Most WordPress users already use permalinks.
If you are not, do it early. Over the years, you’ll see the benefit of using such a structure.