Apache Airavata
NOTE: Plese refer documentation in Airavata Documentation: Prerequisites
The following guide gives a sample installation starting from a fresh Ubunutu 12.04 installation.
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.
Please follow documentation in Airavata Documentation: PGA Installation on Cent OS 7
cd /Library/WebServer/Documents
git clone https://github.com/apache/airavata-php-gateway.git
cd /Library/WebServer/Documents/airavata-php-gateway
sudo chmod -R 777 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 update
sudo apachectl restart
If you are facing this behavior first check whether you have enabled mod_rewrite module in apache webserver. And also check whether you have set AllowOverride All in the Vhost configuration file in apache web server. (e.g file location is /etc/apache2/sites-available/default and there should be two places where you want to change)
<VirtualHost *:80>
Execute the following command and grant all permissions sudo chmod -R 777 app/storage
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 file> eg:/usr/lib/php5/20121212/mcrypt.so
save changes.
execute the command: sudo php5enmod mcrypt
Now restart the apache server again and test PGA web-interface.
If you face this kind of an error first check whether you have enabled PHP SOAP and OpenSSL extensions. If even after enabling them the issue is still occurring try updating the PHP OpenSSL extension. (Using command like yum update openssl)