Memorial Day
Support will be closed on Monday, May 28th, 2012 to enjoy Memorial Day with our friends and families.
   
1 of 2
1
Need help with back up site
Posted: 11 February 2012 02:43 PM   [ Ignore ]  
Grad Student
Rank
Total Posts:  95
Joined  11-28-2011

I am trying to create a backed up site to perform tests on.  I am using the user guide that is here.  I have followed the instructions to the T and all the paths on the new site are still pointing to the old site.  I have a new database and changed all config, database and all paths in CP.

The way I am trying to this might help with this issue.  I am trying to have a full site in a sub folder.  Normal site is www.mysite.com and I am wanting to have a separate full functioning backed up version under www.mysite.com/testsite/.  Is this even possible?

Thanks
Matt

 Signature 

EE 2.4.0
Forum 3.1.7

Profile
 
 
Posted: 12 February 2012 05:11 AM   [ Ignore ]   [ # 1 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  284
Joined  07-09-2009

Hi Matt

Running EE out of a sub-folder is possible.

Are you aiming to have mysite.com and mysite.com/testsite running off the SAME database?

Matt

 Signature 

By The People - London based web agency | me on the twitter

Profile
 
 
Posted: 12 February 2012 10:41 AM   [ Ignore ]   [ # 2 ]  
Grad Student
Rank
Total Posts:  95
Joined  11-28-2011

I want to have separate databases.  I have a separate database set up that is a copy of the main one.

 Signature 

EE 2.4.0
Forum 3.1.7

Profile
 
 
Posted: 12 February 2012 08:27 PM   [ Ignore ]   [ # 3 ]  
Moderator
Avatar
RankRankRankRankRankRank
Total Posts:  5091
Joined  10-18-2005

Hi Matt,

What you are trying to do is entirely possible.

Are you using .htaccess on the main site to remove index.php? have you made sure to update any use of .htaccess in the sub-folder?

Also, double check that there are no references to the original site in config.php, index.php, admin.php and /system/index.php

Cheers,

 Signature 

ExpressionEngine is 2.5 | MojoMotor is 1.2


User Guide | Feature Requests | Bug Tracker | Upgrade Wiki

Profile
 
 
Posted: 12 February 2012 09:39 PM   [ Ignore ]   [ # 4 ]  
Grad Student
Rank
Total Posts:  95
Joined  11-28-2011

I do have a .htaccess in the main site but I took it out of the testsite.  I reviewed the config.php, index.php, admin.php and /system/index.php and didn’t find any reference to the other site.  When looking at the admin.php and index.php, I don’t see any reference to any site??

 Signature 

EE 2.4.0
Forum 3.1.7

Profile
 
 
Posted: 13 February 2012 08:18 PM   [ Ignore ]   [ # 5 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  4003
Joined  05-13-2004

Hi Matt,

In your index.php file could you uncomment line 45 which looks like this:

$assign_to_config[‘site_url’] = ‘http://domain2.com’;

and put in the correct url to your test site and see if that helps you out?

When you say that all the paths are still pointing to the original site, could you be more specific about this. Is this soemthing that is happening on in the CP or on the front end of the site? Could you post up a screenshot or code sameple of the issue?

Sean

 Signature 

web: Caffeine Creations twitter @CS_sean

Profile
 
 
Posted: 13 February 2012 09:51 PM   [ Ignore ]   [ # 6 ]  
Grad Student
Rank
Total Posts:  95
Joined  11-28-2011

I changed the link on the index.php.  It was on line 81.  I am looking at the main index file

It was: $assign_to_config[‘site_url’] = ‘’;
It Is now: $assign_to_config[‘site_url’] = ‘http://www.mainsite.com/testsite/’;

But now I can’t login into testsite CP.

I can open the actual testsite but everything there points to the primary links.

 Signature 

EE 2.4.0
Forum 3.1.7

Profile
 
 
Posted: 15 February 2012 02:20 PM   [ Ignore ]   [ # 7 ]  
Moderator
Avatar
RankRankRankRankRankRank
Total Posts:  5091
Joined  10-18-2005

Hi Matt,

I can open the actual testsite but everything there points to the primary links.

We’ll need to get you into your Control Panel in order to update paths and other settings, so let’s focus on that for now.

In /testsite/admin.php and check your CP URL. It should be similar to:

$assign_to_config['cp_url''http://www.mainsite.com/testsite/admin.php'

Cheers,

 Signature 

ExpressionEngine is 2.5 | MojoMotor is 1.2


User Guide | Feature Requests | Bug Tracker | Upgrade Wiki

Profile
 
 
Posted: 15 February 2012 02:29 PM   [ Ignore ]   [ # 8 ]  
Grad Student
Rank
Total Posts:  95
Joined  11-28-2011

Well, maybe we have something here.  Am I supposed to be using Multiple Site Manager?
My admin.php says (exact copy)  $assign_to_config[‘cp_url’] = ‘http://domain2.com/admin.php’;


Also, I am in the process of setting up a complete backup under a sub-domain off another site with a totally different host.  Just so there isn’t any issues with files getting crossed.

 Signature 

EE 2.4.0
Forum 3.1.7

Profile
 
 
Posted: 15 February 2012 07:33 PM   [ Ignore ]   [ # 9 ]  
Grad Student
Rank
Total Posts:  95
Joined  11-28-2011

Ok, I got the new backup site uploaded in a totally different domain and host.  Went thru all the file changes per the instructions and the site is working perfect.  All the paths are pointing to the right spot.  Everything looks great, except.  I can’t get in the CP.  I get to the login screen and when I try to login, nothing happens.  I think if I can get everything going right if I can get in the CP.

 Signature 

EE 2.4.0
Forum 3.1.7

Profile
 
 
Posted: 16 February 2012 08:20 PM   [ Ignore ]   [ # 10 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  4003
Joined  05-13-2004

Hi Matt,

What exactly happens when you login? Does the page refresh and you are not logged in? Doe clicking “login” result in no action? Are you seeing the “invalid username or password” error?

Could you try logging in to both domain.com/admin.php as well as domain.com/system/index.php

Sean

 Signature 

web: Caffeine Creations twitter @CS_sean

Profile
 
 
Posted: 16 February 2012 08:28 PM   [ Ignore ]   [ # 11 ]  
Grad Student
Rank
Total Posts:  95
Joined  11-28-2011

when I click on login, it thinks for a second or two then stays at the login screen.

It does the same with both domain.com/admin.php as well as domain.com/system/index.php

I can’t login to the main site since I can’t view any of the channels yet.  They are where the login spots are.

 Signature 

EE 2.4.0
Forum 3.1.7

Profile
 
 
Posted: 18 February 2012 01:26 PM   [ Ignore ]   [ # 12 ]  
Grad Student
Rank
Total Posts:  95
Joined  11-28-2011

HELP!!!

 Signature 

EE 2.4.0
Forum 3.1.7

Profile
 
 
Posted: 21 February 2012 07:49 PM   [ Ignore ]   [ # 13 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  4003
Joined  05-13-2004

Hi Matt,

I’d like you to add the following to your config.php

$config['cookie_domain'"";
$config['cookie_path'"";
$config['cookie_prefix'"";
$config['admin_session_type'"cs";
$config['user_session_type'"c"

Let me know if that works for you.

Sean

 Signature 

web: Caffeine Creations twitter @CS_sean

Profile
 
 
Posted: 21 February 2012 10:07 PM   [ Ignore ]   [ # 14 ]  
Grad Student
Rank
Total Posts:  95
Joined  11-28-2011

That worked, BIG THANKS.  I can move on with a lot of stuff now.

I did have cookie_prefix in there, but none of the others.

 Signature 

EE 2.4.0
Forum 3.1.7

Profile
 
 
Posted: 22 February 2012 10:33 AM   [ Ignore ]   [ # 15 ]  
Grad Student
Rank
Total Posts:  95
Joined  11-28-2011

I got into my CP and changed all the links.  Everything seemed to go smooth.  When I go to the main page and click on a channel, I get a blank page with this error (No input file specified) at the top of the page.  I checked and rechecked all my links and they are all updated to the new path.  What am I missing.

 Signature 

EE 2.4.0
Forum 3.1.7

Profile
 
 
Posted: 24 February 2012 02:19 PM   [ Ignore ]   [ # 16 ]  
Moderator
Avatar
RankRankRankRankRankRank
Total Posts:  5091
Joined  10-18-2005

Hi Matt,

There are a couple of things to double check here.

1) Make sure that the index.php file in the “root” of your backup site is the file from the top level of your main site, modified with the proper $system_path variable.

When moving sites around like this, it is possible to get index.php and /system/index.php confused, and they are not interchangeable.

2) Double check each step in Moving ExpressionEngine to Another Server. The process is nearly identical to what you are wanting to do.

Cheers,

 Signature 

ExpressionEngine is 2.5 | MojoMotor is 1.2


User Guide | Feature Requests | Bug Tracker | Upgrade Wiki

Profile
 
 
Posted: 27 February 2012 11:36 AM   [ Ignore ]   [ # 17 ]  
Grad Student
Rank
Total Posts:  95
Joined  11-28-2011

Everything is right.  Could it be how my subdomain is set up?

 Signature 

EE 2.4.0
Forum 3.1.7

Profile
 
 
Posted: 27 February 2012 06:57 PM   [ Ignore ]   [ # 18 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  4003
Joined  05-13-2004

Matt76,

I got into my CP and changed all the links.  Everything seemed to go smooth.  When I go to the main page and click on a channel, I get a blank page with this error (No input file specified) at the top of the page.  I checked and rechecked all my links and they are all updated to the new path.  What am I missing.

Is the above error occurring in the CP or on the front end of your site. Are you trying to publish/edit a channel entry or view a section of your site. Could you post up a screenshot of what you are seeing.

How is your subdomain set up?

Sean

 Signature 

web: Caffeine Creations twitter @CS_sean

Profile
 
 
   
1 of 2
1