PDA

View Full Version : To be sure with the global settings


brunodarwin371999
07-10-2009, 05:06 AM
I am not sure about my global settings for localhost AND for my web server

Let’s say my website’s name is
• test
and located at :
• http://www.test.com on the web
• http://localhost/test on my local server

All the POWER CMS files are located in a folder called « cms » at :
• http://www.test.com/cms/ on the web
• http://localhost/test/cms/ on my local server


So, please advise if in the WA_globals.php, the proper settings are :

*** General settings***
• $WAGLOBAL_Root_URL = "http:// test.com/" ;
• $WAGLOBAL_Site_Name = " test" ;

*** Local an Remote Server settings***
• $WAGLOBAL_localRoot = "/" ;
• $WAGLOBAL_remoteRoot = "/cms/"; (on the documentation it seems to have a space like « / cms/ ; » please advise ...)

• If I test locally only, should I delete the line with $WAGLOBAL_remoteRoot ?
• If I test it on the web only, should I delete the line with $WAGLOBAL_localRoot ?

*** iRite Images upload settings***
- $WAGLOBAL_Images_Folder = "/images/";
- $WAGLOBAL_Swf_Folder = "/swf/";

*** Admin Settings***
- $WAGLOBAL_Admin_UserName = "bob" ; (for example
- $WAGLOBAL_Admin_Password = "katz" ; (for example)
-
Many thanks in advance for your help.

Ray Borduin
07-10-2009, 07:59 AM
$WAGLOBAL_localRoot = "/test/cms/" ;
$WAGLOBAL_remoteRoot = "/cms/";

The code should check to see if the directory specified as the local root exists. If it exists it will use that otherwise it will use the remote root value. So it should just work on both once it is set correctly in your case.

brunodarwin371999
07-11-2009, 07:37 AM
Thank you very much Ray