Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  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 (Required if the user is hosting Airavata on his own. To communicate with SciGaP this step is not relevant)
  5. MCrypt PHP extension
  6. Enable OpenSSL PHP extension
  7. Follow instructions given in links to install the prerequisites based on the OS ;
    1. On Ubunutu: http://www.dev-metal.com/install-laravel-4-ubuntu-12-04-lts/
    2. On Centos: https://www.digitalocean.com/community/tutorials/how-to-install-laravel-4-on-a-centos-6-vps
    3. On MAC OS: http://sangatpedas.com/20140219/installing-laravel-osx-mavericks/
  8. Important: Do not need to install Laravel. You can skip the steps given on the links

...

use locate mcrypt.so ,to get its locaton
locate mcrypt.ini and open the mcrypt.ini file
sudo pico /etc/php5/mods-available/mcrypt.ini
change the at line a extension=<location of e mcrypt.so fil> eg:/usr/lib/php5/20121212+lfs/mcrypt.so
save changes.
provide permission to storage by
sudo chmod -R 777 app/storage
Now restart the apache server again and test PGA web-interface.

 

 

 

User Hosted PGA with SciGaP on Arch Linux

 

  1. Install the necessary dependencies:
    1. $ sudo pacman -S polkit apache php php-mcrypt php-composer mariadb
  2. Enable the appropriate extensions:
    1. $ sudo vim /etc/php/php.ini
    2. Uncomment the following extensions: mcrypt.so, openssl.so, pdo_mysql.so, and soap.so

    3. $ sudo vim /etc/httpd/conf/httpd.conf
    4. Uncomment the following extension: modules/mod_rewrite.so

  3. Create necessary MySQL config:
    1. $ sudo mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
  4. Start and enable the Apache and MySQL daemons:
    1. $ sudo systemctl start polkit
      $ sudo systemctl start httpd
      $ sudo systemctl enable httpd
      $ sudo systemctl start mysqld
      $ sudo systemctl enable mysqld
  5. Complete the MySQL installation:
    1. $  sudo mysql_secure_installation
  6. Add a MySQL user:
    1. $ mysql -u root -p
      > CREATE USER 'forge'@'localhost';
      > GRANT ALL PRIVILEGES ON * . * TO 'forge'@'localhost'; 
      > CREATE DATABASE 'forge';
      > FLUSH PRIVILEGES;
      > exit 
  7. Clone the PGA git repository:
    1. $ git clone https://github.com/apache/airavata-php-gateway.git
  8. Symlink the PGA repository:
    1. $ sudo ln -s $PWD/airavata-php-gateway /srv/http/airavata-php-gateway
  9. Configure the PGA:
    1. $ cd airavata-php-gateway
      $ cp app/config/pga_config.php.example app/config/pga_config.php
      $ vim app/config/pga_config.php
  10. Configure the PGA storage permissions:
    1. $ chmod -R 755 app/storage 
  11. Install using Composer:
    1. $ sudo composer install
  12. To be continued...

User Hosted PGA with SciGaP in MAC OS

Installations

...

  1. To install MCrypt for PHP on MAC please follow the steps in http://coolestguidesontheplanet.com/install-mcrypt-php-mac-osx-10-9-mavericks-development-server/
  2. Once above is completed follow the steps given in http://sangatpedas.com/20140219/installing-laravel-osx-mavericks/ for
    1. Configuring Apache
    2. Installing Composer 

...

Download and Configure PGA

...