{"id":1286,"date":"2012-11-13T15:00:13","date_gmt":"2012-11-13T15:00:13","guid":{"rendered":"https:\/\/copyright.lboro.ac.uk\/lorls\/?p=1286"},"modified":"2012-11-13T15:00:13","modified_gmt":"2012-11-13T15:00:13","slug":"trouble-installing-disable-selinux","status":"publish","type":"post","link":"https:\/\/blog.lboro.ac.uk\/lorls\/lorls\/trouble-installing-disable-selinux","title":{"rendered":"Trouble installing?  Disable SELinux"},"content":{"rendered":"<p>We are currently working on a new distribution of LORLS (That&#8217;s right version 7 is coming soon) and to test the installer&#8217;s ability to update an existing installation we needed a fresh v6 install to test on. \u00a0 So I dropped into a fresh virtual machine we have dedicated specifically\u00a0to this kind of activity, downloaded the version 6 installer and ran through the installation only to find that, while it had created the database and loaded the initial test data just fine, it hadn&#8217;t installed any of the system files.<\/p>\n<p>So for the next 3 hours I was scouring apache&#8217;s logs, checking the usual culprits for these sort of issues and debugging the code. \u00a0One of the first things I did was check the SELinux configuration and it was set to permissive, which means that it doesn&#8217;t actually block anything just warns the user. \u00a0This lead me to discount SELinux as the cause of the problem.<\/p>\n<p>After 3 hours of debugging I finally reached the stage of having a test script that would work when run by a user but not when run by apache. \u00a0The moment that I had this output I realised that while SELinux may be configured to be permissive, it will only pick up this change when the machine is restarted. \u00a0So I manually tried disabling SELinunx (as root use the command &#8216;echo 0 &gt; \/selinux\/enforce&#8217;) and then tried the installer again.<\/p>\n<p>Needless to say the installer worked fine after this, so if you are installing LORLS and find that it doesn&#8217;t install the files check that SELinux is disabled.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We are currently working on a new distribution of LORLS (That&#8217;s right version 7 is coming soon) and to test the installer&#8217;s ability to update an existing installation we needed a fresh v6 install to test on. \u00a0 So I dropped into a fresh virtual machine we have dedicated specifically\u00a0to this kind of activity, downloaded [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[8,9,3,4],"tags":[39,51,72],"class_list":["post-1286","post","type-post","status-publish","format-standard","hentry","category-bibgrab","category-clump","category-lorls","category-lump","tag-installer","tag-lorls-v6","tag-selinux","count-0","even alt","author-lbjlclboro-ac-uk","last"],"_links":{"self":[{"href":"https:\/\/blog.lboro.ac.uk\/lorls\/wp-json\/wp\/v2\/posts\/1286","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.lboro.ac.uk\/lorls\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.lboro.ac.uk\/lorls\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.lboro.ac.uk\/lorls\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.lboro.ac.uk\/lorls\/wp-json\/wp\/v2\/comments?post=1286"}],"version-history":[{"count":0,"href":"https:\/\/blog.lboro.ac.uk\/lorls\/wp-json\/wp\/v2\/posts\/1286\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.lboro.ac.uk\/lorls\/wp-json\/wp\/v2\/media?parent=1286"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.lboro.ac.uk\/lorls\/wp-json\/wp\/v2\/categories?post=1286"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.lboro.ac.uk\/lorls\/wp-json\/wp\/v2\/tags?post=1286"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}