...
- 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 (Required if the user is hosting Airavata on his own. To communicate with SciGaP this step is not relevant)
- MCrypt PHP extension
Installations
The following guide give a sample installation starting from a fresh Ubunutu 12.04 installation. Similar instructions should be used in other operating systems.
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 apache2 -v and php -v commands
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:
- Follow instructions given in links to install the prerequisites based on the OS ;
- On Ubunutu: http://www.dev-metal.com/install-laravel-4-ubuntu-12-04-lts/
- On Centos: https://www.digitalocean.com/community/tutorials/how-to-install-laravel-4-on-a-centos-6-vps
- On MAC OS: http://sangatpedas.com/20140219/installing-laravel-osx-mavericks/
- Important: Do not need to install Laravel. You can skip the steps given on the links
- 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 GIT
- 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 755 app/storage
- Go to [PGA_HOME]/app/config/pga_config.php and change the configuration to match your settings
- Now issue composer install command
- sudo composer install
- Restart the web server
- sudo service apache2 restart
User Hosted PGA with SciGaP in Centos 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
...
- Installing repositories
- If you do not have apache, php, mysql installed. run installation steps for them too.
- Installing Composer
...
...
...
User Hosted PGA with SciGaP 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
...
...
- Configuring Apache
- Installing Composer
...