ホーム > Tips, web製作, wordpress > coreserverでwordpressのプラグインの自動アップグレード

coreserverでwordpressのプラグインの自動アップグレード

coreserver

coreserverではphpデフォルトでsafemodeがオンになっているので、wordpress(に限らずphpを使うアプリ-concrete5とか-)を動作させるとエラーが出たりします。

とても便利なプラグインの自動アップグレードも、coreserverのデフォルトの状態だと、次のようなエラーが出て使えません。

Warning: touch() [function.touch]: SAFE MODE Restriction in effect. The script whose uid is YOURUID is not allowed to access /tmp owned by uid 0 in /virtual/USERID/public_html/wp-admin/includes/file.php on line 174

Warning: fileowner() [function.fileowner]: SAFE MODE Restriction in effect. The script whose uid is YOURUID is not allowed to access /tmp owned by uid 0 in /virtual/USERID/public_html/wp-admin/includes/file.php on line 628

Warning: fileowner() [function.fileowner]: stat failed for /tmp/xxxxxxxxxx in /virtual/USERID/public_html/wp-admin/includes/file.php on line 628

Warning: unlink() [function.unlink]: SAFE MODE Restriction in effect. The script whose uid is YOURUID is not allowed to access /tmp owned by uid 0 in /virtual/USERID/public_html/wp-admin/includes/file.php on line 630

これを回避するにはwp-adminの直下に次のような内容の.htaccessを置くとよい

<Files update.php>
AddHandler application/x-httpd-phpcgi .php
</Files>
タグ: , , , ,

こちらもオススメ