{"id":5519383,"date":"2014-11-26T07:35:21","date_gmt":"2014-11-26T07:35:21","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/cgi-installation\/"},"modified":"2016-08-22T12:57:26","modified_gmt":"2016-08-22T12:57:26","slug":"cgi-installation","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/cgi-installation\/","title":{"rendered":"CGI Installation"},"content":{"rendered":"<p>Hello. This&#8217;ll be my first wordpress hosted on a server using CGI execution. Second wordpress installed, but first that I&#8217;ve had to actually go in and mess with the files. To get it out of the way&#8211;no, I don&#8217;t have a choice of hosts in this, so I can&#8217;t switch.<\/p>\n<p>To make it work, our admin&#8217;s asked that we paste #!\/usr\/local\/bin\/php at the beginning of every php file that will be directly accessed. My question is: how to spot what files will be &#8216;directly accessed&#8217;. Don&#8217;t know a lot about php, but from what I figure, if I paste it in php files that&#8217;ll be accessed within other files (or the like), I&#8217;ll get a duplicate #!\/usr\/local\/bin\/php showing up on the actual page when it loads. So far I guess I&#8217;d just be looking for php files that aren&#8217;t referenced in the text of other php files. I&#8217;ve been browsing tutorials, but most just detail the scripting language.<\/p>\n<p>Thought of first just pasting it in all of them and then viewing, working my way back and slowly removing duplicates (if I can figure out where they&#8217;re coming from), but if someone with more php intel can explain. I&#8217;d appreciate it.<\/p>\n","protected":false},"template":"","class_list":["post-5519383","topic","type-topic","status-closed","hentry","topic-tag-cgi"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5519383","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5519383\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=5519383"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}