Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: CMS Builder:
Problem with subdomain linking to cmsAdmin

 

 


Jeffncou
User

Jan 3, 2012, 3:48 AM

Post #1 of 3 (406 views)
Shortcut
Problem with subdomain linking to cmsAdmin Can't Post

I would like to create a subdomain of my website and use the same database/license as the main site. Firstly, is this allowed within the license or do I need to purchase another license?

If it is allowed could you help me with setting things up. Currently I am experiencing difficulty with the path to the cms.

I would like to set up the subdomain weddings.domainname.co.uk

The main section of the site links to the cms folder with this:

require_once "/******/cmsAdmin/lib/viewer_functions.php";

I thought it would be possible to make this work with a subdomain by using an absolute url:

require_once "http://www.domainname.co.uk/cmsAdmin/lib/viewer_functions.php";

but I get the error:

Warning: require_once() [function.require-once]: URL file-access is disabled in the server configuration in /home/jeffncou/public_html/domainname.co.uk/weddings/index.php on line 3

Warning: require_once(http://www.domainname.co.uk/cmsAdmin/lib/viewer_functions.php) [function.require-once]: failed to open stream: no suitable wrapper could be found in /home/jeffncou/public_html/www.domainname.co.uk/weddings/index.php on line 3

Thanks
Jeff


(This post was edited by Jeffncou on Jan 3, 2012, 3:56 AM)


Jason
Staff / Moderator


Jan 3, 2012, 8:32 AM

Post #2 of 3 (393 views)
Shortcut
Re: [Jeffncou] Problem with subdomain linking to cmsAdmin [In reply to] Can't Post

Hi,

For security reasons, php normally doesn't allow require statements using an absolute URL.

If you want to use a subdomain, you will need a separate license, install, etc.

The easiest way to do this, would be to set it up as a sub-folder of you site instead of a subdomain
ie

domainname.co.uk/weddings

You would be able to do this using the single installation.

Hope this helps
---------------------------------------------------
Jason Sauchuk - Programmer 
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/ 


Jeffncou
User

Jan 4, 2012, 5:47 AM

Post #3 of 3 (383 views)
Shortcut
Re: [Jason] Problem with subdomain linking to cmsAdmin [In reply to] Can't Post

Thanks Jason

I would prefer to use a subdomain so have purchased an extra license.

Thanks for your help, Jeff