Apache CGI in user directory “End of script output before headers”

后端 未结 8 761
心在旅途
心在旅途 2021-02-04 17:10

I know there are some questions about this topic, but none seems to solve my issue. See this or this or this.

I\'m on Linux, Fedora21, and I\'m trying to enable per user

相关标签:
8条回答
  • 2021-02-04 17:52

    This sometimes comes up when you try to call other Python module methods from your cgi where you might have left some 'print' statements (perhaps for debugging). So scan your code for any 'print' statement, sometimes this fixes the problem easily.

    0 讨论(0)
  • 2021-02-04 17:54

    This error occurs when we use print in older way.

    print 'your test'
    

    It should be for later version of Python.

    print ('your test')
    
    0 讨论(0)
提交回复
热议问题