HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Moving existing install to a subdomain?

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#102729 (In Topic #20125)
Avatar

Fan in action

Greetings,

I am currently trying to move my existing installation of ocPortal 9.0.2 to a subdomain on the same server.

I have followed the support article on moving ocPortal installation and moved the files from

public_html/site1/forum

to

public_html/site2

I'm not ready to get rid of site1 yet so I cloned the ocportal DB and kept the same user account that ocportal uses to write to the DB

Then I went into site2/config_editor.php and updated the base URL to http://site2.net and the DB info to use the cloned DB. After that I went into the upgrader.php and cleared all caches and ran fix permissions (there were none to be fixed though).

Now when I try to access the new site I get a 404 error from my webhost. The weird thing is that it resolves the path to site2.net/pg/start and if I try to access site2.net/forum it will redirect to site2.net/forum/pg/forumview but it will still give me my web host's 404 error.

What am I missing here? 

Thank you in advance.
Back to the top
 
Posted
Rating:
#102731
Avatar

Fan in action

Ok, so I deleted the contents of the public_html/site2 directory and manually copied each folder from site1/forum to site2.

I'm able to log into site2 now but a lot of modules are broken/missing.

When I access pages like the main site, chat or catalogues, I get an ocportal 404 error. Forums however are working fine.

What gives?

Could it be a database issue? The old install still works fine and the new one is using a cloned DB of the old one so it's technically the same.

I'm lost  O_o
Back to the top
 
Posted
Rating:
#102732
Avatar

Community saint

The only thing I can think of is because you are using subdomains you may need to change the $SITE_INFO['domain']= entry in info.php to include the subdomain.

I doubt very much that is will be a DB issue.




Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#102733
Avatar

Fan in action

Thanks for your response. Unfortunately that didn't do the trick.

I don't understand why the second install is partially broken. They're both pretty much identical.
Back to the top
 
Posted
Rating:
#102736
Avatar

Community saint

DoDD said

I don't understand why the second install is partially broken. They're both pretty much identical.
You didn't mention if you made the db changes the second time around. If you are doing things manually then you have to pay special attention to info.php and .htaccess.

Here is the way I clone my site: How to clone your ocPortal site - ocPortal.com .

Note that I have never needed to clone to a subdomain but I can't think of any reason it would fail.

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#102741
Avatar

Yes I suspect a big part of this is ".htaccess" is a hidden file on Linux/Mac, so you may have missed it.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#102766
Avatar

Fan in action

temp1024 said

DoDD said

I don't understand why the second install is partially broken. They're both pretty much identical.
You didn't mention if you made the db changes the second time around. If you are doing things manually then you have to pay special attention to info.php and .htaccess.

Here is the way I clone my site: How to clone your ocPortal site - ocPortal.com .

Note that I have never needed to clone to a subdomain but I can't think of any reason it would fail.


Indeed. I've followed those steps and after hours of battling error messages the new site is finally up :)


A lot of weird things are happening on the cloned site though. For instance, a lot of DB tables got lost in the process so I had to manually copy them from an existing DB to the new one.

Thanks a lot for the help guys
Back to the top
 
Posted
Rating:
#102773
Avatar

Community saint

I'm glad its working for you, but you should not have had the table loss problem O_o .

The only time I could see loosing tables is if you ran out of disk space, but I imaging that that would have been obvious if that were the case.

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#102778
Avatar

Fan in action

temp1024 said

I'm glad its working for you, but you should not have had the table loss problem .

The only time I could see loosing tables is if you ran out of disk space, but I imaging that that would have been obvious if that were the case.


I assure you low-disk space was not an issue. Since I was in a rush I didn't have time to try to figure how or why that happened. I'm still occasionally finding missing tables and adding them back as I find them but the site is functional right now.

Thanks again for your help :)
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: