Apache Airavata

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

Compare with Current View Page History

« Previous Version 12 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 

  1. sudo apt-get install apache2

Install PHP 5.4

  1. sudo apt-get install python-software-properties

  2. sudo add-apt-repository ppa:ondrej/php5-oldstable

  3. sudo apt-get update

  4. sudo apt-cache policy php5

  5. sudo apt-get install php5

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

Install the necessary php extensions

  1. sudo apt-get install unzip

  2. sudo apt-get install curl

  3. sudo apt-get install openssl

  4. sudo apt-get install php5-mcrypt

  5. sudo apt-get install php-soap

Install Composer System Wide

  1. curl -sS https://getcomposer.org/installer | php

  2. sudo mv composer.phar /usr/local/bin/composer

Activate mod_rewrite

  1. sudo a2enmod rewrite

  2. sudo service apache2 restart

Open the default vhost config file:

  1.  sudo nano /etc/apache2/sites-available/default
  2.  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.
  3.  Exit and save with CTRL+X, Y, ENTER.

Download PGA from GIT

  1. Download PGA from github to the document root of you web server /var/www. 
  2. Use git clone https://github.com/apache/airavata-php-gateway.git or download the zip from the github web page.
  3. Go inside the PGA directory (e.g /var/www/airavata-php-gateway)
  4. Make sure the storage folder is writable
    1. sudo chmod -R 777 app/storage
  5. 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
  6. Create a copy of app/config/app_config.ini.template file as app/config/app_config.ini
    1. sudo cp  app/config/app_config.ini.template file as app/config/app_config.ini
  7. Now issue composer install command
    1. sudo composer update
  8. Restart the web server
    1. sudo service apache2 restart

 

User Hosted PGA with SciGaP in Centos OS

Prerequisites

 

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


Installations

  1. Open - https://www.digitalocean.com/community/tutorials/how-to-install-laravel-4-on-a-centos-6-vps  and follow the steps for -
    1. Installing repositories 
    2. If you do not have apache, php, mysql installed. run installation steps for them too.
    3. Installing Composer
  2. Run ' git clone https://github.com/SciGaP/laravel-pga.git pga ' in the desired location.
  3. Change directory permissions of the storage folder with 'chmod 755 -R pga/app/storage '
  4. Update ./pga/app/libraries/userapi_config.ini
    1. server-host = “”
    2. server-port = “”
  5. Update ./pga/app/libraries/wsis_config.ini
    1. admin-username = "test@testphprg.scigap.org<mailto:test@testphprg.scigap.org>"
    2. admin-password = "testadmin@scigap.org<mailto:testadmin@scigap.org>"
    3. cafile-path = "/resources/security/idp_scigap_org.pem"
  6. In httpd.conf, enable mod_rewrite module.
  7. Run ' composer update ' in the root (pga) directory.
  8. Run localhost/<path-to-pga-directory>/public








 


  • No labels