1
Dhurgan
Changing the XOOPS_ROOT_PATH
  • 2005/1/18 8:53

  • Dhurgan

  • Just popping in

  • Posts: 68

  • Since: 2004/2/11


Hi all,

Our domain had to change for reasons unneeded here, but when
we changed it we were also moving the directory serving the domain, i.e. renaming it.

I changed the mainfile.php to reflect these changes, and at first everything seemed to work...

However, a small problem has showed up with this...

I get the following error...

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

I get this for either the public pages OR the admin pages depending on how I modify the mainfile.php XOOPS_ROOT_PATH

I switched everything back and even moved the root back to the old position, but the error persists...

is this variable stored somewhere else then in mainfile.php?

webserver is serving the domain x.y.z from /x.y.z/
works fine for public pages with XOOPS_URL and XOOPS_ROOT_PATH like above, but the admin pages complain about them not being in the new domain I set up a.b.c

if I switch the root path to the new one, the public pages complain and the admin pages work, real strange.

are these values stored somewhere else?

mainfile.php
define('XOOPS_ROOT_PATH','/usr/local/webroot/x.y.z');
define('XOOPS_URL''http://x.y.z');


webserver is serving from this place...

httpd.conf
<VirtualHost *:80>
  
ServerAdmin www@x.y.z
  DocumentRoot 
/usr/local/webroot/x.y.z
  ServerName x
.y.z
  ErrorLog logs
/x.y.z-errors
  CustomLog logs
/x.y.z-access combined
  
<Directory "/usr/local/webroot/x.y.z">
    
Options Indexes FollowSymLinks
    AllowOverride None
    Order allow
,deny
    Allow from all
  
</Directory>
</
VirtualHost>


but the reported scriptdirectory is the wrong one for either the admin or public pages depending on which one I have in the mainfile.php

Any ideas?

2
jdseymour
Re: Changing the XOOPS_ROOT_PATH

I don't know if this helps or not. I just in the last day migrated my site to new servers. I noticed that when I used my existing browser bookmark to the page it did not work (still somehow pointed to the old servers. ) I thought at first there was a problem with my site itself and dug into mainfile.php for about an hour trying to find the error before I updated my bookmark. Also clear any cache that you may have.

One other thing that I did, don't know if it helped or not, is I deleted adminmenu.php from the cache folder, and it regenerated at my first logon to the admin CP.

3
Dhurgan
Re: Changing the XOOPS_ROOT_PATH
  • 2005/1/18 9:39

  • Dhurgan

  • Just popping in

  • Posts: 68

  • Since: 2004/2/11


yes, I cleared the cache and templates_c directories.
and I cleared the caches and cookies from my browsers, tried a fresh browser from a third system.

Nothing helps :-/

I tried moving it again to a new name and domain just to see
now both public and admin is broken with the script path pointing out the two previous root paths as the ones that it should be...

I also noticed there is a php accelerator on the site and I have mailed the admins to see if that caches anything and if so how I clear it.

maybe I just need to touch everything to clear it up

I'm going to try that with the admin pages...

4
Dhurgan
Re: Changing the XOOPS_ROOT_PATH
  • 2005/1/18 9:45

  • Dhurgan

  • Just popping in

  • Posts: 68

  • Since: 2004/2/11


Yup, just tried touching the given files and that resolved it, so it seems its the php accellerator or apache that holds it in cache somewhere...

I will see if I can find a better way then to touch everything to solve this.

5
Dhurgan
Re: Changing the XOOPS_ROOT_PATH
  • 2005/1/18 11:13

  • Dhurgan

  • Just popping in

  • Posts: 68

  • Since: 2004/2/11


Well, it seems the problem was in the php accellerator, something to add to the FAQ perhaps?

The way to fix it was to clean out the accellerator cache, in our case /tmp/phpa_* and then possibly giving the webserver a graceful restart.

6
Dave_L
Re: Changing the XOOPS_ROOT_PATH
  • 2005/1/18 11:35

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


Is this the PHP Accelerator you're using?http://www.php-accelerator.co.uk/

Login

Who's Online

205 user(s) are online (123 user(s) are browsing Support Forums)


Members: 0


Guests: 205


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