1
AndyPandy
Change the root dir
  • 2007/1/13 23:53

  • AndyPandy

  • Just popping in

  • Posts: 3

  • Since: 2007/1/13


Sorry this is prob a very stupid question, im used to using phpbb so this system is a shock to me
OK..
How can you change the root directory? I want to move my XOOPS folder to another part of my site but I get errors when I do so.

Please help,
Thanks,
Andy

2
dizzymarkus
Re: Change the root dir

SOme of this may help you, it did another to upload to a new server from localhost-- and I do all my work at home then upload to a production server. Take from it what you can --

Short process I use is to install XOOPS on new server then dump tables and reload tables in sql from my localhost backup. heres some info-- hope it helps,




Goto mainfile.php and change the script address to what it is now -- should be in the top few lines. If you dont know the script address upload to root the php I will attach...--then got to

http://www.YOURSITE.com/get.php

copy the address that appears and paste it into the mainfile.php-- save changes.


Second (DB)

I dont use any programs to backup my db-- its actually pretty easy just using phpadmin. Im not sure but someone my have an easier way but this works great for me.

I use wamp not xamp but am sure the process is the same.

Goto phpadmin (LOCAL) to your db and click export. Make sure all tables are selected ( top left here-- cntrl click to multi select )
or use the check all check box at the bottom. tick the box that says "save as file" I name it the same as my production db name. The prefixs should remain the same I believe. IE xoops_users, -- xoops_groups etc. Save to "desktop-- or wherever you like)

I then install a fresh copy of XOOPS --PRODUCTION server--( solveing your script path stuff lol) go into php admin and remove all tables inside of the new db goto sql and paste the sql code from the file you save. (((( open sql file in wordpad if ya like)))))

you wont need to copy this part ---------------------------

-- phpMyAdmin SQL Dump
-- version 2.8.2.4
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Dec 30, 2006 at 09:18 PM
-- Server version: 5.0.24
-- PHP Version: 5.1.6
--
-- Database: `your_db_name`
--

-- --------------------------------------------------------


but copy the rest and paste it in. poof right where you were when you left off.I hope this is enough to help you. Its really pretty simple once you have done it once or twice. If your sql gives you problems depending ont he size of your db do it in sections. :0) -- I do --
I do each table indepentaly so it doent get messed.

Markus-------------let me know how it goes hu? TY


I cant attach so heres the get.php just paste it into your editor and save as get.php-----



echo str_replace('\\','/',getcwd());
?>


3
AndyPandy
Re: Change the root dir
  • 2007/1/15 22:46

  • AndyPandy

  • Just popping in

  • Posts: 3

  • Since: 2007/1/13


hmmm loads the page but nothing is diplayed, no errors or anything. The logo is displayed in the url and it is forwarded to the news but I see nothing Updated all the modules and templates etc.

4
AndyPandy
Re: Change the root dir
  • 2007/1/15 22:58

  • AndyPandy

  • Just popping in

  • Posts: 3

  • Since: 2007/1/13


its ok now mate sorted it out. cheers for your help

5
dizzymarkus
Re: Change the root dir

No worries and YW -- I'm no expert but I can post what I have firgured out in hopes someone can get something outta it.

Good for you congrats,

Markus

Login

Who's Online

407 user(s) are online (334 user(s) are browsing Support Forums)


Members: 0


Guests: 407


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