Forums / Install & configuration / CPanel, Sub-Domains and EZPublish

CPanel, Sub-Domains and EZPublish

Author Message

Robert Castelo

Sunday 10 August 2003 6:42:22 am

The hosting provider I'm trying to set up EZPublish on uses CPanel (http://www.cpanel.net) to give customers like me control over various aspects of their accounts.

By logging in to my control panel, CPanel, I can create a sub-domain such as "admin.maindomain.com". This creates a sub directory with it's own CGI bin, and I can also forward this sub-domain to anywhere on my main domain such as "www.maindomain.com/admin/".

What I can't understand is... are these sub-domains the "virtual-hosts" which EZPublish likes to use?

I've installed EZPublish 3.1, and when I go to "www.maindomain.com/ezpublish/" the site comes up with the demo data (very nice!), but I can't get "admin.maindomain.com" to work.

This is what I've tried so far....

1. Set up su-domain "admin.maindomain.com" through CPanel control panel.

2. Edited "settings/override/site.ini.append" with these settings:

[SiteAccessSettings]
MatchOrder=host
HostMatchRegexp=^(.+)\.maindomain\.com$
HostMatchSubtextPost=\.maindomain\.com

3. Created new directory "www" in "settings/siteaccess/", "admin" directory already exists.

4. Copy "site.ini.append" from "settings/siteaccess/user" to "settings/siteaccess/www"

After all this I try "admin.maindomain.com" and all I get is a view of the file directory of the new sub-domain (index.html and cgi-bin directory).

If I forward "admin.maindomain.com" to "www.maindomain.com/ezpublish/" I get the demo site, but no sign of the admin pages.

What am I doing wrong?

Is my CPanel created su-domain a "virtual host"?

Where should I set my sub-domain to forward to?

Stéphane Cloutier

Sunday 17 August 2003 9:44:14 am

You could redirect admin.maindomain.com to www.maindomain.com/ezpuplish/index.php/admin/

It works in my case.

Qupanuaq

Qupanuaq - Snow bunting

Robert Castelo

Monday 18 August 2003 1:08:59 pm

I have redirect admin.maindomain.com to www.maindomain.com/ezpuplish/index.php/admin/
but this just gives me the default view - Demo - with an error message in the middle of the page:

"Module not found
The requested module 'admin' could not be found."

The only way I can get to Admin pages is to change the default view to admin - the Admin section then works fine.

Anyone have any ideas?

Robert Castelo

Monday 18 August 2003 1:11:10 pm

By the way - is there a bug in the search function of this forum? I tried searching for the word 'admin', but it didn't find anything - which is clearly not correct.

Other keywords work fine - are there restricted words that you are not allowed to search for?

Robert Castelo

Tuesday 19 August 2003 6:17:13 am

Replying to my own questions...

After trying various tactics, settings, and set ups - I gave up!

If your hosting account has CPanel, my advice is to forget about trying to set up Sub-Domains as Virtual Hosts for EzPublish.

Instead I used URI to set up User and Admin sites, and it works fine so far.

Good luck!

alan young

Wednesday 20 August 2003 1:14:51 am

how did you do that?
do you have an example?

Robert Castelo

Wednesday 20 August 2003 4:28:54 am

Here's how I set up URI:

After you have gone through the install process...

Open the file settings/override/site.ini.append.php

Add this:

[SiteAccessSettings]
MatchOrder=uri
URIMatchType=element
URIMatchElement=1
URIMatchRegexp=^/([^/]+)/
URIMatchRegexpItem=1

While you are here you can also add a few other useful things....

ViewCaching=disabled

This will switch off caching - it will slow down your site, but will make it easier to view any changes you make to templates. Once you have set up your custom site you should switch this back to "enabled".

[DebugSettings]
DebugOutput=enabled

If you are having problems, this will give you more detailed info on what is going on. Once you are happy with your site, switch it back to "disabled"

Hope this helps!

Igor Lessio

Sunday 19 December 2004 5:51:21 am

Hi i'm installing EZ on a cpanel hosting can u please send me the configuration?
In that way i will be able to install it direct and with no problems.
I'm not an expert in cpanel so i need help.

In-Gen