• Resolved supermoon10

    (@supermoon10)


    Hello. This’ll be my first wordpress hosted on a server using CGI execution. Second wordpress installed, but first that I’ve had to actually go in and mess with the files. To get it out of the way–no, I don’t have a choice of hosts in this, so I can’t switch.

    To make it work, our admin’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 ‘directly accessed’. Don’t know a lot about php, but from what I figure, if I paste it in php files that’ll be accessed within other files (or the like), I’ll get a duplicate #!/usr/local/bin/php showing up on the actual page when it loads. So far I guess I’d just be looking for php files that aren’t referenced in the text of other php files. I’ve been browsing tutorials, but most just detail the scripting language.

    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’re coming from), but if someone with more php intel can explain. I’d appreciate it.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘CGI Installation’ is closed to new replies.