zhaoxinyu a044f9f3c5 Install Compass in virtual env
Create virtualenv for compass, point compass site packages to virtualenv,
make virtualenv accessable for apache.
Change compass executable scripts to use python in env to be virtualenv
compatible.
Make progress_update daemon use virtualenv.
Comment out some health checks that use packages not available to pip, eg,
yum, apt since we have other ways to check packages any way.

Conflicts:

	conf/compassd
	install/compass.sh
	install/dependency.sh
	install/prepare.sh
	misc/apache/compass.wsgi
	requirements.txt

Change-Id: Ib48633601bf238ffc660c4694834897edbe45e07
2014-07-31 19:50:49 -07:00
..
2014-07-31 19:50:49 -07:00
2014-07-31 19:50:49 -07:00

Apache2 is supported. mod_wsgi is required to run Compass web app. 

On Ubuntu systems (e.g, 12.04), you can install mod_wsgi with
  sudo aptitude install libapache2-mod-wsgi

The current wsgi config file assumes that the environment variable
ODS_PROJECT_HOME is set in /etc/apache2/envvars file.You also need
to make sure mod_rewrite module in apache is enabled. If not, you
need to run the command: sudo a2enmod rewrite

We also assume that the server host name is ods-server.us.huawei.com.

Restart Apache to get mod_wsgi to work.

sudo service apache2 restart