Apache Airavata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

User Hosted PGA with SciGaP in Ubuntu OS

Prerequisites

  1. Requires a Unix or Unix like operating system
  2. Requires a web server (e.g apache web server) with PHP 5.4 or higher. Make sure have enabled mod_rewrite module in httpd.conf file and enable PHP SOAP extension
  3. Install Composer
  4. MYSQL database installation
  5. MCrypt PHP extension


Installations

 

Starting from a fresh Ubunutu 12.04 installation

Update the ubuntu package manager

 

  1. sudo apt-get update

  2. sudo apt-get upgrade 


Install Apache

 

  • sudo apt-get install apache2


Install PHP 5.4

 

  • sudo apt-get install python-software-properties

  • sudo add-apt-repository ppa:ondrej/php5-oldstable

  • sudo apt-get update

  • sudo apt-cache policy php5

  • sudo apt-get install php5


You can check the installed versions of apache and php using apache2 -v and php -v commands


Installing the necessary php extensions

 

  • sudo apt-get install unzip

  • sudo apt-get install curl

  • sudo apt-get install openssl

  • sudo apt-get install php5-mcrypt

  • sudo apt-get install php-soap


Install Composer System Wide

 


Activate mod_rewrite

 

  • sudo a2enmod rewrite

  • sudo service apache2 restart


Open the default vhost config file:

 

  • sudo nano /etc/apache2/sites-available/default

 

Now search for “AllowOverride None”  corresponding “DocumentRoot /var/www <Directory /var/www>” (which should be there TWO times) and change both to “AllowOverride All“. Search for these two lines.

 

Exit and save with CTRL+X, Y, ENTER.



Download PGA from github to the document root of you web server /var/www. You can use git clone https://github.com/apache/airavata-php-gateway.git or download the zip from the github web page.


Go inside the PGA directory (e.g /var/www/airavata-php-gateway)


Make sure the storage folder is writable

 

  • sudo chmod -R 777 app/storage


Go to [PGA_HOME]/app/config/pga_config.php and change the configuration to match your settings


[Note this file will be removed in the future. So this will not be needed]

 

Create a copy of app/config/app_config.ini.template file as app/config/app_config.ini

 

  • sudo cp  app/config/app_config.ini.template file as app/config/app_config.ini


Now issue composer install command

 

  • sudo composer update


Restart the web server

 

  • sudo service apache2 restart



  • No labels