...
- 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
- Enable OpenSSL PHP extension
- 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
...
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
- Install the necessary dependencies:
$ sudo pacman -S polkit apache php php-mcrypt php-composer mariadb
- Enable the appropriate extensions:
$ sudo vim /etc/php/php.ini
Uncomment the following extensions: mcrypt.so, openssl.so, pdo_mysql.so, and soap.so
$ sudo vim /etc/httpd/conf/httpd.conf
Uncomment the following extension: modules/mod_rewrite.so
- Create necessary MySQL config:
$ sudo mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
- Start and enable the Apache and MySQL daemons:
$ sudo systemctl start polkit
$ sudo systemctl start httpd
$ sudo systemctl enable httpd
$ sudo systemctl start mysqld
$ sudo systemctl enable mysqld
- Complete the MySQL installation:
$ sudo mysql_secure_installation
- Add a MySQL user:
$ mysql -u root -p
> CREATE USER 'forge'@'localhost';
> GRANT ALL PRIVILEGES ON * . * TO 'forge'@'localhost';
> CREATE DATABASE 'forge';
> FLUSH PRIVILEGES;
> exit
- Clone the PGA git repository:
$ git clone https://github.com/apache/airavata-php-gateway.git
- Symlink the PGA repository:
$ sudo ln -s $PWD/airavata-php-gateway /srv/http/airavata-php-gateway
- Configure the PGA:
$ cd airavata-php-gateway
$ cp app/config/pga_config.php.example app/config/pga_config.php
$ vim app/config/pga_config.php
- Configure the PGA storage permissions:
$ chmod -R 755 app/storage
- Install using Composer:
$ sudo composer install
- To be continued...
User Hosted PGA with SciGaP in MAC OS
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 http://sangatpedas.com/20140219/installing-laravel-osx-mavericks/ for
- Configuring Apache
- Installing Composer
...
Download and Configure PGA
...