Change your Joomla database prefix

By default the prefix for your Joomla database is jos_. Hackers will utilize this knowledge and attempt a variety of attacks using this little default tidbit.

injection2

Quick security tip for your Joomla site

Have you ever heard of people talking about a SQL Injection?  Rest assured it has nothing to do with your doctor, and more to do with you and your site getting hacked.

“Crap, now I am scared, what do I do?”

Don’t get too upset, there is a solution.  When you are setting up a new Joomla site you can select whatever prefix you want.   jos_ is set as the default, but you can change it to anything you like within reason.  (Try to stick with 3 digits and the underscore.)

You are in control…or should be!

If you are still using Fantastico or letting your webhost do a Joomla setup for you, it’s time to put on your big boy/girl pants and do a standard Joomla install once in a while. You will have more control over your Joomla install, have a better understanding of Joomla, and won’t sound like a tool when somebody asks you a simple question about your install.  You can also change your database prefix in the second step….the reason I brought this topic up in the first place.

Already have an existing install and just cannot start over?

That’s no problem, there are many different ways to change your prefix. If you are familiar with your database already and how to admin it, I won’t get into details.  There are lot’s of results in Google on how to do this. If databases and words are scary, then there is always the option of using a Joomla component for this change.  There are a few components out there that can do this for you from your Joomla back-end, including this one from Dave Thomas.  I haven’t used them personally, but they seem pretty straight forward.

Make a note!

The only other big issue to consider when changing your default prefix is to remember you did it.  Some poorly written components might assume you are using jos_.  Some bridges and/or integrations with other scripts might assume you used jos_. Just make a mental note in your head or put it on your clients spec sheet, and don’t forget you changed from the default, and you will be good to go. Happy Joomla’ing.  :)


  • How to change your php memory_limit

    If you build websites, at one point or another you will install or run a script and get a blank white screen.  Chances are,......

  • How to change sidebar layouts in Morph for Joomla

    This screencast shows you how quick and easy it is to setup (and change) the sidebar layout scheme on individual pages using Morph’s Configurator.......

  • How to customize the width of your site – with and without Morph’s Configurator

    All layouts in Morph use the (Yahoo) YUI CSS grid framework, which has 4 default layouts (doc widths): 750px, 950px, 974px and 100%. These......

  • Tags: , ,

    8 Comments

    Leave a Comment |  RSS feed for comments on this post.

    Trackbacks / Pingbacks

    Leave a Reply