We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Upgrade from V2 to latest?

How Do I?

Ton Kemp's avatar
Ton Kemp
6 posts
one year ago
Ton Kemp's avatar Ton Kemp

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?

       
jelle's avatar
jelle
87 posts
one year ago
jelle's avatar jelle

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)

       
Rob Allen's avatar
Rob Allen
3,105 posts
one year ago
Rob Allen's avatar Rob Allen

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

       
Ton Kemp's avatar
Ton Kemp
6 posts
one year ago
Ton Kemp's avatar Ton Kemp

Thanx Rob, I have a bump in the installation. I created a license number on the ee site. But the installation keeps comming back with error: “Not a valid licence number”. how come?

is it because i try to link to an existing filled database?

thanx

       
Ton Kemp's avatar
Ton Kemp
6 posts
one year ago
Ton Kemp's avatar Ton Kemp

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

       
Henry Kautzer's avatar
Henry Kautzer
1 posts
one year ago
Henry Kautzer's avatar Henry Kautzer

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.

       
Ton Kemp's avatar
Ton Kemp
6 posts
one year ago
Ton Kemp's avatar Ton Kemp

When I try to install the V2 files, I run into a problem with the licence numer: I created one on the EE website, but it keeps refusing my number.. Maybe because it is meant for later versions??

Help is appreciated thanx

       
jelle's avatar
jelle
87 posts
one year ago
jelle's avatar jelle

If you are using the EE2 files, and connect those to your EE2 database through, you should not get the installer view. If you do get that view, you’re probably not connected to the database. Either that, or the installer folder is present in the EE files

       
Ton Kemp's avatar
Ton Kemp
6 posts
one year ago
Ton Kemp's avatar Ton Kemp

I am trying to retrace a blank installation and then connect to the old database. What file contains the database credentials?

       
jelle's avatar
jelle
87 posts
one year ago
jelle's avatar jelle

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

       
jelle's avatar
jelle
87 posts
one year ago
jelle's avatar jelle

if needed i can always try to help you out with teamviewer

       
Ton Kemp's avatar
Ton Kemp
6 posts
one year ago
Ton Kemp's avatar Ton Kemp

Do you have an example of this config.php??

       
jelle's avatar
jelle
87 posts
one year ago
jelle's avatar jelle

<?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 */

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.