Hi,
Thanks for all the work on the new release. However, I'm having no luck installing this one either. Two issues:
1) Adding the 'Include /srv/providerweb.co.uk/public/config/vhost.d' line to my httpd.conf file causes Apache2 to crash the next time it restarts. I can't get it working again without deleting the line. Bit vague on where to find the log file for further info.
2) Attempting to complete the setup using drush gives errors using both root and specially created users. Drush won't accept root, and the specially created user appears to lack permissions, but I can't find where to give it the right ones. I've chown'ed everything across to the created user and put it in the www-data group, to no avail. Following is the error message:
drupmaster@indusdelta:/srv/providerweb.co.uk/public/htdocs$ profiles/hostmaster/modules/drush/drush.php hosting setup
Could not create symlink for drush.php (The symlink could not be created, an error has occured)
Generating drushrc.php file
Could not change permissions of drushrc.php to 600 (chmod to 600 failed on /srv/providerweb.co.uk/public/htdocs/drushrc.php)
Platform config file could not be written
Could not change permissions of drushrc.php to 400 (chmod to 400 failed on /srv/providerweb.co.uk/public/htdocs/drushrc.php)
The command did not complete successfully, please fix the issues and re-run this script.
Hope that helps. It may help to know that I'm operating off a slightly unusual setup - VHost package under Debian, outlined at http://src.bytemark.co.uk/trac/bytemark-vhost/wiki/An - I've raised these errors with my hosting provider as well, so hopefully one of you will be able to point me in the right direction.
Comments
Comment #1
anarcat commented1) Please outline the error you can find in your /var/log/apache2/error.log when you restart Apache.
2) Please ls -l /srv/providerweb.co.uk/public/htdocs so we can see the permissions in that directory.
Comment #2
DanielJohnston commentedI can't seem to replicate the Apache-killing issue using apachectl, strangely. It might only kick in during my server's daily cron run at 3.30am - will update further if it does. I get the expected error on apachectl:
apache2: Syntax error on line 189 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/httpd.conf: Could not open configuration file /srv/providerweb.co.uk/public/config/vhost.d: No such file or directory
The Apache log file is pretty fairly represented by the following snippet:
[Sun Feb 08 03:24:05 2009] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
PHP Warning: Module 'mysql' already loaded in Unknown on line 0
[Sun Feb 08 03:24:05 2009] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sun Feb 08 03:24:05 2009] [notice] Apache/2.2.3 (Debian) mod_ssl/2.2.3 OpenSSL/0.9.8c configured -- resuming normal operations
[Sun Feb 08 03:26:57 2009] [notice] caught SIGTERM, shutting down
[Sun Feb 08 03:27:51 2009] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
PHP Warning: Module 'mysql' already loaded in Unknown on line 0
[Sun Feb 08 03:27:52 2009] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sun Feb 08 03:27:52 2009] [notice] Apache/2.2.3 (Debian) mod_ssl/2.2.3 OpenSSL/0.9.8c configured -- resuming normal operations
[Sun Feb 08 03:28:18 2009] [error] [client 85.114.135.130] File does not exist: /srv/89.16.175.27
[Sun Feb 08 03:28:18 2009] [error] [client 85.114.135.130] File does not exist: /srv/89.16.175.27
[Sun Feb 08 03:28:19 2009] [error] [client 85.114.135.130] File does not exist: /usr/share/squirrelmail/CHANGELOG
[Sun Feb 08 03:28:19 2009] [error] [client 85.114.135.130] File does not exist: /srv/89.16.175.27
[Sun Feb 08 03:28:19 2009] [error] [client 85.114.135.130] File does not exist: /srv/89.16.175.27
[Sun Feb 08 03:28:19 2009] [error] [client 85.114.135.130] File does not exist: /srv/89.16.175.27
[Sun Feb 08 03:28:19 2009] [error] [client 85.114.135.130] File does not exist: /srv/89.16.175.27
[Sun Feb 08 03:28:27 2009] [error] [client ::1] File does not exist: /htdocs
[Sun Feb 08 03:28:28 2009] [error] [client ::1] File does not exist: /htdocs
[Sun Feb 08 03:28:29 2009] [error] [client ::1] File does not exist: /htdocs
[Sun Feb 08 03:28:30 2009] [error] [client ::1] File does not exist: /htdocs
[Sun Feb 08 03:28:31 2009] [error] [client ::1] File does not exist: /htdocs
[Sun Feb 08 03:28:32 2009] [error] [client ::1] File does not exist: /htdocs
[Sun Feb 08 03:28:33 2009] [error] [client ::1] File does not exist: /htdocs
[Sun Feb 08 03:28:34 2009] [error] [client ::1] File does not exist: /htdocs
[Sun Feb 08 03:28:35 2009] [error] [client ::1] File does not exist: /htdocs
[Sun Feb 08 03:28:36 2009] [error] [client ::1] File does not exist: /htdocs
[Sun Feb 08 03:28:37 2009] [error] [client ::1] File does not exist: /htdocs
[Sun Feb 08 03:28:38 2009] [error] [client ::1] File does not exist: /htdocs
[Sun Feb 08 03:28:39 2009] [error] [client ::1] File does not exist: /htdocs
[Sun Feb 08 03:28:40 2009] [error] [client ::1] File does not exist: /htdocs
[Sun Feb 08 03:28:41 2009] [error] [client ::1] File does not exist: /htdocs
[Sun Feb 08 03:28:42 2009] [error] [client ::1] File does not exist: /htdocs
[Sun Feb 08 03:28:43 2009] [error] [client ::1] File does not exist: /htdocs
[Sun Feb 08 03:28:48 2009] [error] [client ::1] File does not exist: /htdocs
[Sun Feb 08 03:29:51 2009] [error] [client ::1] File does not exist: /htdocs
[Sun Feb 08 03:29:52 2009] [error] [client ::1] File does not exist: /htdocs
[Sun Feb 08 03:29:53 2009] [error] [client ::1] File does not exist: /htdocs
[Sun Feb 08 06:18:11 2009] [error] [client 89.16.175.27] client denied by server configuration: /srv/indusdelta.co.uk/public/htdocs/files/backup_migrate/sch$
[Sun Feb 08 06:18:11 2009] [error] [client 89.16.175.27] client denied by server configuration: /srv/indusdelta.co.uk/public/htdocs/files/backup_migrate/sch$
[Sun Feb 08 06:18:14 2009] [error] [client 89.16.175.27] client denied by server configuration: /srv/danieljohnston.co.uk/public/htdocs/sites/default/files/$
[Sun Feb 08 06:18:14 2009] [error] [client 89.16.175.27] client denied by server configuration: /srv/danieljohnston.co.uk/public/htdocs/sites/default/files/$
[Sun Feb 08 09:06:31 2009] [error] [client ::1] File does not exist: /htdocs
[Sun Feb 08 09:06:57 2009] [error] [client ::1] File does not exist: /htdocs
[Sun Feb 08 09:06:59 2009] [error] [client ::1] File does not exist: /htdocs
[Sun Feb 08 09:19:41 2009] [error] [client ::1] File does not exist: /htdocs
[Sun Feb 08 09:28:48 2009] [error] [client ::1] File does not exist: /htdocs
[Sun Feb 08 09:29:00 2009] [error] [client ::1] File does not exist: /htdocs
[Sun Feb 08 09:30:24 2009] [error] [client ::1] File does not exist: /htdocs
[Sun Feb 08 09:32:31 2009] [error] [client ::1] File does not exist: /htdocs
[Sun Feb 08 09:32:32 2009] [error] [client ::1] File does not exist: /htdocs
[Sun Feb 08 09:32:34 2009] [error] [client ::1] File does not exist: /htdocs
[Sun Feb 08 10:36:09 2009] [error] [client ::1] File does not exist: /htdocs
Here's the ls -l result:
-rw-r--r-- 1 drupmaster 1080 32996 2009-01-14 23:32 CHANGELOG.txt
-rw-r--r-- 1 drupmaster 1080 262 2006-08-09 08:42 cron.php
drwxr-xr-x 2 drupmaster 1080 4096 2009-01-14 23:40 includes
-rw-r--r-- 1 drupmaster 1080 872 2006-12-12 09:32 index.php
-rw-r--r-- 1 drupmaster 1080 1431 2006-09-08 17:29 INSTALL.mysql.txt
-rw-r--r-- 1 drupmaster 1080 1073 2006-09-08 17:29 INSTALL.pgsql.txt
-rw-r--r-- 1 drupmaster 1080 22305 2008-07-09 22:48 install.php
-rw-r--r-- 1 drupmaster 1080 9263 2008-01-10 22:14 INSTALL.txt
-rw-r--r-- 1 drupmaster 1080 18049 2009-01-14 05:56 LICENSE.txt
-rw-r--r-- 1 drupmaster 1080 1778 2006-12-11 17:09 MAINTAINERS.txt
drwxr-xr-x 3 drupmaster 1080 4096 2009-01-14 23:40 misc
drwxr-xr-x 31 drupmaster 1080 4096 2009-01-14 23:40 modules
drwxr-xr-x 4 drupmaster 1080 4096 2009-02-08 02:30 profiles
-rw-r--r-- 1 drupmaster 1080 1591 2008-12-10 20:24 robots.txt
drwxr-xr-x 2 drupmaster 1080 4096 2009-01-14 23:40 scripts
drwxr-xr-x 4 drupmaster 1080 4096 2009-01-14 23:40 sites
drwxr-xr-x 2 admin admin 4096 2009-02-09 03:20 stats
drwxr-xr-x 7 drupmaster 1080 4096 2009-01-14 23:40 themes
-rw-r--r-- 1 drupmaster 1080 30842 2008-12-10 22:21 update.php
-rw-r--r-- 1 drupmaster 1080 2941 2007-01-09 09:16 UPGRADE.txt
-rw-r--r-- 1 drupmaster 1080 352 2005-12-10 19:26 xmlrpc.php
And here's what my hosting provider had to advise:
Apologies for the delay getting back to you. I would suggest that the
bytemark-vhost system isn't really suitable for this sort of
integration, and we can't really support it. Conflicts between the two
seem extremely likely.
That said, if you configure Aegir as a separate vhost that is loaded
*after* bytemark-vhost in /etc/apache2/sites-enabled (I've no idea if
that's possible in Aegir or not), it *might* work.
Regarding permissions, -vhost uses the 'admin' user extensively; your
script is likely to need to be in that group also.
I can confirm that crontabs are not disabled under -vhost (I just tested
it)- but make sure you remembered to leave a blank line at the bottom of
the cronta file!
Thanks for taking a look at this. I suspect I'm going to have to take a long, long weekend to set up Aegir on a vanilla Debian install. *shudder*
Comment #3
DanielJohnston commentedOk, my site's gone down again, but all it says is:
[Tue Feb 10 21:22:39 2009] [notice] caught SIGTERM, shutting down
Comment #4
anarcat commentedYou seem to have one hell of a broken web server right there... :)
[Sun Feb 08 03:28:18 2009] [error] [client 85.114.135.130] File does not exist: /srv/89.16.175.27
This is bad. As your provider advise, I don't think hostmaster is going to work for you. It needs a server all for itself, preferably and while I'm open to helping you out to get it working as much as possible, i think that the already existing infrastructure will constantly get in the way.
Comment #5
DanielJohnston commentedOne quick last request, which I might as well shove in here. Apologies for re-opening!
If I install debian from scratch, and apt-get the appropriate mysql, apache2 and php packages, can I do the hostmaster install *from that point*, or am I likely to need further server setup first? My server is only used for Drupal hosting in any case. I'm aware this is a bit outside the normal realm of support requests, but hostmaster is also outside the realm of normal Drupal modules! Thanks in advance.
Comment #6
adrian commentedThat should be all you need.
A useful tip is to install as a new aegir user.
Aegir does _NOT_ like being run as root, and it's best to use a user that has it's own home directory.