1
waleed
Big Problem! (Help!)
  • 2004/11/1 18:29

  • waleed

  • Just popping in

  • Posts: 57

  • Since: 2004/4/1 5


Hi everybody,

recently I've switched from my former so called web hosting company to a new reputable company. They were very professional in moving my website with two xoops, a phpbb forum, moodle and many other stuff. Every thing went fine. I can tell because my XOOPS shares the same DB with one of the PhpBB forum which is back and running after modifying it's config file to the new username and password for the DB on the new host.

I then went to the "mainfile" in the XOOPS folder and changed everything into the new user and password. Yet, when I go to the XOOPS on the new host I get the following message:

“XOOPS path check: Script is not inside XOOPS_ROOT_PATH and cannot run.”

What is the problem?

Plz help me out

2
ackbarr
Re:Big Problem! (Help!)

check the XOOPS_ROOT_PATH variable in mainfile.php and ensure that it matches the real path to your files.

3
waleed
Re:Big Problem! (Help!)
  • 2004/11/1 18:57

  • waleed

  • Just popping in

  • Posts: 57

  • Since: 2004/4/1 5


Thanks for your response :)
Quote:

ackbarr wrote:
check the XOOPS_ROOT_PATH variable in mainfile.php and ensure that it matches the real path to your files.


I went to mainfile.php and below is the only line that contain "XOOPS_ROOT_PATH" :


if ( strcasecmp( substr($xoopsScriptPath, 0, strlen(XOOPS_ROOT_PATH)), str_replace( DIRECTORY_SEPARATOR, '/', XOOPS_ROOT_PATH)) ) {
exit("XOOPS path check: Script is not inside XOOPS_ROOT_PATH and cannot run.");
}

Does this look normal

4
ackbarr
Re:Big Problem! (Help!)

that line looks normal but there should be another one (before the one you listed):
define('XOOPS_ROOT_PATH''/some/path/to/files/here');

5
waleed
Re:Big Problem! (Help!)
  • 2004/11/1 19:30

  • waleed

  • Just popping in

  • Posts: 57

  • Since: 2004/4/1 5


yeah there is :

here is that line

define('XOOPS_ROOT_PATH', '/home/sites/www.aghandoura.com/public_html/mag2');

6
waleed
Re:Big Problem! (Help!)
  • 2004/11/1 21:43

  • waleed

  • Just popping in

  • Posts: 57

  • Since: 2004/4/1 5


Quote:

waleed wrote:
yeah there is :

here is that line

define('XOOPS_ROOT_PATH', '/home/sites/www.aghandoura.com/public_html/mag2');


ackbarr, what should I do next. Does this line look OK

7
m0nty
Re:Big Problem! (Help!)
  • 2004/11/1 21:49

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


we don't know if it looks ok.. the path you give in that should match the path to your root XOOPS folder on your new server..

should basically be the same path as your phpbb forum uses with the exception of the last folder..

/home/sites/www.aghandoura.com/public_html/ should be your root (public) folder now just add the rest to it to your XOOPS folder..

8
Bassman
Re:Big Problem! (Help!)
  • 2004/11/1 22:09

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


If you need to know your root path, here's a tip I picked up here in the forums:
1) Create a new file. You can use notepad or any text editor for this.
2) Copy and paste the following code:
Quote:

print getcwd ();
?>

3) Save the file as root.php or whatever you want that doesn't conflict with your existing files. If you're using notepad or similar, don't forget to use the .php extension and save as "All Files" or it will be saved as a text document.
4) upload to your XOOPS installation root folder.
5) Point your browser to it: http://www.yoursite.com/root.php
6) It will print out your XOOPS root path for you.

9
waleed
Re:Big Problem! (Help!)
  • 2004/11/2 0:43

  • waleed

  • Just popping in

  • Posts: 57

  • Since: 2004/4/1 5


Do you mean upload the root.php file to the same directory where my z\xoops is?

I did the above and it did not work, the page brings a dead page.

10
ackbarr
Re:Big Problem! (Help!)

ok - not sure why the above code snippet did not work for you, but try this one (in the same file, root.php)

echo(dirname(__FILE__));
?>


If this one also has problems, the only thing to do is contact the host and ask them for the appropriate path to your site.

* Edit - make sure this file is in the same directory as mainfile.php and go to the following url:

http://www.aghandoura.com/mag2/root.php

Login

Who's Online

380 user(s) are online (72 user(s) are browsing Support Forums)


Members: 0


Guests: 380


more...

Donat-O-Meter

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

Latest GitHub Commits