How to create a site in a specific platform?

Events happening in the community are now at Drupal community events on www.drupal.org.
neokrish's picture

Hi all,
I have been trying in vain to aegir working for many months on a cpanel server and only later found it's not doable. Now I have it working on my local machine and I am loving it so much. It's like firebug for firefox! Thank you guys!

Now moving on to my question, I have drupal6.16 as my default platform which I created as part of the aegir installation. I have created two more platforms. When I create a site now using create content, I am not able to select to which platform my newly created site must belong. Currently I am creating the site in my default platform and then migrating it to another platform of my choice. Is this how it's supposed to work or am I missing something?

Thanks for anything that helps.

neokrish

Comments

When I'm on the create site

hadsie's picture

When I'm on the create site page (node/add/site) there's a platform radio selection. I currently have 5 platforms and can create sites on any of them. You shouldn't need to create on the default platform and then migrate. And in fact that won't work in some instances where the default platform is too different from the platform you're migrating to. Are you not getting the platform selection radio buttons on your site creation page? Also, what release of aegir are you using?

Thanks hadsie. I am using 0.4

neokrish's picture

Thanks hadsie. I am using 0.4 alpha6. I now tried creating a platform using managing news and it works fine as you mentioned. The previous one that I tried was uberdrupal which did not show a platform radio button in create site. I will recheck and post it here if this is a bug or some mistake that I made.

However, there is one more question.
MN platform is working as expected and I even created a site in that platform which works without any problem. Since I wanted to try multiple profile support for a single platform, I copied the openatrium profile into MN platform's profiles folder and re-verified the platform. Now when I create a site, I could see three profiles to choose from MN platform: default, MN, and open atrium. However, creating a site using Open Atrium profile gives me the following error.

The external command could not be executed due to an application error.
An error occurred at function : drush_hosting_hosting_task

Is it a problem with OA profile? I guess so. Because I later tried using OA as a seperate platform and platform verified successfully. However, creating a site using OA platform gives me the following message.

