1
jorgendn
Moving xoops.
  • 2007/6/23 10:39

  • jorgendn

  • Just popping in

  • Posts: 2

  • Since: 2007/6/23


Is it possible to move the XOOPS installation to another folder on the webserver?

what files need to be configured to tell XOOPS that the ($xoops_site) is another directory/domain?

2
jdseymour
Re: Moving xoops.

Mainfile.php is the file you edit when moving a XOOPS installation. Make sure you clean the templates_c and cache folder after editing. Leave the index.html files in both folders for security.

3
jorgendn
Re: Moving xoops.
  • 2007/6/23 11:05

  • jorgendn

  • Just popping in

  • Posts: 2

  • Since: 2007/6/23


wow, that was fast... :)

thank you very much!

-J

4
mboyden
Re: Moving xoops.
  • 2007/6/23 13:47

  • mboyden

  • Moderator

  • Posts: 484

  • Since: 2005/3/9 1


It's possible, but it depends upon a number of things. Here is my short checklist.

How to Deploy Existing Site to New Site
1. Export the entire database
2. TarGzip the entire site (include XOOPS_TRUSTED_PATH if appropriate)
3. Setup database on new site (if not already setup)
4. Change hard-coded local URLs in data (make relative!).
5. Import database to new site
6. UnGzipTar files and move into place
7. Fix mainfile.php with new database login, XOOPS root path/url
8. Fix .htaccess with new domain/url (likely unneeded)

#4 is quite pertinent. Depending on your content, you may have some hardcoded URLs or IMG sources. The depends upon how your server is configured. You may have to do a search and replace of your SQL code prior to importing the database to fix these across your site.

Mainfile has your database login info and XOOPS Root info (two places: URL and file root). If your database hasn't changed, then you don't have to worry about that.

I've done this a number of times for clients because we have a development sandbox, a test/staging sandbox, and then the production environment. Each has to be easy to move. Using the above, makes it easy.
Pessimists see difficulty in opportunity; Optimists see opportunity in difficulty. --W Churchill

XOOPS: Latest | Debug | Hosting and Web Development

Login

Who's Online

281 user(s) are online (218 user(s) are browsing Support Forums)


Members: 0


Guests: 281


more...

Donat-O-Meter

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

Latest GitHub Commits