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

eZ debug

Timing: Jan 18 2025 11:44:42
Script start
Timing: Jan 18 2025 11:44:42
Module start 'content'
Timing: Jan 18 2025 11:44:43
Module end 'content'
Timing: Jan 18 2025 11:44:44
Script end

Main resources:

Total runtime1.4699 sec
Peak memory usage4,096.0000 KB
Database Queries213

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 589.2656180.8203
Module start 'content' 0.00691.3183 770.0859674.6484
Module end 'content' 1.32530.1446 1,444.7344340.4375
Script end 1.4698  1,785.1719 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.2854210.0002
Check MTime0.00150.1035210.0001
Mysql Total
Database connection0.00140.092310.0014
Mysqli_queries1.376793.65862130.0065
Looping result0.00260.17582110.0000
Template Total1.436597.720.7183
Template load0.00220.148120.0011
Template processing1.434397.580520.7172
Template load and register function0.00030.017310.0003
states
state_id_array0.00110.077710.0011
state_identifier_array0.00240.162920.0012
Override
Cache load0.00270.1806680.0000
Sytem overhead
Fetch class attribute can translate value0.00120.083550.0002
Fetch class attribute name0.00270.1836100.0003
XML
Image XML parsing0.00330.225250.0007
class_abstraction
Instantiating content class attribute0.00010.0072100.0000
General
dbfile0.00470.3214320.0001
String conversion0.00000.000630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 31
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs