...
PGA Installation Prerequisites
NOTE: Plese refer documentation in Airavata Documentation: Prerequisites
Installing PGA in Ubuntu OS
Prerequisites
- Requires a Unix or Unix like operating system
- 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
- Install Composer
- MYSQL database installation
- MCrypt PHP extension
Installations
Starting The following guide gives a sample installation starting from a fresh Ubunutu 12.04 installation.
- Update the ubuntu package manager
sudo apt-get update
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 following commands
apache2 -
...
v
php -v
...
Install 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
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
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.
...
PGA
...
Installation
- Download PGA from github to the document root of you web server /var/www.
- 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
- . More instruction on pga_config.php follow step 6 in Airavata Documentation: pga_config.php configurations
- Now issue composer update command; Now issue composer install commandsudo composer update
- Restart the web server; sudo service apache2 restart
...
Installing PGA on Cent OS
Please follow documentation in Airavata Documentation: PGA Installation on Cent OS 7
Installing PGA in MAC OS
Prerequisites
...
- Make sure the php version >= 5.4
- Requires a Unix or Unix like operating system
- 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
- Install Composer
- MYSQL database installation
- MCrypt PHP extension
Installations
...
- 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/
- Once above is completed follow the steps given in folowing links;
- Configuring Apache: https://
...
- coolestguidesontheplanet.
...
- com
...
- /
...
- how-to-install-
...
- php-mysql-
...
- apache-on-
...
- os-x-
...
- 10-6
...
- /
- Installing Composer: https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx
PGA Installation
Navigate to directory; cd /Library/WebServer/Documents
git
...
- Installing repositories
- If you do not have apache, php, mysql installed. run installation steps for them too.
- Installing Composer
...
clone https://github.com/
...
apache/
...
airavata-php-
...
gateway.git
...
- server-host = “”
- server-port = “”
...
- admin-username = "test@testphprg.scigap.org<mailto:test@testphprg.scigap.org>"
- admin-password = "testadmin@scigap.org<mailto:testadmin@scigap.org>"
- cafile-path = "/resources/security/idp_scigap_org.pem"
...
After cloning is completed navigate to gateway directory: cd /Library/WebServer/Documents/airavata-php-gateway
- Make sure the storage folder is writable sudo chmod -R 777 app/storage
- (optional) Go to [PGA_HOME]/app/config/pga_config.php and change the configuration to match your settings. More instruction on pga_config.php follow step 6 in Airavata Documentation: pga_config.php configurations
- Enable Apache extensions (mod_rewrite module and PHP SOAP extension)
sudo vim /etc/apache2/httpd.conf
uncomment #LoadModule rewrite_module libexec/apache2/mod_rewrite.so
uncomment #LoadModule php5_module libexec/apache2/libphp5.so
- Now issue composer update command; sudo composer update
- Restart the web server sudo apachectl restart
Link the Local PGA with Hosted Airavata
- Once the PGA is installed you will have to link with hosted Airavata.
- Contact Airavat hosting team (probably apache Airavata team) and obtain information required in section 'Airavata Client Configurations' of pga_config.php file in directory [PGA_HOME]/app/config
Troubleshooting PGA Installation Issues
Having an issue with installation? Maybe someone earlier faced and the answer could be in FAQs. Please try: Airavata Documentation: FAQ
Comments, clarifications most welcomed. Subscribe and contact us through http://airavata.apache.org/community/mailing-lists.html
...