It is as risky to believe everything, as it is to believe nothing. - Denis Diderot

— coreserverをCGIモードで使うとphpmyadminが動かない

Posted: Aug 24, 2009, 10:24 pm | Author: cyberryo | Category: Dialy | Tags: , ,

CoreserverをCGIモードで動かしていたら、いつの間にかphpmyadminが使えない状態に。。

CoreserverでECCUBEやDrupalを使うときに、どうしてもCGIモードで動かさなければならない状況が出てくると思います。
CGIモードにするのは.htaccess

AddHandler application/x-httpd-php5cgi .php

これを足すだけでOK。

が、
CGIモードで動かすとphpmyadminなどでエラーが出現(;゚д゚)ァ….

Script Error

The script did not produce proper HTTP headers. Please see the error log to see the detail of the errors. Depending on the server configuration, you can also run thisscript under CGIWrap debugging. Usually, either rename or linkthe script temporarily to a file which ends with .phpdextension, or add a AddType application/x-httpd-phpcgi-debug .phpline to your .htaccess file.

どうもphpmyadminはCGIモードが気に入らないようなので、
phpmyadminがインストールされているlogディレクトリ内の.htaccessファイルに下記を追加。

<files ~ "\.php$">
AddHandler application/x-httpd-php .php
</files>

これでもアクセスできない場合は、おそらくセッション関連のエラーだと思うので違うブラウザでアクセスすればOKなはず。

とても使い勝手が良いサーバーなのですが、たまーにこういうときもあります。でも他のホスティングと比べるとなんのこれしき。

ご参考ください〜


Facebook Comments