Last updated by emackn on Tue, 2009-11-03 14:35
[These notes assume that you are using the user aegir for both your system username and your mysql username]
Note that I had to run some extra MySQL commands to make sure everything worked on CentOS 5.
GRANT ALL PRIVILEGES ON *.* TO 'aegir'@'localhost' IDENTIFIED BY 'mypassword' WITH GRANT OPTION;
AND
GRANT ALL PRIVILEGES ON *.* TO 'aegir'@'127.0.0.1' IDENTIFIED BY 'mypassword' WITH GRANT OPTION;
If I didn't do this, or if I just did the first command, then Aegir could not create new databases for some reason.
Other tips of mine are to make sure that, before you even get started:
- create the aegir user as instructed
- change the working directory to the root of your main Drupal install
chown -R aegir.aegir *find ./ -name ".*" -exec chown aegir.aegir {} \;# to make sure all of the . files are also owned by aegir
Also, in the instructions about visudo it tells you to put a certain line in:
aegir ALL = NOPASSWD: /usr/sbin/apachectl
However, if that's all you do, you will still have trouble with tasks, getting errors like
"Web server could not be restarted. Changes might not be available until this has been done."
You need to also comment out the line
Defaults requiretty
so it looks like
# Defaults requiretty
Also, note that I don't recommend checking the 'Cron managment' option you are offered when you are installing hostmaster. One of my attempts failed with a stuck cron queue and maybe this was to blame, YMMV.
Other Issues
- Apache still doesn't restart after sudoers changes, getting
Oct 29 17:35:23 aegir-macbook sudo: pam_unix(sudo:auth): conversation failed Oct 29 17:35:23 aegir-macbook sudo: pam_unix(sudo:auth): auth could not identify password for [aegir]
errors in /var/log/secure
... Still working on this one ...