Archive - Tutorials Category

Switching to permalinks

Saturday, February 28th, 2009

If you haven’t already, you should really switch to permalinks. /?p= is an unfriendly, unSEO link. Go to your settings –> Permalink and set custom like this /%category%/%postname%/

Okay, so at first glance that seems easy enough right? Well yeah.. Not so much. First of all, I had to enable mod_rewrite in apache. (Remember I’m on a VPS) That wasn’t difficult, you just use the command a2enmod on Ubuntu/Debian systems. Now with that done, I could use the .htaccess file generated by WordPress to serve up the new fancy URLs. Wait.. My old /?p= are not being forwarded to the new fancy urls. Well, a simple plugin called Permalink Redirect solves that issue.

Now comes the real fun. Everytime I go to try and access my stats, I get a 404. The stats folder is clearly there, but I cannot access it. So, I remove the .htaccess on that folder. I can now access it, but it’s no longer password protected :D I really wasn’t sure if this was caused by ISPConfig or the .htaccess.

So I searched around for quite some time. The solution is simple, when you go to a password protected area it looks for the 401 and 403 error files first, before giving you a login prompt. With the new rewrite in place, all the errors are now on the WordPress theme. It doesn’t have these errors, so the resulting error is 404 not found.

Anyway, how do you fix this issue? Simple, add the following lines to your .htaccess file in the root directory.

ErrorDocument 401 /[path_to_file]/myerror.html

ErrorDocument 403 /[path_to_file]/myerror.html

That’s it! Problem solved. I can now access my stats directory with the password, and permalinks are working.

Forum

Discussion

Comical? Yes. Upsetting? Possibly. Shared Web Hosting

Wednesday, December 31st, 2008

I am on shared hosting, by JustHost.com. This service has not given me any issues, customer support is very good. When I’ve contacted them about something, I get a response within 20-30 minutes. So, mostly I’ve had no issues, and the loading time for my site is fine. It acts up a little, but not much, not any more than what you would expect from a shared host.

They offer a sort of gimmicky sign up, with unlimited everything, I’ve yet to find that limit, but perhaps I will some day if I get too much traffic.

I admit, I’m a noob when it comes to web hosting, and there’s so many options out there I basically just chose one. My experience has been limited to playing with MySQL databases and PHP on free hosts.

Recently, I found this information about JustHost here

Apparently, they went as far as to create a fake website with them at the top, here. If you look at the website, JustHost.com you see that they are proudly displaying their fake badge.

I found this more comical, than upsetting really. Like I said, for my purpose I don’t really care so long as it “works”.

It seems as if a lot of shared web hosting providers are using the same tactics, so it’s nothing new. (well, it’s new to me) Hopefully someday I will be able to go on a dedicated host, I’m really not impressed with shared hosts, not JustHost specifically, but all of them. I may be on a dedicated host sooner than I think, because my traffic has been increasing day by day. Perhaps I’m just giddy and want to try out a dedicated host. I wish I could, but I’m not sure I can afford it. I might try out a cheap dedicated host in the near future for a month or two.

I’m posting this in the tutorials section as well, because I believe it is a tutorial to understanding shared host gimmicks.

Wubi: Tri-boot is not nearly as hard as I thought

Saturday, December 27th, 2008

wubi_logoI have Windows XP installed on my D: drive and Windows Vista installed on my C: drive. I’ve edited the cfg files and moved some boot files for XP over to the C: drive, so I could choose between XP and Vista at start. My problem was, I wanted LINUX as well. Apparently I’m behind the times with Linux, because Ubuntu has something called Wubi which was PERFECT for my situation. All I had to do was install Wubi. That’s it, no complex partitioning, no messing with boot loaders, nothing. Easy. I still use the Vista bootloader to either boot XP, Vista, or Ubuntu.

Ubuntu is installed on my C: drive with Vista. It does not interrupt the NTFS file system. No partitions, oh how they have caused me problems in the past. What’s more, you can just uninstall Wubi like it’s a windows program. SO EASY. I can’t believe how EASY it was. I never had anything so EASY to work with when I was first doing my dual boot configurations. I just can’t beleive how far things have progressed behind my back :)

So, if you want a completely AUTOMATED dual boot configuration with Linux, Wubi is MOST DEFINITELY your choice. I only wish Slackware had an option like this. Sorry for my over emphasis of how EASY it was, but I’m just dumbstruck at how EASY it was.

Next stop, quad boot. I don’t think this will be as easy :)

Secure your wireless networks!

Wednesday, December 24th, 2008

wifi-logoI know a lot of people still run their wireless routers without any encryption whatsoever. You really shouldn’t do this. Why? Well, there are some people that use wireless networks to do malicious things. Maybe they’ll do a little hacking on your network, maybe buy some things with stolen credit cards, the list goes on. People with insecure networks often have the default password on their router, therefore anyone connecting to your access point can access your router! They could also be using packet sniffers sniffing out data you’re putting on the Internet. If you have a bandwidth cap, they’re stealing bandwidth you could be using.

Why leave yourself open to these kinds of threats? Generally all it takes is WEP encryption, which isn’t the most secure, but secure enough that most people wont touch it. Most router addresses are 192.168.1.1, some are a little different. You can look up these details on the Internet if you don’t have the manual handy. Just go into wireless security, WEP, enter a passphrase, generate, and select a default key. Then when you connect, insert that key to get onto your network. Simple as that.

Back when I was a wardriver, I found that almost 80% of wireless networks in my area were insecure. That percent may have changed, but I still see a lot of insecure networks out there. It’s unacceptable!