Joomla 4/5 User Manual
Security - Before you go live
Security FAQ — Before You Go Live¶
This security list has been compiled from several sources. Some of these sources are linked at the bottom of this article. As such you may find duplicate suggestions. Don't skip anything because of this!
This list does not provide instructions. It is only a list for you to check off each item as you perform the tasks. This list might generate questions. Please post to the Joomla.org Security forum
Change database tables prefix from jos_ to anything else. When changing this, do not use any reserved prefixes such as bak_
- You may use numbers and letters and yes, you may use more than three characters. b37qm2_ is a valid name.
- Don't forget the underscore "_". This makes it much easier to read your table entries.
- It does not matter if your host does backups. Do it yourself and store copies at a location other than the server.
- Backup up often! You would be amazed at how many sites never perform regular backups.
Note The Akeeba Backup extension is highly recommended for backups. You will find alternatives under the Joomla Extension Directory Backup Category.
- Ask your hosting company if they offer PHPsuExec, php_suexec or suPHP.
- Use php.ini files if your server allows. With this you can disable functions that are not needed or dangerous.
- register_globals = 0 (off). Many servers default this to ON.
- expose_php = 0 (off)
- safe_mode = 0 (off)
- Use open_basedir. It limits which files/folders can be opened.
- Move configuration.php outside of your public directory.
- On file permissions, in general never use 777. Use 755 for directories and 644 for files. See FAQ: Verifying permissions
- Change username admin to anything else in Joomla, PhpBB, and anywhere else it used.
- Instead of renaming, you can also create a second super user account and remove the first. This way, the user id will be different.
- Change username or add password to username root in PhpMyAdmin. Default is no password! This is not usually an issue on remote servers however if you have a local server it may be.
- Remove unused templates, extensions and unneeded files from your site. This includes compressed archives.
- Check Joomla.org Vulnerable Extensions List (VEL).
- Check regularly for updates for Joomla, PHP, SQL and every extension you use.
- Avoid encrypted code in extensions.
- Use some form of intrusion detection either through a cron job or an extension (such as Eyesite).
- Check your log files often for unusual activity.
- Test your site for weaknesses or hire someone to perform this for you. Make sure you tell your host first what you are doing or you may get your site removed from the server!
- Use .htaccess to add extra protection to your administrator directory or use an extension (such as kSecure).
- Get an SSL certificate for financial transactions and other sensitive data exchange.
- Change the paths (directories) where your log, temp (.tmp) files are stored. Don't just move them, you have to change the setting in Global Configuration as well. You also have to ensure your new paths fall under the scope of open_basedir.
- Don't save FTP user and password in your FTP tool of choice on your workstation (especially if you are on Windows).
- If you don't need them, don't enter the FTP user/password or remove them.
NOTE If your Administrator password is changed by hackers (or you forget it), follow this procedure to restore it: How do you recover your admin password?