Wordpressが壊れた

In: 日記

5 5月 2009

うちのサーバーはロリポップを使っているんですが
PHPのバージョンを4から5にあげたら
wordpressが壊れました

今年でphp4のサポートは終わるため
いつかは移行しなきゃいけなかったので
軽い気持ちでやってしまったらこのザマです
やっぱりバージョンアップは、なめちゃいけないですね!

一部のファイルとディレクトリが消せなくなっていたのが
原因だったんですけど、ファイルを消す為のPHPスクリプト
を作んなきゃいけなくて面倒でした

一応復旧方法メモ
■.htaccessを作成

AddType application/x-httpd-php .php4

■削除用PHP作成
delete.php4

<?php

$dir = "";

if ( $filehandle = opendir("./".$dir)){
while( false !== ($file = readdir($filehandle))){
if( $file != "."  && $file != ".."){
if( unlink("./".$dir."/".$file)){
echo "Delete $file\n";
}
}
}
rmdir($dir);
closedir($filehandle);
}
?>

Comment Form

About this blog

Computer Programming, Computer Graphics, Python, Cooking, my family and Vim Editor.

mail: info at redms dot com

Photostream

    InuitBarMomizi
  • あきを: フリーズなんて一回もしたことないね〜 safariは結構速いよ [...]
  • hossy: お~。箱白いんだね~。 速さはどーなんだろ。 こっちはちょいちょ [...]
  • 妻より: 今思い出してもあれは拷問でした。 一度でも「元から無痛分娩か帝王切 [...]
  • あきを: S式支援は普通に使ってます とかとかとか あとはコピペは使うようにな [...]
  • mynz: 自分も Scheme でコードを書くときは emacs を使用しているけど、元々素の状 [...]

TumblrRSS

tumblr

カテゴリー

アーカイブ