airavata-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Neeraj Lad <n...@umail.iu.edu>
Subject Re: PGA Installation Steps (Tested on OS X)
Date Fri, 22 Sep 2017 20:55:13 GMT
Thank you for the detailed steps Sneha. Here are some additional steps
which I had to do, highlighted in bold:



On Fri, Sep 22, 2017 at 3:21 PM, Sneha Tilak <sneha.tilak26@gmail.com>
wrote:

> Hi dev,
>
> FYI.
>
> The PGA repository can be found at https://github.com/apache/a
> iravata-php-gateway
>
> 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
> added
>
>    LoadModule php5_module    /usr/local/opt/php54/libexec/a
> pache2/libphp5.so
>
> Then also add
>
>    <IfModule php5_module>
>    Include /usr/local/etc/apache2/2.4/extra/httpd-php.conf
>    </IfModule>
>
> Now create the file /usr/local/etc/apache2/2.4/extra/httpd-php.conf
> (See http://php.net/manual/en/install.unix.apache2.php)
>
>    <FilesMatch \.php$>
>    SetHandler application/x-httpd-php
>    </FilesMatch>
>
> Create a file in /usr/local/var/www/htdocs/test.php
>
>    <?php
>
>    phpinfo();
>
>    ?>
>
> Then restart apache
>
>    apachectl restart
>

If you cannot start apache, check if some other process is listening on
port 8080 as:
*netstat -vnap tcp | grep -i "listen"*

To get more info on the process do:
*ps <process_id>*
The process_id is given by the second to last column of the netstat result.

If you have Jenkins listening on 8080, stop it as:

*sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist*


>
> Now you should see the phpinfo test page at http://localhost:8080/test.php
>
> Enable the rewrite module by uncommenting this line in
> /usr/local/etc/apache2/2.4/httpd.conf
>
>    LoadModule rewrite_module libexec/mod_rewrite.so
>
> Create the following file: /usr/local/etc/apache2/2.4/extra/httpd-pga.conf
>
>    <VirtualHost *:8080>
>      DocumentRoot /Users/machrist/Documents/Airavata/airavata-php-gateway/
> public/
>      <Directory "/Users/machrist/Documents/Airavata/airavata-php-gateway/
> public/">
>        DirectoryIndex index.php
>        AllowOverride All
>        Require all granted
>      </Directory>
>    </VirtualHost>
>
> (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:
>
>    127.0.0.1   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:
>
>    soap.wsdl_cache_ttl=864000
>
> Set the timezone in the php.ini file too.
>
*data.timezone = "America/Indiana/Indianapolis"*
>


> Regards,
> Sneha Tilak
>

ᐧ

Mime
View raw message