ちょっとハマったのでメモ。 error.log に「Premature end of script headers」が出ている場合、 これは「とにかく何かおかしい」というエラーなので、 原因がわかりにくい場合が多い。 ★「Premature end of script headers」が出たら、以下をチェック ★ 1:こちらを参考にする Premature end of script headersの解決法-超簡易版 以下のような、「test」をprintするだけの、簡単なファイルを作って試してみよう。 #!/usr/bin/[perl|ruby] print "Content-type text/html¥n¥n" ; print "test" ; ※rubyの場合はセミコロンなしね <html><body><?php echo "test" ; ?></body></html> 2:コ
