1
zerogfx
Moving Xoops to another folder.
  • 2005/12/12 2:26

  • zerogfx

  • Just popping in

  • Posts: 7

  • Since: 2005/12/12


Currently i have my site located at "site.com/xoops", but I want to move it to "subdomain.site.com"

When i move the folders, (and reflect the change of url in mainfile.php) it says that it can't find the script to run in XOOPS_ROOT_PATH

Do I have to change something in my database as well?

2
smdcom
Re: Moving Xoops to another folder.

Make sure you change the XOOPS_URL and XOOPS_ROOT_PATH correctly.

Let us know what error message you have there.

3
zerogfx
Re: Moving Xoops to another folder.
  • 2005/12/12 2:55

  • zerogfx

  • Just popping in

  • Posts: 7

  • Since: 2005/12/12


here's the error: XOOPS path check: Script is not inside XOOPS_ROOT_PATH and cannot run.

4
JMorris
Re: Moving Xoops to another folder.
  • 2005/12/12 3:10

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


Since you've made the appropriate changes in mainfile.php, I'd say yes.

Download your database using a tool like phpMyAdmin. Make sure you select the "Drop Table If Exists" option. Then download a second copy as a backup (just in case). Now, open the sql file in any text editor and do a find and replace for the old domain to the new domain.

Example:

find:http://olddomain.com
replace:http://subdomain.olddomain.com


Save the file and reimport. If the database is over 2MB, you'll need a Staggered MySQL Dump Importer like BigDump.

Hope this helps.

James
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

5
zerogfx
Re: Moving Xoops to another folder.
  • 2005/12/12 3:39

  • zerogfx

  • Just popping in

  • Posts: 7

  • Since: 2005/12/12


The only instances of the site's url in the sql were for banner images in the xoops_banner table.

Should I check/analyze/repair/optimize tables?

6
JMorris
Re: Moving Xoops to another folder.
  • 2005/12/12 3:41

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


Hmm... Double check the absolute and relative paths in mainfile.php. I've accidently forgot to remove the read-only attribute before, maybe you did the same.

Quote:
Should I check/analyze/repair/optimize tables?


You shouldn't need to.
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

7
zerogfx
Re: Moving Xoops to another folder.
  • 2005/12/12 3:54

  • zerogfx

  • Just popping in

  • Posts: 7

  • Since: 2005/12/12


What do you mean by the 'read-only attribute'?

8
JMorris
Re: Moving Xoops to another folder.
  • 2005/12/12 4:00

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


Sorry...

You'll need to make sure that mainfile.php is chmod at least 644 (perhaps even 666) before you make changes to it, otherwise the changes will not take effect. If your host uses Windows, you'll need to remove the check box on the Read-only attribute.

I hope this clarifies things.

Best Regards,

James
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

9
zerogfx
Re: Moving Xoops to another folder.
  • 2005/12/12 4:05

  • zerogfx

  • Just popping in

  • Posts: 7

  • Since: 2005/12/12


That did it. Thanks for your help

10
JMorris
Re: Moving Xoops to another folder.
  • 2005/12/12 4:24

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


No problem. Happy XOOPS'ing!
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

Login

Who's Online

207 user(s) are online (127 user(s) are browsing Support Forums)


Members: 0


Guests: 207


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