Repository: airavata-docs Updated Branches: refs/heads/master 3fd4bb9fb -> e36bf37fc
adding IS config configuration in pga Project: http://git-wip-us.apache.org/repos/asf/airavata-docs/repo Commit: http://git-wip-us.apache.org/repos/asf/airavata-docs/commit/e36bf37f Tree: http://git-wip-us.apache.org/repos/asf/airavata-docs/tree/e36bf37f Diff: http://git-wip-us.apache.org/repos/asf/airavata-docs/diff/e36bf37f Branch: refs/heads/master Commit: e36bf37fce4facc60ce0cb0bb06982e2e995dae8 Parents: 3fd4bb9 Author: Eroma Abeysinghe <eroma.abeysin...@gmail.com> Authored: Thu Mar 3 14:51:39 2016 -0500 Committer: Eroma Abeysinghe <eroma.abeysin...@gmail.com> Committed: Thu Mar 3 14:51:39 2016 -0500 ---------------------------------------------------------------------- Airavata-Installation.md | 2 +- PGA-Installation.md | 36 +++++++++++++++++++++--------------- WSO2-IS-Configuration.md | 3 +++ 3 files changed, 25 insertions(+), 16 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/airavata-docs/blob/e36bf37f/Airavata-Installation.md ---------------------------------------------------------------------- diff --git a/Airavata-Installation.md b/Airavata-Installation.md index 008378c..eb2cfcd 100644 --- a/Airavata-Installation.md +++ b/Airavata-Installation.md @@ -25,7 +25,7 @@ #### Prerequisites 1. CentOS 7 Default open JDK 1.8.0. (minimum) is sufficient. 2. Download RabbitMQ binary for CentOS 7 -<a href="https://https://www.rabbitmq.com/install-generic-unix.html" target="_blank">Download RabbitMQ Binary for CentOS</a><br> +<a href="https://www.rabbitmq.com/install-generic-unix.html" target="_blank">Download RabbitMQ Binary for CentOS</a><br> 3. Prerequisite for RabbitmQ Erlang can be installed using yum <pre><code>yum install Erlang</code></pre> 4. Unzip the downloaded RabbitMQ tar file into a folder in your local machine. http://git-wip-us.apache.org/repos/asf/airavata-docs/blob/e36bf37f/PGA-Installation.md ---------------------------------------------------------------------- diff --git a/PGA-Installation.md b/PGA-Installation.md index 003debe..bb4ef3d 100644 --- a/PGA-Installation.md +++ b/PGA-Installation.md @@ -1,7 +1,7 @@ # PGA Installation -[<button type="button" style="color:darkred;text-align:center;font-weight:bold;background-color:Steal;width:200px;border-radius:4px">PGA on MAC OS</button>](#headPGAMAC) -[<button type="button" style="color:darkred;text-align:center;font-weight:bold;background-color:Steal;width:200px;border-radius:4px">PGA on Cent OS</button>](#headPGACENTOS) +[<button type="button" style="color:#3232ff;text-align:center;font-weight:bold;background-color:darkgray;width:200px;border-radius:4px">PGA on MAC OS</button>](#headPGAMAC) +[<button type="button" style="color:#3232ff;text-align:center;font-weight:bold;background-color:darkgray;width:200px;border-radius:4px">PGA on Cent OS</button>](#headPGACENTOS) ## <a name="head1234"></a>General PGA Prerequisites 1. A Unix or Unix like operating system @@ -30,7 +30,7 @@ ### Download and Configure PGA 1. As the document root (var/www/html) take the git clone https://github.com/apache/airavata-php-gateway.git -2. Change the cloned folder name to your desired folder name(e.g.: php-gateway). This will carry sub folders for the gateway +2. Change the cloned folder name to your desired folder name(e.g.: airavata-php-gateway). This will carry sub folders for the gateway <pre><code>cp - R airavata-php-gateway /* .</code></pre> 3. In the gateway folder do a <pre><code<composer update</code></pre> 4. Create a directory in var/www/ for user data (E.g.:gateway-user-data). Give permission to user data folder @@ -54,20 +54,26 @@ - 'oauth-client-key' => 'G1khg0I0Xf444rereggrteret', (Generated by WSO2 IS at tenant creation) - 'oauth-client-secret' => 'G1khg0I0Xf444rere', (Generated by WSO2 IS at tenant creation) 7. Give writing permission chmod -R g+rwx app/storage/ -<br>in the http config file add URL information for the gateway file path (this is in w54 pga server) vi /etc/httpd/conf/httpd.conf -8. Make sure SElinux comparability of airaveata_php_gateway folder. for that give chcon -Rv --type=httpd_sys_content_t airavata-php-gateway/ - this is to make sure this folder is readable by http - -9. ls - lZ shows the SELinux context. after the above chcon command do the same for storage folder as well su -c "chcon -R -h -t httpd_sys_script_rw_t [fullpath]/app/storageâ - this is to make sure the folder is writable - -10. once the URL info added restart the http service -<pre><code>systemctl restart  httpd.service</code></pre> +8. Make sure SElinux comparability of airavata_php_gateway folder. For that give +<pre><code>chcon -Rv --type=httpd_sys_content_t airavata-php-gateway/</code></pre> +<br> This is to make sure the gateway folder is readable by http +9. ls - lZ shows the SELinux context. After the above chcon command do the same for storage folder as well +<pre><code>su -c "chcon -R -h -t httpd_sys_script_rw_t [fullpath]/app/storageâ</code></pre> +<br> This is to make sure the storage folder is writable 11. Configure firewall to allow http and https -<pre><code>firewall-cmd --zone=public --list-services</code></pre> - check existing configurations -<pre><code>firewall-cmd --zone=public --permanent --add-service=http</code></pre> - allow for http -<pre><code>firewall-cmd --zone=public --permanent --add-service=https</code></pre> - allow for https - -<pre><code>firewall-cmd âreload - refresh</code></pre> - to get rules applied. +<pre><code>firewall-cmd --zone=public --list-services</code></pre> - Check existing configurations +<pre><code>firewall-cmd --zone=public --permanent --add-service=http</code></pre> - To open access for http +<pre><code>firewall-cmd --zone=public --permanent --add-service=https</code></pre> - To open access for https +<pre><code>firewall-cmd âreload - refresh</code></pre> - To get above rules applied +12. Locate httpd.conf file in location /etc/httpd/conf/ +<br> Make sure below 'Allow Override' has 'All' option. + # + # AllowOverride controls what directives may be placed in .htaccess files. + # It can be "All", "None", or any combination of the keywords: + # Options FileInfo AuthConfig Limit + # + AllowOverride All http://git-wip-us.apache.org/repos/asf/airavata-docs/blob/e36bf37f/WSO2-IS-Configuration.md ---------------------------------------------------------------------- diff --git a/WSO2-IS-Configuration.md b/WSO2-IS-Configuration.md index 608a493..dbe476c 100644 --- a/WSO2-IS-Configuration.md +++ b/WSO2-IS-Configuration.md @@ -36,3 +36,6 @@ OR 6. Navigate to Configure --> Users & Roles --> Users. Find the admin user and click 'User Profile'. Add the username at the bottom and update. You are all set to start configuring the gateway for job submission. For Gateway Configurations visit <a href="#Gateway-Configuration.md">PGA Configuration</a> + +test +test