You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2017/02/08 20:38:44 UTC

airavata-docs git commit: SELinux command to make user data dir writeable by httpd

Repository: airavata-docs
Updated Branches:
  refs/heads/master 9db404b1a -> 91f7ce670


SELinux command to make user data dir writeable by httpd


Project: http://git-wip-us.apache.org/repos/asf/airavata-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata-docs/commit/91f7ce67
Tree: http://git-wip-us.apache.org/repos/asf/airavata-docs/tree/91f7ce67
Diff: http://git-wip-us.apache.org/repos/asf/airavata-docs/diff/91f7ce67

Branch: refs/heads/master
Commit: 91f7ce670f46082f61f4b6a423a4b05ea935b600
Parents: 9db404b
Author: Marcus Christie <ma...@iu.edu>
Authored: Wed Feb 8 15:37:19 2017 -0500
Committer: Marcus Christie <ma...@iu.edu>
Committed: Wed Feb 8 15:37:19 2017 -0500

----------------------------------------------------------------------
 PGA-Installation.md | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-docs/blob/91f7ce67/PGA-Installation.md
----------------------------------------------------------------------
diff --git a/PGA-Installation.md b/PGA-Installation.md
index b88f188..1b83a08 100644
--- a/PGA-Installation.md
+++ b/PGA-Installation.md
@@ -38,8 +38,13 @@
 <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). 
-5. Copy ./app/config/pga_config.php.template to ./app/config/pga_config.php 
-6. In pga_config.php change airavata server, change;
+5. Make this user data directory writeable by Apache httpd by making the following
+SELinux update as root:
+```
+chcon -R -t httpd_sys_rw_content_t /path/to/gateway-user-data
+```
+6. Copy ./app/config/pga_config.php.template to ./app/config/pga_config.php 
+7. In pga_config.php change airavata server, change;
 	-  Airavata Client Configurations
 		- 'airavata-server' => 'localhost\u2019,
 		- 'gateway-id' => 'php_reference_gateway',
@@ -57,19 +62,19 @@
 		- 'oauth-client-key' => 'G1khg0I0Xf444rereggrteret', (Generated by WSO2 IS at tenant creation)
         - 'oauth-client-secret' => 'G1khg0I0Xf444rere', (Generated by WSO2 IS at tenant creation)
         -  'verify-peer' => true, (Set this to false if trusted server certificates are not used. Refer <a href='http://wso2.com/library/knowledge-base/2011/08/adding-ca-certificate-authority-signed-certificate-wso2-products/' target ='_blank'>Adding CA Signed Certificate</a> on adding trusted certificates.)
-7. Give writing permission chmod -R g+rwx app/storage/
-8.  Make sure SElinux comparability of airavata_php_gateway folder. For that give�
+8. Give writing permission chmod -R g+rwx app/storage/
+9.  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>
 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�
+10. 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\u201d</code></pre>
 This is to make sure the storage folder is writable.
-10. Configure firewall to allow http and https
+11. Configure firewall to allow http and https
 	- Check existing configurations using <pre><code>firewall-cmd --zone=public --list-services</code></pre> 
 	- To open access  for http <pre><code>firewall-cmd --zone=public --permanent --add-service=http</code></pre>
 	- To open access for https <pre><code>firewall-cmd --zone=public --permanent --add-service=https</code></pre>
 	- To get above rules applied <pre><code>firewall-cmd \u2014reload - refresh</code></pre>
-11. Locate httpd.conf file in location /etc/httpd/conf/
+12. Locate httpd.conf file in location /etc/httpd/conf/
 <br> Make sure below 'Allow Override' has 'All' option.
 <pre><code>
     #