airavata-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sneha Tilak <>
Subject PGA Installation Steps (Tested on OS X)
Date Fri, 22 Sep 2017 19:21:55 GMT
Hi dev,


The PGA repository can be found at

Install apache, php, php-mcrypt, and composer using homebrew.
Note: the apache installed through homebrew will run on port 8080 and will
be completely separate rom the built-in apache server that comes with macOS.

   brew install homebrew/apache/httpd24
   brew install homebrew/php/php54 --with-httpd24
   brew install homebrew/php/php54-mcrypt
   brew install composer

In /usr/local/etc/apache2/2.4/httpd.conf make sure the following line is

   LoadModule php5_module    /usr/local/opt/php54/libexec/apache2/

Then also add

   <IfModule php5_module>
   Include /usr/local/etc/apache2/2.4/extra/httpd-php.conf

Now create the file /usr/local/etc/apache2/2.4/extra/httpd-php.conf

   <FilesMatch \.php$>
   SetHandler application/x-httpd-php

Create a file in /usr/local/var/www/htdocs/test.php




Then restart apache

   apachectl restart

Now you should see the phpinfo test page at http://localhost:8080/test.php

Enable the rewrite module by uncommenting this line in

   LoadModule rewrite_module libexec/

Create the following file: /usr/local/etc/apache2/2.4/extra/httpd-pga.conf

   <VirtualHost *:8080>
     DocumentRoot /Users/machrist/Documents/Airavata/airavata-php-gateway/
     <Directory "/Users/machrist/Documents/Airavata/airavata-php-gateway/
       DirectoryIndex index.php
       AllowOverride All
       Require all granted

(Optional) NOTE: instead of `*:8080` you can specify a hostname, like
`pga.local` and then
just make sure to add to your /etc/hosts file:   pga.local

Add the following line to /usr/local/etc/apache2/2.4/httpd.conf

   Include /usr/local/etc/apache2/2.4/extra/httpd-pga.conf

Restart apache

   apachectl restart

Other configuration Increase the TTL of the SOAP wsdl cache. Change the
default 1 day TTL value to something much larger in
/usr/local/etc/php/php.ini, for example, 10 days:


Set the timezone in the php.ini file too.

Sneha Tilak

View raw message