Can't seem to find any help on this in any other posts...I've tried everything I can think of, but can't seem to get around this...
After installing, I get the following error:
* The Hostmaster installer requires write permissions to ./sites/default/settings.php during the installation process. If you are unsure how to grant file permissions, please consult the on-line handbook.
* The directory sites/default/files is not writable. An automated attempt to create this directory failed, possibly due to a permissions problem. To proceed with the installation, either create the directory and modify its permissions manually, or ensure that the installer has the permissions to create it automatically. For more information, please see INSTALL.txt or the on-line handbook.
I've checked and double-checked to make sure the files are chown'd and chmod correctly, but can't get beyond this error...
I'm a total noob, so I'm sure it's just me, but I could use some help!
Here's my ls -l:
root@ns1:/var/aegir# ls -l
total 16
drwx------ 2 aegir aegir 4096 Apr 7 21:02 backups
drwx--x--x 4 aegir aegir 4096 Apr 7 21:02 config
drwxr-xr-x 4 aegir aegir 4096 Feb 23 23:40 drush
drwxr-xr-x 9 aegir aegir 4096 Mar 4 03:20 hostmaster-0.4-alpha6
root@ns1:/var/aegir# cd hostmaster-0.4-alpha6
root@ns1:/var/aegir/hostmaster-0.4-alpha6# ls -l
total 224
-rw-r--r-- 1 aegir aegir 44051 Mar 4 03:15 CHANGELOG.txt
-rw-r--r-- 1 aegir aegir 988 Sep 14 2009 COPYRIGHT.txt
-rw-r--r-- 1 aegir aegir 1308 Nov 19 2007 INSTALL.mysql.txt
-rw-r--r-- 1 aegir aegir 1075 Nov 26 2007 INSTALL.pgsql.txt
-rw-r--r-- 1 aegir aegir 15646 Jul 9 2008 INSTALL.txt
-rw-r--r-- 1 aegir aegir 18048 Jan 6 2009 LICENSE.txt
-rw-r--r-- 1 aegir aegir 1924 Apr 29 2009 MAINTAINERS.txt
-rw-r--r-- 1 aegir aegir 5002 Jan 4 2008 UPGRADE.txt
-rw-r--r-- 1 aegir aegir 262 Aug 9 2006 cron.php
drwxr-xr-x 2 aegir aegir 4096 Mar 4 03:20 includes
-rw-r--r-- 1 aegir aegir 980 Dec 26 2007 index.php
-rw-r--r-- 1 aegir aegir 47149 Mar 1 12:36 install.php
drwxr-xr-x 3 aegir aegir 4096 Mar 4 03:20 misc
drwxr-xr-x 35 aegir aegir 4096 Mar 4 03:20 modules
drwxr-xr-x 4 aegir aegir 4096 Apr 7 21:02 profiles
-rw-r--r-- 1 aegir aegir 1590 Dec 10 2008 robots.txt
drwxr-xr-x 2 aegir aegir 4096 Mar 4 03:20 scripts
drwxr-xr-x 5 aegir aegir 4096 Apr 7 22:10 sites
drwxr-xr-x 7 aegir aegir 4096 Mar 4 03:20 themes
-rw-r--r-- 1 aegir aegir 25457 Mar 30 2009 update.php
-rw-r--r-- 1 aegir aegir 352 Dec 10 2005 xmlrpc.php
root@ns1:/var/aegir/hostmaster-0.4-alpha6# cd sites
root@ns1:/var/aegir/hostmaster-0.4-alpha6/sites# ls -l
total 12
drwxr-xr-x 3 aegir aegir 4096 Apr 7 21:02 aegir.hometowncauses.org
drwxr-xr-x 2 aegir aegir 4096 Mar 4 03:20 all
drwxr-xr-x 3 aegir aegir 4096 Apr 7 22:04 default
root@ns1:/var/aegir/hostmaster-0.4-alpha6/sites# cd default
root@ns1:/var/aegir/hostmaster-0.4-alpha6/sites/default# dir
default.settings.php files settings.php
root@ns1:/var/aegir/hostmaster-0.4-alpha6/sites/default# ls -l
total 28
-rw-r--r-- 1 aegir aegir 9485 Sep 14 2009 default.settings.php
drwxr-xr-x 2 aegir aegir 4096 Apr 7 22:04 files
-rwxr-xr-x 1 aegir aegir 9485 Apr 7 22:03 settings.php
root@ns1:/var/aegir/hostmaster-0.4-alpha6/sites/default#
Thanks!
Comments
Chmod 755 Should Do It
If you chmod 755 the settings.php file and files directory, the permissions error will go away. Then just chmod the settings.php back to read-only for everyone after the installation is finished. If chmod 755 doesn't work, chmod 777 definitely will.
HAJ
HAJ
Your permissions problem is a
Your permissions problem is a side-effect and not the real issue.
The real issue is that the system is trying to write to /sites/default/ which isn't used in Aegir. It should be trying to write to /sites/aegir.hometowncauses.org/ , which the install script would've set the appropriate permissions for anyway. So something else has gone wrong at an earlier stage, probably something wrong with your apache setup.
Hmmm...I thought perhaps that
Hmmm...I thought perhaps that default wasn't correct...I did notice that I have a sites/$mysite directory, and changed the permissions there as well...
Any pointers as to what would be wrong in my apache setup???
root@ns1:/var/aegir/hostmaster-0.4-alpha6/sites/aegir.hometowncauses.org# ls -l
total 16
drwxrws--- 2 aegir www-data 4096 Apr 7 21:02 files
-rwxr-xr-x 1 aegir www-data 9485 Apr 7 21:02 settings.php
root@ns1:/var/aegir/hostmaster-0.4-alpha6/sites/aegir.hometowncauses.org#
is it because of the www-data group???
Thanks for your help!
anyone? I'm really stuck
anyone? I'm really stuck here, what can I look for in my apache setup to fix this???
Thanks!
I'm a Novice Too, But . . .
I would change group ownership of all your aegir files and directories to "aegir".
Looking at your ls -l, I noticed that you have no platforms directory (i.e., /var/aegir/platforms). In a default Aegir installation, this is where your sites would be found under the directory containing the platform on which the site is being deployed. For example, I have a directory /var/aegir/platforms/drupal-6.15/www.mysite.com. I would expect to find the site you are trying to deploy in a similar directory. Note that sites are NOT deployed in the hostmaster-0.4-alpha6 directory. Only aegir is in that directory, I believe.
Maybe your problem is that you are missing the platforms directory?
HAJ
Thanks...time to reinstall OS
Thanks...time to reinstall OS and start all over, I guess...
Ready to throw in the
Ready to throw in the towel...
I've reinstalled numerous times, and still getting the same results (that's the definition of insanity, isn't it?); I never end up installing to the /sites directory...
After this latest install, following along with mig's video and this post: http://awebfactory.com.ar/node/427, I'm now getting this when I restart apache...
root@hometowncauses:~# /etc/init.d/apache2 restart
* Restarting web server apache2 [Fri Apr 16 21:03:28 2010] [error] VirtualHost :80 -- mixing * ports and non- ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Fri Apr 16 21:03:28 2010] [error] VirtualHost :80 -- mixing * ports and non- ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Fri Apr 16 21:03:28 2010] [warn] NameVirtualHost :80 has no VirtualHosts
[Fri Apr 16 21:03:38 2010] [error] VirtualHost *:80 -- mixing * ports and non- ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Fri Apr 16 21:03:38 2010] [error] VirtualHost :80 -- mixing * ports and non- ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Fri Apr 16 21:03:38 2010] [warn] NameVirtualHost *:80 has no VirtualHosts
[ OK ]
root@hometowncauses:~#
According to awebfactory, a modification to /var/aegir/config/vhost.d/aegir.hometowncauses.org should fix this, but I see no problem there:
cat /var/aegir/config/vhost.d/aegir.hometowncauses.org
Default Aegir apache configuration file
Edit to your taste. Must be installed in
/var/aegir/config/vhost.d/aegir.example.com
Note that this file may eventually be automatically be managed by
aegir.
This only covers the base platforms, extra platforms should deploy
their own configuration
#
This will be replaced by aegir when the base platform will be verified
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
RewriteEngine On
ServerAdmin webmaster@localhost
ServerName aegir.hometowncauses.org
Sorry for being so dense, but there are too many config files to wrap my head around...where else can I look to resolve this??? Mig had indicated apache config issues, but I don't know where to look...
I'm sure earlier attempts had to do with DNS issues, and I think I've resolved that, but I can't seem to find where to fix this apache problem...
From what I can tell from former installs, the directory structure is exactly as it should be.
I'm getting ready to put a RFP out on freelancers to get someone to do this for me...although I'd really like to know where I'm going wrong!
What environment are you
What environment are you using (i.e. which os and is it dedicated server, vps or cloud etc). I am relatively new (installed aegir about 3-4 times) and have used vps with ubuntu. Let me know your setup I may be able to help out. Feel free to email me if you want.
JamieT.
Thanks, Jamie, but I finally
Thanks, Jamie, but I finally got it to install...
I think one of the problems was with my DNS entries, which I fixed...the others just took lots of googling; I still got errors when restarting apache2, but everything seems to be working now...
One thing I have run into, though is in deploying a new site...the site is there, but I didn't get any emails, so I don't know what my login credentials are...any tips???
Thanks for your offer of help!
me neither
I don't get any e-mails either, but I think that's a server problem, or possibly a more general Drupal problem, as opposed to an Aegir problem.
I'm still looking into it myself, but try sending any e-mail at all from the server.
Meanwhile, setting the password yourself is easy:
update users set pass = md5('somepass') where uid = 1;