Skip navigation

Talk

#1

Step 4, says switch to Aegir user.

su -s /bin/bash aegir

When I do that, I am prompted for a password.

#2

Then you are not running it as root.

#3

The command in the apache config section:

ln -s /var/aegir/config/apache.conf /etc/apache2/conf.d/aegir.conf

doesn't make any sense where it is placed in the manual install guide. You don't have a /var/aegir directory yet because you haven't added the user account or done any install of Aegir code. Just an fyi to be fixed.

#8

fixed, i also think that was strange - even if it was working, it is so counter-intuitive that it deserves to be fixed.

#4

you can create a link to a directory that does not exist. it will be a broken link but when you do create the directory at a later stage it will be fixed.so the documentation is sound

#5

Thanks, it just looked odd there, and I thought it was contributing to another issue. My bad, thanks.

#6

hello.

For Step 10.1 - Install drush

i've used the recommended Pear based install of drush using

pear channel-discover pear.drush.org
pear install drush/drush-5.0.0

Now it's breaking down at the step

drush hostmaster-install
...
...
PHP Fatal error:  Call to undefined function drush_backend_invoke() in /home/aegir/.drush/provision/install.hostmaster.inc on line 162
PHP Stack trace:
PHP   1. {main}() /usr/share/pear/drush/drush.php:0
PHP   2. drush_main() /usr/share/pear/drush/drush.php:14
PHP   3. drush_dispatch() /usr/share/pear/drush/drush.php:82
PHP   4. call_user_func_array() /usr/share/pear/drush/includes/command.inc:216
PHP   5. drush_command() /usr/share/pear/drush/includes/command.inc:216
PHP   6. _drush_invoke() /usr/share/pear/drush/includes/command.inc:881
PHP   7. call_user_func_array() /usr/share/pear/drush/includes/command.inc:125
PHP   8. drush_provision_hostmaster_install() /usr/share/pear/drush/includes/command.inc:125

Should i revert back to the drush install method mentioned in the instructions in Step 10.1 ?

thx

yashesh

#7

guess i need to apply a similar patch as http://drupal.org/node/1152908 to all code of Provision 6.x-1.4 ? anybody experienced it ?

thx

#9

aegir doesn'T support drush 5 yet.i'll update the docs to make that more explicit.

#10

I noticed this install guide used mod_php which I am not a fan of because it means using more memory for each Apache process so I have installed Aegir today as per the instructions with some slight mods to run php-cgi instead.. I will list the changes to the install instructions for anyone interested..

Here are the changes..

Step 2

Original

apt-get install apache2 php5 php5-cli php5-gd php5-mysql postfix sudo rsync git-core unzip
php-cgi
apt-get install apache2 php5-cgi php5-cli php5-gd php5-mysql postfix sudo rsync git-core unzip

Step 3.2.1

Original

a2enmod rewrite
php-cgi
a2enmod rewrite actions

Step 3.3.1

Create a file in /etc/apache2/conf.d/php-cgi.conf and copy the lines below into it.

ScriptAlias /php5-cgi /usr/bin/php5-cgi
Action php5-cgi /php5-cgi
AddHandler php5-cgi .php

Thats it!!

There maybe be a more "integrated" way to configure this with Aegir but I have only been using Aegir for a few hours so I haven't learned it yet.. For example if there was a way to generate the config per vhost then you could have a choice to run some sites with php-cgi and the busier sites with php under fcgid.. May even be able to build in support for suexec or MPM-ITK and have stricter file access permissions..

Like I said I am only a few hours in so might be gettng ahead of myself on the security and performance requirements of Aegir.. :)

#11

Just a note for anyone trying to put Aegir onto an existing webserver with existing sites or if you have installed things like phpmyadmin from the repository (debian or ubuntu)..

I found that placing the link to aegir.conf in the /etc/apache2/conf.d directory broke some of the existing server configuration.. For example the alias setup for phpmyadmin or apache docs or anything else running on the "default" server and installed using apt-get..

So a quick fix for me was changing..

ln -s /var/aegir/config/apache.conf /etc/apache2/conf.d/aegir.conf

