PDA

View Full Version : Moving CMS up to parent/root?


jefferis
09-09-2011, 05:55 PM
Hi folks, I posted a question in programming, but this may be more appropriate here:

In version 4.1.5, there are instructions in the index.php file for changing the location of the CMS page, and I've followed them as best I can. I placed the index.php at the root, one level up from my forums. I uncommented the line in the index file to read:
define('VB_RELATIVE_PATH', 'vBforum'); which is the location of our forums.

Cookies are set to /
In the URL settings in Admin I set it to our root: http://www.igotaevo.com
As far as I can tell, there is no need to do rewrites for urls in the latest version or to upload the vb_dir.php file as in the past.... it doesn't say to to that in the index instructions....
Anyone have a current tutorial or idea on what might be going wrong?

the error I'm getting is: Parse error: syntax error, unexpected T_STRING in /home/igotaevo/public_html/index.php on line 1

TheLastSuperman
09-09-2011, 06:15 PM
Upload what's in the .zip file i.e.

do_not_upload/cms/

Upload all of those files into your root and yes, modify vb_dir.php and upload it as well.

When modifying vb_dir.php you want your path i.e.

<?php

//If you installed the cms directly as a subdirectory of
//vbulletin (www.example.com/cms) then you don't need to change this
//file. Otherwise comment out the first line, uncomment the second line,
//and change the value to be the actual path to the vbulletin installation on
//server.

//$vb_dir = realpath(dirname(__FILE__) . '/..');
$vb_dir = "/home/mynamehere/public_html/forums";
?>

jefferis
09-09-2011, 07:20 PM
Hi, thanks for the input. I see a conflict though in the CMS do not upload files. There is an index file inside that CMS directory that is different from the index.php file in the forums directory. The instructions say to move the index.php file inside the forums folder up to the parent folder. Are these files inside the CMS directory to be loaded up into their own directory as root/CMS/files
or to be removed from the directory to root/files? IOW, the index inside CMS folder is not a complete index page...

Jeff

--------------- Added 1315600668 at 1315600668 ---------------

BTW, if I move the entire CMS directory to root, the CMS home pages shows properly at the http://www.igotaevo.com/cms url, but the index.php at the root level still produces that php parse syntax error. It seems there are conflicting instructions in the index.php page which state
* If you want to move this file to the root of your website, change this
* line to your vBulletin directory and uncomment it (delete the //).
*
* For example, if vBulletin is installed in '/forum' the line should
If it is not necessary to move this page to the root, I'm not sure why the instructions seem to say you can/should do that...

--------------- Added 1315623220 at 1315623220 ---------------

I removed the index.php from the root folder, deleted the CMS folder at root and reset locations in Admin >Settings>Url back to original settings and now we cannot stay logged in if we leave the forums. We're getting this error:

Invalid Redirect URL (http://www.igotaevo.com/vBforum/forum.php)
But that IS the URL of our forum page...