Hello
I would be so glad to try Aegir, but I tried and tried again to install Aegir of several ways and I have not yet been succeeded.
Please help, I don't find any solution, I'm not an expert.
I always get an error message at the end of installation:
user warning: Table 'aegir.node' doesn't exist query: SELECT COUNT(t.vid) FROM aegir_hosting_task t INNER JOIN node n ON t.vid = n.vid WHERE t.task_status = 0 in /var/aegir/drupal-6.15/profiles/hostmaster/modules/hosting/task/hosting_task.module on line 344.
Here is the last way that I proceeded
Did I do something wrong ?
adduser --system --group --home /var/aegir aegir
sudo su -s /bin/bash - aegir
export CVSROOT=:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal-contrib
cvs login
cvs -z6 co -d drush -r DRUPAL-6--2-1 contributions/modules/drush
mkdir .drush
cd .drush
/var/aegir/drush/drush dl provision
cd ..
logout
chmod u+x /var/aegir/drush/drush
ln -s /var/aegir/drush/drush /usr/bin/drush
sudo su -s /bin/bash - aegir
drush
drush dl drupal
cd drupal-6.15/profiles
export CVSROOT=:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal-contrib
cvs login
cvs -z6 co -d hostmaster -r DRUPAL-6--0-4-ALPHA3 contributions/profiles/hostmaster
mkdir hostmaster/modules
mkdir hostmaster/themes
/var/aegir/drush/drush dl --destination=/var/aegir/drupal-6.15/profiles/hostmaster/modules hosting install_profile_api admin_menu
/var/aegir/drush/drush dl --destination=/var/aegir/drupal-6.15/profiles/hostmaster/themes eldir
/var/aegir/drush/drush dl --destination=/var/aegir/drupal-6.15/profiles/hostmaster/modules modalframe
/var/aegir/drush/drush dl --destination=/var/aegir/drupal-6.15/profiles/hostmaster/modules jquery
cd /var/aegir/drupal-6.15/profiles/hostmaster/modules
wget http://ftp.drupal.org/files/projects/jquery_ui-6.x-1.3.tar.gz
tar -xvzf jquery_ui-6.x-1.3.tar.gz
rm jquery_ui-6.x-1.3.tar.gz
cd jquery_ui
wget http://jquery-ui.googlecode.com/files/jquery.ui-1.6.zip
unzip jquery.ui-1.6.zip
rm jquery.ui-1.6.zip
mv jquery.ui-1.6 jquery.ui
mkdir -p /var/aegir/config/vhost.d
chmod 0711 /var/aegir/config
cp hostmaster/apache2.conf.txt ~/config/vhost.d/monsiteaegir.com
cd /var/aegir/config/vhost.d
nano monsiteaegir.com
....
RewriteEngine On
ServerAdmin webmaster@localhost
ServerName monsiteaegir.com
DocumentRoot /var/aegir/drupal-6.15
.....
mkdir /var/aegir/backups
chmod 0700 /var/aegir/backups
mkdir /var/aegir/platforms
mkdir /var/aegir/drupal-6.15/sites/all/modules
chmod 0777 /var/aegir/drupal-6.15/sites/all/modules
mkdir /var/aegir/drupal-6.15/sites/all/themes
chmod 0777 /var/aegir/drupal-6.15/sites/all/themes
mkdir /var/aegir/drupal-6.15/sites/monsiteaegir.com
cp /var/aegir/drupal-6.15/sites/default/default.settings.php /var/aegir/drupal-6.15/sites/monsiteaegir.com/settings.php
chmod a+w /var/aegir/drupal-6.15/sites/monsiteaegir.com/settings.php
mkdir /var/aegir/drupal-6.15/sites/dmonsiteaegir.com/files
chmod 2770 /var/aegir/drupal-6.15/sites/monsiteaegir.com/files
chmod 0777 /var/aegir/drupal-6.15/sites/monsiteaegir.com/files
logout
adduser aegir www-data
nano /etc/apache2/conf.d/aegir
putting the following inside it: Include /var/aegir/config/vhost.d/*
visudo
Type: aegir ALL=NOPASSWD: /usr/sbin/apache2ctl
mysql -umylogin -pmypassword
CREATE DATABASE aegir;
GRANT ALL ON aegir.* TO 'aegir'@'localhost' IDENTIFIED BY 'mypassword';
GRANT ALL PRIVILEGES ON *.* TO 'aegir_root'@'localhost' IDENTIFIED BY 'mypassword' WITH GRANT OPTION;
exit
Then I go to : monsiteaegir.com and proceed to the install with the hostmaster profile.
Then :
chmod 0755 /var/aegir/drupal-6.15/sites/monsiteaegir.com/settings.php
Drush path: /var/aegir/drush/drush
chown aegir:aegir /var/aegir/config
chmod 0711 /var/aegir/config
chown aegir:aegir /var/aegir/backups
chmod 0700 /var/aegir/backups
I did the followed instrustions :
If you are not logged in as aegir user, log in with command :
su -s /bin/sh aegir
Now execute the following commands :
cd /var/aegir/drupal-6.15
php /var/aegir/drush/drush --uri=http://monsiteaegir.com hosting setup
I got this :
# $Id: drush,v 1.9 2009/10/13 04:36:25 grugnog Exp $
#
# This script is a simple wrapper that will run Drush with the most appropriate
# php executable it can find.
#
# Get the absolute path of this executable
ORIGDIR=$(pwd)
SELF_PATH=$(cd -P -- "$(dirname -- "$0")" && pwd -P) && SELF_PATH=$SELF_PATH/$(basename -- "$0")
# Resolve symlinks - this is the equivalent of "readlink -f", but also works with non-standard OS X readlink.
while [ -h $SELF_PATH ]; do
# 1) cd to directory of the symlink
# 2) cd to the directory of where the symlink points
# 3) Get the pwd
# 4) Append the basename
DIR=$(dirname -- "$SELF_PATH")
SYM=$(readlink $SELF_PATH)
SELF_PATH=$(cd $DIR && cd $(dirname -- "$SYM") && pwd)/$(basename -- "$SYM")
done
cd "$ORIGDIR"
# Build the path to drush.php.
SCRIPT_PATH=$(dirname $SELF_PATH)/drush.php
$(uname -a) == CYGWIN* && SCRIPT_PATH=$(cygpath -w -a -- "$SCRIPT_PATH")
# If it is not exported determine and export the number of columns.
if [ -z $COLUMNS ]; then
export COLUMNS=$(tput cols)
fi
# Special case for *AMP installers, since they normally don't set themselves as the default cli php out of the box.
if [ -f /Applications/MAMP/bin/php5/bin/php ]; then # MAMP (OS X)
/Applications/MAMP/bin/php5/bin/php $SCRIPT_PATH "$@"
elif [ -f /opt/lampp/bin/php ]; then # XAMPP on GNU/Linux
/opt/lampp/bin/php $SCRIPT_PATH "$@"
elif [ -f /Applications/xampp/xamppfiles/bin/php ]; then # XAMPP on OS X
/Applications/xampp/xamppfiles/bin/php $SCRIPT_PATH "$@"
else
# We check for a command line (cli) version of php, and if found use that.
/usr/bin/env php-cli -v &> /dev/null
if [ "$?" = 0 ] ; then
/usr/bin/env php-cli $SCRIPT_PATH "$@"
else
# Alternatively we run with straight php, which works on most other systems.
/usr/bin/env php $SCRIPT_PATH "$@"
fi
fi
On my website I've got the error message :
user warning: Table 'aegir.node' doesn't exist query: SELECT COUNT(t.vid) FROM aegir_hosting_task t INNER JOIN node n ON t.vid = n.vid WHERE t.task_status = 0 in /var/aegir/drupal-6.15/profiles/hostmaster/modules/hosting/task/hosting_task.module on line 344.