to

ln -s /var/aegir/config/apache.conf /etc/apache2/sites-enabled/zz-aegir.conf

This will cause the Aegir configurations to run after everything else.. Its still not clean but at least things work again..

#12

Hi people,

I'm trying to install Aegir on CentOS 5.7 64bits and everything goes ok until I try to install Aegir itself:

[aegir@aegir ~]$ drush hostmaster-install
PHP Fatal error:  Call to undefined function posix_getpwuid() in /var/aegir/.drush/provision/provision.drush.inc on line 41

Fatal error: Call to undefined function posix_getpwuid() in /var/aegir/.drush/provision/provision.drush.inc on line 41
Drush command terminated abnormally due to an unrecoverable error.                            [error]
Error: Call to undefined function posix_getpwuid() in
/var/aegir/.drush/provision/provision.drush.inc, line 41

Does anyone what can it be?

thank you and happy new year !

#13

ok I found the solution:

# yum install php-process

:DDD

#14

#15

I ran into problems with CentOS install, detailed in http://community.aegirproject.org/discuss/rhelcentos-6-install-documenta...

First I think we need to add unzip to the CentOS yum install, so as not to running odd problems, as I documented above.

Second, as I suggested above, I think that we need to update the install process for packages on Linux Distributions, so that all install package commands list the same packages in the same order, so as to help with debugging and updating documentation in future.

#16

Okay, i'm almost 2 months of trying to install aegir and i'm still stuck. I'm running Ubuntu 11.04, drush version 4.4, using xampp stack. I'm a long way from being an ubuntu (or drupal) power user but i'm learning. This is the error i'm getting, hopefully someone has an idea as to what is wrong:

[code]Do you really want to proceed with the install (y/n): y SQLSTATE[HY000] [2002] Can't connect to local MySQL server through [error] socket '/var/run/mysqld/mysqld.sock' (2) Unable to connect to database server. [error] apache on localhost could not be restarted. Changes might not be [warning] available until this has been done. (error: apache2: Could not reliably determine the server's fully qualified domain name, using villageguild.localhost for ServerName [Wed Mar 21 22:36:32 2012] [warn] NameVirtualHost *:80 has no VirtualHosts [Wed Mar 21 22:36:32 2012] [warn] NameVirtualHost *:80 has no VirtualHosts (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs httpd not running, trying to start Action 'graceful' failed. The Apache error log may have more information.) [/code]

#17

I recommend to use the script from omega8.cc

http://drupal.org/project/BOA

#18

page not found ale

#19

sorry:

boa is the group: groups.drupal.org/boa

http://drupal.org/project/barracuda

just follow the instructions, for me, that script is a great time saver!

#20

Thanks so much Ale, i'll give it a try!

#21

I'm not sure if this is required for all of the OS's in Step 2, but at least for CentOS 6, you also need to install the php-xml library.

# yum install php-xml

If you don't have that installed, the hostmaster-install script will fail with the error DRUPAL_INSTALL_FAILED.

#22

A few points just on installing drush with RedHat 6 that I seem to run in to every time.

When I try to discover the pear channel as aegir user I get could not create lock file: fopen(/usr/share/pear/.lock): failed to open stream: Permission denied

I also get the following after I make the aegir user owner of the .lock file

pear channel-discover pear.drush.org
Discovering channel pear.drush.org over http:// failed with message: channel-add: adding Channel "pear.drush.org" to registry failed
Trying to discover channel pear.drush.org over https:// instead
Discovery of channel "pear.drush.org" failed (channel-add: Cannot open "https://pear.drush.org/channel.xml" (Connection to `pear.drush.org:443' failed: Connection refused))

I can add it with root user but when installing drush I get

pear install drush/drush-5.8.0
Cannot install, php_dir for channel "pear.drush.org" is not writeable by the current user

I always have to install drush as root and then modify ownership/permissions to aegir user. Is the documentation wrong, or am I missing something?

Also, for drush 5 it seems that 'http://download.pear.php.net/package/Console_Table-1.1.3.tgz' is a dependency!