Task starts processing
Running: /var/aegir/drush/drush.php --root='/var/aegir/atrium-1-0-beta6' provision-install 'oab' --backend
The external command could not be executed due to an application error.
Drush bootstrap phase : _drush_bootstrap_drush()
Drush bootstrap phase : _drush_bootstrap_drupal_root()
Loading drushrc "/var/aegir/atrium-1-0-beta6/drushrc.php" into "drupal" scope.
Initialized Drupal 6.16 root directory at /var/aegir/atrium-1-0-beta6
Found command: provision-install (commandfile=provision)
Initializing drush commandfile: drush_make
Initializing drush commandfile: drush_make_d_o
Initializing drush commandfile: provision
Initializing drush commandfile: provision_apache
Undefined index: base_url provision_apache.drush.inc:50
Initializing drush commandfile: provision_drupal
Initializing drush commandfile: provision_mysql
Undefined index: db_url provision_mysql.drush.inc:16
Including /var/aegir/.drush/provision/web_server/install.provision.inc
Including /var/aegir/.drush/provision/platform/install.provision.inc
Including /var/aegir/.drush/provision/db_server/install.provision.inc
Created sites/oab
Changed permissions of sites/oab to 0755
Created sites/oab/themes
Changed permissions of sites/oab/themes to 2775
Created sites/oab/modules
Changed permissions of sites/oab/modules to 2775
Created sites/oab/libraries
Changed permissions of sites/oab/libraries to 2775
Created sites/oab/private
Changed permissions of sites/oab/private to 0755
Created sites/oab/private/files
Changed permissions of sites/oab/private/files to 2770
Created sites/oab/private/temp
Changed permissions of sites/oab/private/temp to 2770
Created sites/oab/files
Changed permissions of sites/oab/files to 2770
Created sites/oab/files/tmp
Changed permissions of sites/oab/files/tmp to 2770
Created sites/oab/files/images
Changed permissions of sites/oab/files/images to 2770
Created sites/oab/files/pictures
Changed permissions of sites/oab/files/pictures to 2770
Changed ownership of sites/oab/files
Changed ownership of sites/oab/private
Changed group ownership of sites/oab/files
Changed group ownership of sites/oab/private/files
Changed group ownership of sites/oab/private/temp
Granting privileges to site_376@localhost on site_376
Created site_376 database
Generate settings.php file
Changed permissions of settings.php to 0440
Change group ownership of settings.php to www-data
Drush bootstrap phase : _drush_bootstrap_drupal_site()
Initialized Drupal site oab at sites/oab
Including version specific file : /var/aegir/.drush/provision/platform/drupal/install_6.inc
Drush bootstrap phase : _drush_bootstrap_drupal_configuration()
Drush bootstrap phase : _drush_bootstrap_drupal_database()
Successfully connected to the Drupal database.
Installing Drupal schema
Loading openatrium install profile
Installing translation : en
Undefined variable: missing_requirement install_6.inc:225
Drush bootstrap phase : _drush_bootstrap_drupal_full()
Installed Block module.
Installed Filter module.
Installed Node module.
Installed User module.
Installed Block module.
Installed Comment module.
Installed Database logging module.
Installed Filter module.
Installed Help module.
Installed Menu module.
Installed Node module.
Installed OpenID module.
Installed Search module.
Installed Taxonomy module.
Installed Upload module.
Installed User module.
Installed Admin module.
Installed Views module.
Installed Litenode module.
Installed Organic groups module.
Installed Organic groups access control module.
Installed Organic groups actions module.
Installed Organic groups Views integration module.
Installed Chaos tools module.
Installed Context module.
Installed Context UI module.
Installed Context layouts module.
Installed Date API module.
Installed Date Timezone module.
Installed Features module.
Installed ImageAPI module.
Installed ImageAPI GD2 module.
Installed ImageCache module.
Installed Token module.
Installed Transliteration module.
Installed Messaging module.
Installed Simple Mail module.
Installed Notifications module.
Installed Content Notifications module.
Installed Notifications Views module.
Installed OpenID Admin module.
Installed Persistent URL module.
Installed Seed module.
Installed Spaces module.
Installed Spaces User module.
Installed Spaces OG module.
Installed U Create module.
Installed U create / OG integration module.
Initial locale import
Running profile specific task : profile
Enabling module : strongarm
Enabling module : book
Enabling module : casetracker
Enabling module : date
Enabling module : date_popup
Enabling module : litecal
Enabling module : content
Enabling module : nodereference
WD content: Updating field type nodereference with module nodereference.
WD content: Updating widget type nodereference_select with module nodereference.
WD content: Updating widget type nodereference_buttons with module nodereference.
WD content: Updating widget type nodereference_autocomplete with module nodereference.
Enabling module : text
WD content: Updating field type text with module text.
WD content: Updating widget type text_textfield with module text.
WD content: Updating widget type text_textarea with module text.
Enabling module : optionwidgets
WD content: Updating widget type optionwidgets_select with module optionwidgets.
WD content: Updating widget type optionwidgets_buttons with module optionwidgets.
WD content: Updating widget type optionwidgets_onoff with module optionwidgets.
Enabling module : feeds
Enabling module : parser_ical
Enabling module : messaging_shoutbox
Enabling module : notifications_team
Enabling module : content_profile
Enabling module : atrium
Enabling module : atrium_blog
Enabling module : atrium_book
Enabling module : atrium_calendar
Enabling module : atrium_casetracker
Enabling module : atrium_groups
Enabling module : atrium_members
Enabling module : atrium_profile
Enabling module : atrium_shoutbox
Enabling module : spaces_dashboard
Enabling module : jquery_ui
Enabling module : codefilter
Enabling module : markdown
Enabling module : boxes
Enabling module : comment_upload
Enabling module : diff
Enabling module : prepopulate
Enabling module : xref
Enabling module : color
Enabling module : designkit
Enabling module : views_bulk_operations
Running profile specific task : intranet-configure
WD features: Rebuilding atrium / filter.
WD features: Rebuild completed for atrium / filter.
WD features: Rebuilding atrium / user.
WD features: Rebuild completed for atrium / user.
WD features: Rebuilding atrium_blog / user.
WD features: Rebuild completed for atrium_blog / user.
WD features: Rebuilding atrium_blog / content.
Drush command could not be completed.
Output from failed command : Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 277230 bytes) in /var/aegir/atrium-1-0-beta6/includes/database.mysql-common.inc on line 41
An error occurred at function : drush_hosting_hosting_task
Changes for drush_hosting_hosting_task module have been rolled back.
Command dispatch complete
Peak memory usage was 12.21 MB

Looks like you need to

hadsie's picture

Looks like you need to increase the memory limit in php.ini...

Output from failed command : Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 277230 bytes) in /var/aegir/atrium-1-0-beta6/includes/database.mysql-common.inc on line 41

Try bumping it up to 128MB or something a lot higher than 32.

Aegir hosting system

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: