Apache Airavata
If you are facing issues and not able to open the user interface even after doing the necessary steps, please troubleshot with below steps
below command may not work which is specified in the installation page for the Ubuntu :
sudo nano /etc/apache2/sites-available/default
because you will not find the dafault file in the specified path
instead open: sudo pico /etc/apache2/sites-available/000-default.conf
go bottom of the file and add below lines before </VirtualHost> tag
<Directory "/var/www/html">
AllowOverride All
</Directory>
save changes.
Installing composer may fail with below error:
Loading composer repositories with package information
installing dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Please follow the below steps:
git checkout -b test origin/airavata-php-gateway-0.15-release
sudo composer install
If this ask for Mcrypt PHP extension required, then install mcrypt by
sudo apt-get install php5-mcrypt
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.
$ sudo pacman -S polkit apache php php-apache php-mcrypt php-composer mariadb
$ 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: rewrite_module modules/mod_rewrite.so
Replace the mpm_event_module modules/mod_mpm_event.so
with mpm_prefork_module modules/mod_mpm_prefork.so
Add the following line: LoadModule php5_module modules/libphp5.so
Add the following line: Include conf/extra/php5_module.conf
$ sudo mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
$ sudo systemctl start polkit
$ sudo systemctl start httpd
$ sudo systemctl enable httpd
$ sudo systemctl start mysqld
$ sudo systemctl enable mysqld
Note: you may need to reboot to start polkit
$ sudo mysql_secure_installation
$ mysql -u root -p
> CREATE USER 'forge'@'localhost';
> GRANT ALL PRIVILEGES ON * . * TO 'forge'@'localhost';
> CREATE DATABASE 'forge';
> FLUSH PRIVILEGES;
> exit
$ cd /srv/http
$ sudo git clone https://github.com/apache/airavata-php-gateway.git
$ sudo chown -R $USER airavata-php-gateway
$ cd airavata-php-gateway
$ cp app/config/pga_config.php.example app/config/pga_config.php
$ vim app/config/pga_config.php
$ chmod -R 777 app/storage
$ sudo composer install
cd /Library/WebServer/Documents
git clone https://github.com/apache/airavata-php-gateway.git
cd /Library/WebServer/Documents/airavata-php-gateway
sudo chmod -R 755 app/storage
sudo vim /etc/apache2/httpd.conf
uncomment #LoadModule rewrite_module libexec/apache2/mod_rewrite.so
uncomment #LoadModule php5_module libexec/apache2/libphp5.so
sudo composer install
sudo apachectl restart