ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Two EE installations on Root diferent index.php names... possible?

January 21, 2010 6:48pm

Subscribe [3]
  • #1 / Jan 21, 2010 6:48pm

    Mario Rodríguez

    72 posts

    Hi,

    yes I know… strange question.

    It is just that I’m working on a new EE installation and I don’t want to install this one in a subfolder.

    I thought I may rename the second index.php in something else like index2.php and when I’m finished the testing of the second EE installation just change it to index.php…

    Is that possible?

    thanks

  • #2 / Jan 21, 2010 7:04pm

    Focus Lab Dev Team

    1129 posts

    Yes it should be possible. Just don’t accidentally use the same database 😊

  • #3 / Jan 22, 2010 4:36am

    Ingmar

    29245 posts

    Actually, I see some problems to have two copies of EE in the same directory. Yes, you can rename index.php, but what about config.php, path.php and the system directory? I’m not saying it’s not possible at all, perhaps using some hacking and a bit of mod_rewrite, but it would be so much easier to simply have one instance live in a subdirectory.

    That said, why would you need two copies? Just use the EE that’s already there (perhaps upgrade it, if that’s necessary), and develop in a new template group.

  • #4 / Jan 22, 2010 7:29am

    Focus Lab Dev Team

    1129 posts

    Ingmar

    Now that you mention it, path.php would be a challenge. The system directory (and config.php) are simple - just have something like system1 and system2 which would be separate from one another. Other directories like themes and images are defined paths so they can live wherever you put them. The path.php file however would be a challenge. I don’t encourage doing this by any means. I was simply answering whether or not I thought it was possible 😊

  • #5 / Jan 22, 2010 7:44am

    Ingmar

    29245 posts

    The system directory (and config.php) are simple - just have something like system1 and system2 which would be separate from one another.

    Yes, you could simply have two separate “system” directories. You could even share one, were it not for config.php. Smybolic links could get you a long way there 😊

    Other directories like themes and images are defined paths so they can live wherever you put them.

    That’s true, and you could definitely share them.

    The path.php file however would be a challenge. I don’t encourage doing this by any means. I was simply answering whether or not I thought it was possible 😊

    I know, and I don’t encourage it, either 😊 It would require a hack.

  • #6 / Jan 22, 2010 7:49am

    Mario Rodríguez

    72 posts

    I see some problems to have two copies of EE in the same directory. Yes, you can rename index.php, but what about config.php, path.php and the system directory?

    The path.php file however would be a challenge

    Well each copie of EE would be of course in it’s own folder. The only thing in common is the their root folder they would be in. this way:

    /root/EE1 (index.php)

    /root/EE2 (index2.php)

    Why this? Because I’m going to install one the new woothemes http://www.woothemes.com/2009/08/coffee-break/

    And for that I need to do a fresh installation. After that I’ll try to export from the current EE database exp_forum* + exp_member* tables and import them on the new site. Right now is the only thing I’m using from the current installation, the Forum Module.

    I didn’t want to install EE in a subfolder and then move back everything again to the root. That’s why I was thinking doing this way…

  • #7 / Jan 22, 2010 9:53am

    Ingmar

    29245 posts

    Two separate directories, off a common root directory should be not a problem at all.

  • #8 / Jan 22, 2010 10:05am

    Mario Rodríguez

    72 posts

    Sorry I thing I explained it not correctly actually it would be this:

    /root (index.php)/system1 (index.php)
    images
    themes

    /root (index2.php)/system2 (index2.php)
    images2
    themes2

    Right now I did some testing this way


    /root/system1

    /root/ee/system2

    Of course that is no problem, they don’t share the root.

    I downloaded BUENO theme to do some testing. I made a fresh EE instalation with BUENO, then I went to the current database of my working installation and using phpmyadmin I exported all of the exp_forum* + exp_member* tables at once in a file and imported them on the new site.

    I followed this video tutorial for the exporting process and then I just imported the created file in the new EE database:

    http://www.myownserver.info/home/step-4-additonal-settings/76-managemysqlphpmyadmin.html


    Everything seems to work perfectly well even being different builds the current one 20091211 and the new one on 20100121 build

    So have to do some more testing but it seems possible at least in my case, where I only use the forum module right now.

    So what I’ll is to just another installation with Cafe Break Theme learn how the settings on this framework works and when I’m ready, I’ll Set the current site offline and install the new one… on the root.. shouldn’t take more than a couple of hours.

  • #9 / Jan 22, 2010 10:08am

    Ingmar

    29245 posts

    /root (index.php)/system1 (index.php)
    /root (index2.php)/system2 (index2.php)

    That’s not going to work, I am afraid. There’d have to be two separate “path.php” files in the “root” dir. You’ll definitely want separate directories.

  • #10 / Jan 22, 2010 10:14am

    Mario Rodríguez

    72 posts

    Ingmar,

    ok, good to know… I won’t try it them.

    Does the new build update change something in the database estructure? Because the export import of tables went smoothly… even being tables from databases from different EE and Forum builds

  • #11 / Jan 22, 2010 10:21am

    Ingmar

    29245 posts

    Yes, 2.0.1 does some change to the db structure as well. Be sure to run the update script.

  • #12 / Jan 22, 2010 10:25am

    Mario Rodríguez

    72 posts

    Ah… ok… I thought the new builds do not touch the database…

    I’ll update the current one to the newest build then.

  • #13 / Jan 22, 2010 10:28am

    Ingmar

    29245 posts

    Ah… ok… I thought the new builds do not touch the database…

    This it not a new build, it’s a new version—the version number changes, too.

  • #14 / Jan 22, 2010 10:30am

    Mario Rodríguez

    72 posts

    Ah ok… you are right…

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases