Problem with subdomain linking to cmsAdmin

3 posts by 2 authors in: Forums > CMS Builder
Last Post: January 4, 2012   (RSS)

By JeffC - January 3, 2012 - edited: January 3, 2012

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
Jeff

Re: [Jeffncou] Problem with subdomain linking to cmsAdmin

By Jason - January 3, 2012

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 - Project Manager
interactivetools.com

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