I can't restart apache after successful using the install.sh script.

I have changed the $DRUSH dl drush_make --destination=$AEGIR_HOME/.drush to 6.x-2.0-beta2 in order to avoid the issue with php5-curl.

xxxxxxx:~# /etc/init.d/apache2 restart
Restarting web server: apache2Syntax error on line 23 of /var/aegir/config/vhost.d/yyyy.yyyyyyy.com:
Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
 failed!

Comments

Anonymous’s picture

Category: bug » support
Status: Active » Fixed
Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration

You have forgotten to enable the rewrite engine per the INSTALL.txt

 	Apache configuration
 	--------------------
 	
 	The rewrite module must be enabled and also Apache must be given a
 	directive to include Aegir's vhosts path, to read configurations from
 	there. In Debian-based systems you can put a file inside
 	``/etc/apache2/conf.d`` that will be parsed on startup or
 	alternatively you can place the directive in apache.conf/httpd.conf.
 	We prefer the former. In other systems there are similar ways to
 	accomplish this. Consult your OS's documentation if unsure.
 	
 	Shell commands as root::
 	
 	a2enmod rewrite
 	echo "Include /var/aegir/config/vhost.d/" > /etc/apache2/conf.d/aegir 
ilw’s picture

Sorry...

Since there is no install.txt for 0.4alpha in the official documentation page I followed that guide http://git.aegirproject.org/?p=hostmaster.git;a=blob;f=INSTALL.txt;h=acb...

and it doesn't appear there. sorry.

Anonymous’s picture

There is an INSTALL.txt for 0.4alpha3 in the 0.4alpha3 version of Hostmaster. here

The version you linked to from git doesn't have mod_rewrite because the install.sh script does it for you.

ilw’s picture

I think that its will be good if we'll reference to that page from http://groups.drupal.org/aegir-hosting-system/documentation.

Thank you anyway!

Anonymous’s picture

There were links to INSTALL.txt but they were mistakenly links to install.sh . I have updated, thanks.

Status: Fixed » Closed (fixed)

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