Forums

How to install e107 with different folders (no prefix version)


Jimako » 4 years ago

If you need to install e107 without prefix or with different prefixs, you can do it after installation in e107_config.php or before installation.  If you prefer later option, you need:

BEFORE

- rewrite folder's names

- open install.php and change 2 lines (look for e107_handlers and e107_admin) 

$HANDLERS_DIRECTORY  = "e107_handlers/"; // needed for e107 class init
require_once("e107_admin/ver.php");

- open e107_class.php in you new handlers folder, find public function defaultDirs()  and change directory names there

Run installation process.

If your installation screen looks bad, it means you forgot to change something. (blank page - e107_handler, bad look - e107_themes folder etc)

AFTER

After installation open .htaccess file and change e107_images and e107_files.  Of course delete install.php.

Next core update is not problem, because after installation e107 works with configuration in e107_config.php.


Jimako
Main Admin

Jimako » 4 years ago

Just note. If you want to change folder name after installation, you need to add this to e107_config.php:

$CORE_DIRECTORY = 'core/';
$WEB_DIRECTORY = 'web/';

And of course, changing .htaccess and then to get new hash folders in media and system folder (resave prefs and clear cache).


Jimako
Main Admin

Jimako » 2 weeks ago

Update for 2.3.1 

- classic installation (from github)

- renamed all folders (deleted e107_tests folder)

- changed e107_ prefix in .htaccess (2x)

- changed e107_config.php:

  •   removed prefix e107_ 
  •   added  $CORE_DIRECTORY = 'core/';

Log in, check everything. Not working avatar is first sign that something is wrong.

With this installation and changes above - no issues. 

EDIT: Else this is needed, but you find this only after log in to admin area:

$WEB_DIRECTORY = 'web/';


Jimako
Main Admin
Moderator(s): Jimako