Skip to content

Instantly share code, notes, and snippets.

Created Apr 11, 2011
Embed
What would you like to do?
This script will operate the following changes in your system:
1. Create server-level configuration directories
2. Download drush_make
3. Create the Hostmaster frontend platform
4. Install the frontend site
5. Setup the dispatcher (a user cron job)
We are making the following assumptions:
* you have read INSTALL.txt and prepared the platform accordingly
* the FQDN of this machine is valid and resolves
* you are executing this script as your "aegir" user
The following settings will be used:
Aegir frontend URL: sm.rovomedia.com
Master server FQDN: ip-10-204-47-12.ec2.internal.ip-10-204-47-12.ec2.internal
Aegir root: /var/aegir
Aegir user: aegir
Web group: www-data
Web server: apache
Aegir DB host: localhost
Aegir DB user: root
Aegir DB password: <prompted>
Drush make version: 6.x-2.2
Aegir version: 6.x-1.0-rc6
Aegir platform path: /var/aegir/hostmaster-6.x-1.0-rc6
Aegir makefile: /var/aegir/.drush/provision/aegir.make
Admin email: rob@rovomedia.com
Do you really want to proceed with the install (y/n): y
apache on ip-10-204-47-12.ec2.internal.ip-10-204-47-12.ec2.internal [warning]
could not be restarted. Changes might not be available until this has
been done. (error: apache2: Syntax error on line 227 of
/etc/apache2/apache2.conf: Syntax error on line 16 of
/etc/apache2/conf.d/aegir.conf: Cannot load
/etc/apache2/modules/mod_rewrite.so into server:
/etc/apache2/modules/mod_rewrite.so: cannot open shared object file:
No such file or directory
Action 'graceful' failed.
The Apache error log may have more information.)
Project drush_make (6.x-2.2) downloaded to [success]
/var/aegir/.drush//drush_make.
Project drush_make contains 0 modules: .
Project information for drupal retrieved. [ok]
drupal downloaded from [ok]
http://ftp.drupal.org/files/projects/drupal-6.20.tar.gz.
apache on ip-10-204-47-12.ec2.internal.ip-10-204-47-12.ec2.internal [warning]
could not be restarted. Changes might not be available until this has
been done. (error: apache2: Syntax error on line 227 of
/etc/apache2/apache2.conf: Syntax error on line 16 of
/etc/apache2/conf.d/aegir.conf: Cannot load
/etc/apache2/modules/mod_rewrite.so into server:
/etc/apache2/modules/mod_rewrite.so: cannot open shared object file:
No such file or directory
Action 'graceful' failed.
The Apache error log may have more information.)
Created smrovomediacom database [success]
The external command could not be executed due to an application [error]
error.
require_once(./profiles/hostmaster/hostmaster.profile): failed to [warning]
open stream: No such file or directory install_6.inc:172
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: require_once(): Failed opening required
'./profiles/hostmaster/hostmaster.profile'
(include_path='.:/usr/share/php:/usr/share/pear') in
/var/aegir/.drush/provision/platform/drupal/install_6.inc, line 172
Output from failed command : [error]
Fatal error: require_once(): Failed opening required
'./profiles/hostmaster/hostmaster.profile'
(include_path='.:/usr/share/php:/usr/share/pear') in
/var/aegir/.drush/provision/platform/drupal/install_6.inc on line 172
Drush was not able to start (bootstrap) the Drupal database. [error]
Hint: This error often occurs when Drush is trying to bootstrap a
site that has not been installed or does not have a configured
database.
Drush was attempting to connect to :
Drupal version : 6.20
Site URI : sm.rovomedia.com
Default theme : garland
Administration theme: garland
PHP configuration : /etc/php5/cli/php.ini
Drush version : 4.4
Drush configuration:
/var/aegir/hostmaster-6.x-1.0-rc6/sites/sm.rovomedia.com/drushrc.php
/var/aegir/hostmaster-6.x-1.0-rc6/drushrc.php
Drush alias files : /var/aegir/.drush/hostmaster.alias.drushrc.php
/var/aegir/.drush/server_localhost.alias.drushrc.php
/var/aegir/.drush/server_master.alias.drushrc.php
/var/aegir/.drush/platform_hostmaster.alias.drushrc.php
Drupal root : /var/aegir/hostmaster-6.x-1.0-rc6
Site path : sites/sm.rovomedia.com
Modules path : sites/sm.rovomedia.com/modules
Themes path : sites/sm.rovomedia.com/themes
%paths : Array
You can select another site with a working database setup by
specifying the URI to use with the --uri parameter on the command
line or $options['uri'] in your drushrc.php file.
Could not find a Drupal settings.php file at [error]
./sites/default/settings.php.
Drush was not able to start (bootstrap) the Drupal database. [error]
Hint: This error often occurs when Drush is trying to bootstrap a
site that has not been installed or does not have a configured
database.
Drush was attempting to connect to :
Drupal version : 6.20
Default theme : garland
Administration theme: garland
PHP configuration : /etc/php5/cli/php.ini
Drush version : 4.4
Drush configuration: /var/aegir/hostmaster-6.x-1.0-rc6/drushrc.php
Drush alias files : /var/aegir/.drush/hostmaster.alias.drushrc.php
/var/aegir/.drush/server_localhost.alias.drushrc.php
/var/aegir/.drush/server_master.alias.drushrc.php
/var/aegir/.drush/platform_hostmaster.alias.drushrc.php
Drupal root : /var/aegir/hostmaster-6.x-1.0-rc6
%paths : Array
You can select another site with a working database setup by
specifying the URI to use with the --uri parameter on the command
line or $options['uri'] in your drushrc.php file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment