WordPress.org

Support

Support » How-To and Troubleshooting » duplicated #!#!/usr/local/bin/php (php path)

duplicated #!#!/usr/local/bin/php (php path)

  • Hello, I just installed wordpress and the server require me to put “#!/usr/local/bin/php ” in front of every php file. I did that and now in my blog there will be some duplicated “#!/usr/local/bin/php” in the beginning.
    I think “#!/usr/local/bin/php” is needed, but the including of php make the duplicated “#!/usr/local/bin/php ” displayed directly on page. Is there any method to avoid this?
    Thanks a lot.

Viewing 3 replies - 1 through 3 (of 3 total)
  • I mean, that, for single file, the “#!/usr/local/bin/php ” wont be output, maybe it is erased by the server, but because of including of php, the second and following “#!/usr/local/bin/php ” can not be removed and are contained in the output of php, and finally can be seen in browser.

    If it was me, and it once was, I’d go to a hosting provider that doesn’t require you to use cgi php.

    ah, I see. So you mean that such server is running php as cgi. I see now. But I still would like to use this server if it is possible, because it is the local server which is very convenient to me.
    But still, is there any solution to this problem?
    Or i can only remove the duplicated #!phppath from all the header files. One more question, will these cause security problem?
    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘duplicated #!#!/usr/local/bin/php (php path)’ is closed to new replies.