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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 16:16:00
Script start
Timing: Jan 18 2025 16:16:00
Module start 'layout'
Timing: Jan 18 2025 16:16:00
Module start 'content'
Timing: Jan 18 2025 16:16:00
Module end 'content'
Timing: Jan 18 2025 16:16:00
Script end

Main resources:

Total runtime0.7734 sec
Peak memory usage4,096.0000 KB
Database Queries76

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 588.0391152.6406
Module start 'layout' 0.00500.0029 740.679739.4766
Module start 'content' 0.00790.7638 780.1563669.5547
Module end 'content' 0.77170.0016 1,449.710916.1406
Script end 0.7733  1,465.8516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4063160.0002
Check MTime0.00130.1697160.0001
Mysql Total
Database connection0.00080.108910.0008
Mysqli_queries0.701190.6500760.0092
Looping result0.00060.0760740.0000
Template Total0.743596.120.3718
Template load0.00220.289020.0011
Template processing0.741395.852920.3706
Template load and register function0.00010.019310.0001
states
state_id_array0.00070.094210.0007
state_identifier_array0.00090.113320.0004
Override
Cache load0.00200.2616680.0000
Sytem overhead
Fetch class attribute can translate value0.00050.065540.0001
Fetch class attribute name0.00080.1028100.0001
XML
Image XML parsing0.00120.156740.0003
class_abstraction
Instantiating content class attribute0.00000.0021100.0000
General
dbfile0.00100.1273210.0000
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
12content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 31
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs