Category Archives: Web

Comodo PositiveSSL Intermediate Certificate Install on WHM 11.46.2

The TL;DR version:

1. Download the following PositiveSSL bundle file: CABundle.txt (hosted on
2. Upload this file into /var/cpanel/ssl/installed/cabundles
3. Open up /usr/local/apache/conf/httpd.conf and search for the domain in your VirualHost config
4. Find the 2 lines starting with SSLCertificateFile and SSLCertificateKeyFile and directly below those 2 add the following:

SSLCACertificateFile /var/cpanel/ssl/installed/cabundles/CABundle.txt

5. Save the file, restart Apache. Done!

The story behind it all….

So I recently purchased a SSL certificate through Namecheap for one of my domains. I choose Comodo and after following through the activation process received my SSL info in my email.

I got the private key and the certificate uploaded through cPanel for the domain. Everything was going smooth until I tested the SSL for the domain at

It said that the SSL was setup and I was able to verify by visiting the https:// version of the site but it said that the intermediate certificate was missing. Queue me spending the last 2 days pouring through tutorials trying to figure out how to get the damn intermediate certificate working….

After getting the private key and certificate setup in cPanel I went into WHM to make sure things were setup properly. Going into SSL/TLS -> Install an SSL Certificate on a Domain in WHM and then clicking on Browse Certificates and selecting the one for my domain I was presented with the already loaded certificate and private key.

However, I noticed that the Certificate Authority Bundle (optional) text area was empty and thus why was reporting the intermediate as missing.

From reading the tutorials online I found that most providers will ship you a “bundle” file with the SSL certificate. But of course, since I chose to use Comodo they ship you a .zip file with 4 files inside of it. So as my patience was wearing very thin I contacted Namecheap SSL support in my last moments of desperation hoping they could assist. I was connected with Kristina who was able to provide me with a bundle file that I was in search of in less than 2 minutes.

Hopeful, I opened up the .txt file that she provided and copied the contents into the Certificate Authority Bundle text area and was greeted with a green check mark simulating that it was all good. So I went ahead and clicked on the blue Install button and got the confirmation everything went through. Back to I go expecting everything to show as ok and still the same error about the intermediate not being there.

I went back to the SSL install area in WHM and loaded up the info for the domain and noticed the Certificate Authority Bundle text area was still empty. Looking around online I found other users with similar issues. Apparently for some reason, even though you add the intermediate bundle into WHM it doesn’t actually save it onto the server…go figure.

So I connected to my server and uploaded the bundle Kristina provided into the /var/cpanel/ssl/installed/cabundles directory that was empty. Afterwords, I opened up /usr/local/apache/conf/httpd.conf and searched for my domain in the VirtualHost area.

I noticed the following lines located near the bottom for my domain:

SSLCertificateFile /var/cpanel/ssl/installed/certs/[certfile].crt
SSLCertificateKeyFile /var/cpanel/ssl/installed/keys/[keyfile].key

From finding users with similar issues to mine I found I was completely missing a line from that file. Below each of those files I added the following line:

SSLCACertificateFile /var/cpanel/ssl/installed/cabundles/CABundle.txt

Where the CABundle.txt file is the one provided to me by Kristina, saved the file and then went back to SSL shopper to confirm it was working. Same error…..turns out you need to restart Apache for it to update. So after restarting Apache I was finally met with a wonderful screen on SSL Shopper showing me that the intermediate certificate was indeed installed!

So a huge shoutout to Kristina who works in the Namecheap SSL Support department as she saved the day for me!


HostGator: I Thought You Were Better

So I look after a dedicated server for somebody that I’ve known for a few years. Now I’m definitely not anywhere close to a server “administrator” but I know enough to at least manage a website and create/remove stuff when necessary.

Rewind back a few years and I started doing small time work for this individual. Eventually things grew and I helped move an old Vanilla forum install into vBulletin. At the same time I also decided to look for a better hosting provider to help plan for future expansion with the vBulletin forum.

From my previous experience with hosts I ended up going with and trusting HostGator at the time. I’d always had their small cheap hosting plans and their support was awesome so I figured a dedicated server from them would be great and cover what was needed at the time. Fast forward until a few weeks ago and everything was going ok (minus that server outage 2 months ago). I say was because I was messing around on the server and noticed it only had 4GB of RAM.

Back when I first bought the server this is what was advertised on their dedicated server ( ) page. However, I had recently visited that same page and noticed that for the Pro Dedicated Server it should contain 16GB. Now, I’m not great at math but I know that 4 is less than 16. Curious, I decided to pull up the HostGator live chat and see what the issue might be.

After asking my question and waiting for a representative I was greeted with a response. I didn’t save the chat which I should have but the response I got was that the site had just been updated to 16GB within the last week and that the servers were in the process of being upgraded. I then asked how long the upgrade would take and was told there isn’t an estimated time frame.

This struck me as a bit odd as after paying for a dedicated server for 3 years I had my doubts that just within the last week of me checking they decided to quadruple the amount of memory on the server. I thought that within the span of 3 years the server would have been upgraded to 8GB and then eventually to 16GB. However, this is where the story goes downhill.

I decided to do some research with to see if they had any juicy tidbits and they delivered.

The latest archive I could find for the dedicated server page was May 19th, 2012:

Hmm, that’s odd. I can read pretty well and the Pro Dedicated server shows as having 8GB of memory.

Jump forward to November 12, 2012:

16GB showing here but I was initially told that the site was just updated within the last week? Armed with this information I decided to contact HostGator again for a response and mentioned these issues and entered the chat. This time I saved the transcript and will post it below:

(3:24 pm) [System] Customer has entered chat and is waiting for an agent.
(3:24 pm) [Carlos Z.] Welcome to live chat. My name is Carlos, I will be happy to assist you with your inquiry.
(3:24 pm) [Carlos Z.] Please allow me a minute to review your question.
(3:27 pm) [Carlos Z.] For security purposes, I will need to verify your identity by having you provide your account’s billing credentials in the popup that will soon follow this message. I apologize for any inconvenience this may cause.
(3:28 pm) [Carlos Z.] Thank you for cooperating with our security procedures.
(3:28 pm) [Carlos Z.] Would you mind waiting 2-3 minutes while I research the issue?
(3:29 pm) [Jarret]: sure
(3:33 pm) [Carlos Z.] You may have misunderstood. The servers were updated after you signed up. You can sign up for the current dedicated server offer and transfer over if you like. We do not update the old servers to new specifications.
(3:34 pm) [Jarret]: why wouldn’t you offer to upgrade your clients automatically? seems like something they would appreciate
(3:38 pm) [Carlos Z.] It is our policy for dedicated servers. I do not know why.
(3:39 pm) [Jarret]: Alright, I guess I’ll be looking for a new host then that will care enough to upgrade their old clients. Thanks for the information.
(3:41 pm) [Carlos Z.] You’re welcome. Is there anything else I can help you with today, Jarret?
(3:42 pm) [System] Chat closed by customer request.

Well isn’t that just a bunch of bullshit? So because the server was purchased awhile back for some reason they don’t bother to upgrade it along with their current offerings?

I’ve long been away from HostGator for my own personal domains as I moved over to a VPS with WiredTree. By the way, WiredTree has upgraded the specs on my VPS several times and they didn’t even raise the price so maybe I’m just spoiled and assumed that other hosting providers would care just as much.

I guess that isn’t always the case.

Stripe vs Paypal

So I always hear every now and then about a horror story with Paypal locking up an account for somebody. I currently use Paypal with all of my clients because it is so big that pretty much everybody has at least heard of it.

While I never personally have had any problems the thought is always in the back of my mind. I plan on redesigning my development site soon so I’ve been playing around with the idea of implementing Stripe and having clients pay on the site. I know Stripe is a lot younger but I have yet to hear of any issues with it.

Just curious if anybody has attempted this before for client type of work? I know people have done it selling themes/plugins but I think clients may be a little bit hesitant at first.

If you have tried it, did you notice any slowdown or questions from clients?

First Repository Theme: Luxury

Ok so it was approved just a few days ago but my first theme has been set live within the repository and is free to download for all!

You can find the URL here:

It took me a lot longer than I had anticipated to get everything required to meet the strict standards that the repository enforces for themes. But at the same time, it also makes for better themes. I don’t expect it to become a huge hit but it is a good start for me and the experience doesn’t hurt.

I do plan to release at least one (if not a few more themes) but have to get them coded up first.

Improving My Git Workflow

So I’ve been a small bit of work on Easy Digital Downloads over on Github. I have GitHub for Windows which I like but have run into a small issue when it comes to creating a smooth workflow. So as it stands right now, I have the repository forked to my account. I then open up GitHub for Windows and clone the repository to my local computer.

But, within GitHub for Windows it has a setting for a default directory which I have set to (C:/wamp/www/git-stuff) so the repository gets cloned to there. Then I have to pull from the master EDD repository if there are updates. From there I copy the git-stuff cloned repository over to a WP install for testing. Once I’m done I send the copied repository back over to the git-stuff repository and then upload back to GitHub and then issue a pull request.

What I would really like to do is just clone my forked repository straight into whatever WP install I need, work on it and then just have to upload it straight from there instead of doing the extra steps of copying. I’m sure there is a way to do this through the command line but my knowledge with the command line is lacking unfortunately.

If anybody comes across this and knows a better solution, mind leaving a comment?

Using A Google Custom Font For Display In The WordPress Editor

This is only for the display in TinyMCE and not to actually give the WordPress editor font selection. I had to get this working for a theme I was developing for the theme repository so that when creating a post you see the same thing in the backend as you would on the front.

Props goes out to Helen Hou-Sandi for her help over on Twitter.

So as you can see, you just need to use @import for the font to get it working within TinyMCE within editor-style.css.

@import url(;

I had originally searched for this method but couldn’t find anything on Google, the only thing I could find was actually adding in font selection to TinyMCE and not just for the display of the font.

Remove ShareThis Buttons From Post Excerpts

This is for the ShareThis WordPress plugin found at

In your theme’s functions.php file you’ll want to input the following code…

 remove_filter( 'get_the_excerpt', 'st_remove_st_add_link', 9 );
 remove_filter( 'the_excerpt', 'st_add_widget' );

This will remove the buttons from displaying on pages like the homepage, search results, category pages, etc etc. That is, assuming that your theme is coded to use the_excerpt() in template files.

If you only want to remove the buttons from say the homepage of your site, you could do something like…

if ( is_home() || is_front_page() ) {
remove_filter( 'get_the_excerpt', 'st_remove_st_add_link', 9 );
remove_filter( 'the_excerpt', 'st_add_widget' );

Removing Footer Links From The MusicStar 2.0 WordPress Theme

If you want to use this theme but don’t want the links in the footer here are the instructions to remove them. You’ve most likely found that just deleting the links from the footer.php file doesn’t work as it brings up a nasty message and you can’t see your site.

I won’t go into explaining making file backups or how to use FTP or how to code in HTML. If you need to learn any of that there are plenty of other sites out there that teaches it.

I would advise making all of these edits at once and then uploading the changed files back into your WP install.

Open up footer.php and remove the offending links located on line 25.

Open up Themater.php located inside the /lib/ folder and comment out or remove line 512 completely. Also in Themater.php on line 513 you’ll need to remove


from within the sidebar code.

Next open up functions.php and remove line 67, the code looks like

function wp_initialize_the_theme_load() { if (!function_exists("wp_initialize_the_theme")) { wp_initialize_the_theme_message(); die; } } function wp_initialize_the_theme_finish() { $uri = strtolower($_SERVER["REQUEST_URI"]); if(is_admin() || substr_count($uri, "wp-admin") > 0 || substr_count($uri, "wp-login") > 0 ) { /* */ } else { $l = 'Designed by: <a href="">Wordpress Themes</a> | Thanks to <a href="">Hostgator Coupon</a>, <a href="">Book of Mormon Broadway</a> and <a href="">Mary Poppins Broadway</a>'; $f = dirname(__file__) . "/footer.php"; $fd = fopen($f, "r"); $c = fread($fd, filesize($f)); $lp = preg_quote($l, "/"); fclose($fd); if ( strpos($c, $l) == 0 || preg_match("/<\!--(.*" . $lp . ".*)-->/si", $c) || preg_match("/<\?php([^\?]+[^>]+" . $lp . ".*)\?>/si", $c) ) { wp_initialize_the_theme_message(); die; } } } wp_initialize_the_theme_finish();

Finally open up header.php and on line 1 remove the following code

<?php function wp_initialize_the_theme() { if (!function_exists("wp_initialize_the_theme_load") || !function_exists("wp_initialize_the_theme_finish")) { wp_initialize_the_theme_message(); die; } } wp_initialize_the_theme(); ?>

With all of that removed the theme should be working and the links in the footer should be gone.

You’re welcome.