Trying to set up new joomla from old joomla files

by Alan Mc   Last Updated September 07, 2019 09:10 AM - source

So basically my Joomla site was attacked a few weeks ago by SQL injection and was taken down.

What I am hoping to do, is to go into the file manager and download all of my articles, categories, menus and templates, then set up a new joomla site and upload all the old code.

I am just wondering is this possible as I do not want to have to recreate the entire site again.

Any help would be much appreciated.

Answers 3

You won't find anything like articles, categories and menus in file manager. You should be able to find the Joomla installation folders and files, including all extensions and media/images files.

Actually what you need to do is to download all these files, plus the database of your site.

Assuming the intruder didn't damage anything crucial in your installation, you should be able to restore your site in your localhost (or other hosting environment) - and then perform all required updates and other security enhancements and finally re-upload your site online.

To restore the site all you need is the original folders/files of the Joomla site instance and the database. You connect the Joomla installation files to the database, through the configuration.php file - it holds variables for the database connection.

These are the configuration variables (with sample string values), referring to the database connection:

public $dbtype = 'mysqli';
public $host = 'localhost';
public $user = 'db_user';
public $password = 'db_user_password';
public $db = 'db_name';
public $dbprefix = 'prefix_';
December 12, 2015 16:01 PM

Assuming you still have admin access, you can probably clean up the website where it is using the commercial (formerly security tool or similar.

To prevent reinfection, ensure you update Joomla and all third party extensions to the latest versions and reset your Joomla, database and hosting passwords.

See for tips on securing the website against future attacks.

Neil Robertson
Neil Robertson
December 13, 2015 12:07 PM

You can try this steps.

  1. Export all content from your actual site with J2XML component. Was free and works fine for this situation.

  1. Install new Jooomla. Be sure was last version.

  2. Import XML genereted from your old site.

  3. You will need create again yours Menus and modules.

But with this steps you are safe with new instalation.

I holpe this helps.

December 13, 2015 23:43 PM

Related Questions

Joomla Site backup and transfeer

Updated July 31, 2018 15:10 PM

Transfer Joomla data from PHPMyAdmin SQL Dump

Updated December 05, 2016 08:04 AM

Export/Import from security perspective

Updated May 27, 2019 14:10 PM

404 after site restoration with Akeeba Kickstart

Updated April 18, 2017 10:10 AM