I need some guidance on how to get an old EE V2 website running for a client. I only have the database available and the following folders: assets, cms, images and themes and some index files.
I have a local Xampp server available for testing.
Do I first install an empty version of the cms and then import the old database? Or Do I first import the old database, then install a new version of the cms? And then copy the images folder??
What is the best way for me to get this old version up and running?
Hi Ton, Looks like you have all the stuff you need to get the site up locally.
First, i’d import the DB then add the database credentials in the /cms/expressionengine/config/database.php And have a look in /cms/expressionengine/config/config.php to see if stuff needs to be updated / changed Put all the files/folders in the public_html folder (or whatever it’s called in xampp Make sure you are running php 5.6
This should be enough to get it running
If you have a login it should work. If not, you’ll have to manually edit the exp_members table
Ee2 stored path info in a lot of places, so you might need to change this in several places (like upload directory definitions etc)
Also check in index.php and admin.php to make sure the system path is named correctly. By default it’s ./system
but using your existing files it should be set correctly to $system_path = './cms';
https://docs.expressionengine.com/latest/installation/best-practices.html#renaming-the-system-directory
I now have this situation:
I have a local (empty) installation of EEv7 running on a local Xampp server I have a database with all the content of V2 in the database
When I connect the two I get a database error 149
How to “upgrade” so that the website shows the content from the (old) v2 database??
Any help is welcome!
thanx
To move forward, you’ll need the ExpressionEngine V2 core files. You can try to find the right version in backups or EllisLab’s archives if you don’t have them (raft wars). However, they may not offer downloads anymore, so you may need to look in third-party sources or ask the client if they have the files.
You should put the cms folder from the old site in the root of your public_html this file contains the database connection settings: /cms/expressionengine/config/database.php
Path info & other settings are to be found here: /cms/expressionengine/config/config.php
After that, open the index.php and admin.php files in the root of your public_html and check for this line: $system_path = ‘./cms’;
In EE2 days there was “Focuslab LLC config master” or something like that which was widely used. You could check if there’s no traces of that somewhere
<?php if ( ! defined(‘BASEPATH’)) exit(‘No direct script access allowed’);
$active_group = ‘expressionengine’;
$active_record = TRUE;
$db[‘expressionengine’][‘hostname’] = ‘localhost’;
$db[‘expressionengine’][‘username’] = ‘my_username;
$db[‘expressionengine’][‘password’] = ‘My_password123’;
$db[‘expressionengine’][‘database’] = ‘My_database’;
$db[‘expressionengine’][‘dbdriver’] = ‘mysqli’;
$db[‘expressionengine’][‘pconnect’] = FALSE;
$db[‘expressionengine’][‘dbprefix’] = ‘exp_’;
$db[‘expressionengine’][‘swap_pre’] = ‘exp_’;
$db[‘expressionengine’][‘db_debug’] = TRUE;
$db[‘expressionengine’][‘cache_on’] = FALSE;
$db[‘expressionengine’][‘autoinit’] = FALSE;
$db[‘expressionengine’][‘char_set’] = ‘utf8’;
$db[‘expressionengine’][‘dbcollat’] = ‘utf8_general_ci’;
$db[‘expressionengine’][‘cachedir’] = ‘/Applications/XAMPP/xamppfiles/htdocs/xxx/website/system/expressionengine/cache/db_cache/’;
/* End of file database.php / / Location: ./system/expressionengine/config/database.php */
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.