1
GPboarder
How do I change the Xoops Root folder?
  • 2007/12/18 16:16

  • GPboarder

  • Friend of XOOPS

  • Posts: 248

  • Since: 2006/10/6


What is the process to change the XOOPS root folder?

For example if I want to move it from www.mysite.com to www.new.mysite.com?

Is there more to it than just moving the files and updating the paths in mainfile.php?
Optimism is the mother of disappointment.

2
Will_H
Re: How do I change the Xoops Root folder?
  • 2007/12/18 18:01

  • Will_H

  • Friend of XOOPS

  • Posts: 1786

  • Since: 2004/10/10


nope, thats it.

remember though, there are two lines that need to be modified in mainfile.

virtual and physical paths.

www.new.mysite.com

and

home/mysite/public_html/new/

3
mboyden
Re: How do I change the Xoops Root folder?
  • 2007/12/18 20:04

  • mboyden

  • Moderator

  • Posts: 484

  • Since: 2005/3/9 1


When you move a site from one location to another, there are a few things you should take care of based on my experiences. The process I use for moving to a new server (the process I use for deployment of every client site from dev to test, and from test to production):

1. Export the database (I use phpMyAdmin and also check 'delete table')
2. TarGzip the entire site (include XOOPS_TRUSTED_PATH as you are likely using the Protector module -- any maybe others)
3. Create database and user on new site (if not already setup)
4. Change hard-coded local URLs in data (better yet, always make URLs relative!; search the SQL file for both web & file paths, especially for module filepath preferences in dB)
5. Import SQL file to new database
6. UnGzipTar files into place
7. Fix mainfile.php for new site (several locations):
- XOOPS root path;
- XOOPS root url;
- database host, database, username, password;
- trust path, etc.
8. Fix .htaccess with new domain/url (likely unneeded)

Finally, do you have any modules that are SEO enabled, such as SmartSection? That hits point #8. Also, some of the above may not apply to your site, so you may not have to follow the step.
Pessimists see difficulty in opportunity; Optimists see opportunity in difficulty. --W Churchill

XOOPS: Latest | Debug | Hosting and Web Development

4
GPboarder
Re: How do I change the Xoops Root folder?
  • 2007/12/18 20:11

  • GPboarder

  • Friend of XOOPS

  • Posts: 248

  • Since: 2006/10/6


Thanks.

When I started the site, it was an automatic install by the host company. This led to me having the address www.mysite/xoops.com. I just want to move it up to the actual root folder of my site, get rid of the /xoops and start taking more advantage of the system.

No need to change servers or move any databases.
Optimism is the mother of disappointment.

Login

Who's Online

254 user(s) are online (147 user(s) are browsing Support Forums)


Members: 0


Guests: 254


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits