I have tried to setup a domain in quickstart using drush and got a fail message that my username must be less than 16 characters. I have filed a issue in the drush queue for this issue (not sure if that is the right place?).

I am moving to a multisite environment and have therefore setup quickstart to support this by following the quickstart documentation file and editing the apache and dns config files manually.

i.e.

1. copying and editing an exiting vhost type file in /etc/apache2/sites-available (making sure that the owner and group are the same i.e. 'quickstart'
2. Creating an alias to this in /etc/apache2/sites-enabled (a making sure it has the same owner and group as the other aliases i.e. root
3. editing the 'hosts' file to include the newly created domain (~/websites/config/hosts)

When I try to restart apache to apply the new settings I get the following:

/etc/init.d/apache2 restart
Syntax error on line 17 of /etc/apache2/sites-enabled/default-ssl:
SSLCertificateKeyFile: file '/etc/ssl/private/ssl-cert-snakeoil.key' does not exist or is empty
Action 'configtest' failed.
The Apache error log may have more information.
   ...fail!

Line 17 of the vhost file reads:

SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key

If I try to open this folder I get the error massage:
bash: cd: /etc/ssl/private/: Permission denied

If I try and access this file directly I get:

"/etc/ssl/private/ssl-cert-snakeoil.key" [New File]

Please help me to resolve this. Is it possible to restart apache this way or is there a better way. Also, should I be concerned about this error message?

Comments

2dareis2do’s picture

Just to follow up on this I found this:

http://ubuntuforums.org/archive/index.php/t-803827.html

Namely:

sudo make-ssl-cert generate-default-snakeoil --force-overwrite

This seems to work without any errors but when I try to restart apache2 I get the same error.

MichaelCole’s picture

Status: Active » Fixed

Hi,

because the .key file is secret (if someone accessed it, they could impersonate your site), it can only be accessed by "root"

to restart apache this is what I do:

sudo apache2ctl restart

To setup multi-site, this is what I would do (haven't tested):

drush quickstart-create dns apache database --domain=new.domain

That should create all the files and database for you. Then edit ~/websites/config/apache-sites-enabled/new.domain and replace /new.domain with the "old.domain" where the multi-site code is.

Cheers,

Mike

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

firfin’s picture

Component: Miscellaneous » Image Build

Tip in #4 is a good start. Use quickstart-create to make first.dev site.
Create second site with : drush quickstart-create dns apache database --domain=second.dev
Replace second.dev with first.dev on the 'DocumentRoot' and 'Directory' lines in the ~/websites/config/apache-sites-enabled/second.dev file

In ~/websites/first.dev/sites/ create a directory for the settings.php of the second site. Also see multisite docs
Create or copy settings.php into this directory (make sure you use correct DB because this is actually the tricky part. Because you don't download the files and no install is run there is no settings.php and you have to 'guess' the DB, username and password. Check phpmyadmin or extrapolate from first.dev )
Create a /files directory in this directory (if needed)
Restart apache,
go to http://second.dev/install.php ,
Enjoy your multisite
Smile
:-)