サポート » 使い方全般 » コアサーバーのセーフモード対処法(ド素人でも理解できる方法)

  • 解決済 hit515151

    (@hit515151)


    コアサーバーを使っているのですが、セーフモードの制限でテーマのインストールなどを
    アップロードすると下記のようにでてうまくいきません・・(泣)

       ↓↓↓

    Warning: touch() [function.touch]: SAFE MODE Restriction in effect. The script whose uid is xxxxx is not allowed to access /tmp owned by uid 0 in /{アカウントのディレクトリ}/public_html/wp/wp-admin/includes/file.php on line 174
    Warning: fileowner() [function.fileowner]: SAFE MODE Restriction in effect. The script whose uid is xxxxx is not allowed to access /tmp owned by uid 0 in /{アカウントのディレクトリ}/public_html/wp/wp-admin/includes/file.php on line 628
    Warning: fileowner() [function.fileowner]: stat failed for /tmp/xxxxxxxxxx in /{アカウントのディレクトリ}/public_html/wp/wp-admin/includes/file.php on line 628

    下記サイトも参考に頑張ったのですが、いずれもダメでした・・

      ↓↓
    http://wpdocs.sourceforge.jp/%E3%82%BB%E3%83%BC%E3%83%95%E3%83%A2%E3%83%BC%E3%83%89%E3%81%AB%E3%82%88%E3%82%8B%E5%88%B6%E9%99%90%E3%81%A8%E5%AF%BE%E5%87%A6%E6%96%B9%E6%B3%95

    どうすれば解決できるのでしょうか・・・↓
    よろしくお願いします

4件の返信を表示中 - 1 - 4件目 (全4件中)
  • nobita

    (@nobita)

    こんにちは

    .htaccessの設定は、どうなっていますか?

    トピック投稿者 hit515151

    (@hit515151)

    ありがとうございます。
    専門用語など、もうチンプンカンプンなのでどう説明してよいやらなんですが・・

    .htaccessの設定?ですが、wp-adminの中に入れてます。(FFFTPで・・)
    ただ、wp-adminの中に入れても「.htaccess」のフォルダが何故か消えてない・・・

    「ファイル一覧の取得は正常終了しました」(FFFTP)となるので
    移動はできてるのかと思われますが・・・(汗)

    .htaccessの内容は下記の通りです。
    (どこかのサイトに掲載されてました)

    ↓↓

    <Files setup-config.php>
    AddHandler application/x-httpd-phpcgi .php
    </Files>
    <Files plugin-editor.php>
    AddHandler application/x-httpd-phpcgi .php
    </Files>
    <Files theme-editor.php>
    AddHandler application/x-httpd-phpcgi .php
    </Files>
    <Files upload.php>
    AddHandler application/x-httpd-phpcgi .php
    </Files>
    <Files async-upload.php>
    AddHandler application/x-httpd-phpcgi .php
    </Files>
    <Files io.php>
    AddHandler application/x-httpd-phpcgi .php
    </Files>

    php_flag register_globals Off
    php_flag display_errors Off
    php_flag log_errors On

    php_value default_charset UTF-8
    php_value mbstring.detect_order UTF-8,auto
    php_value mbstring.language Japanese
    php_flag mbstring.encoding_translation on
    php_value mbstring.internal_encoding UTF-8
    php_value mbstring.http_input auto
    php_value mbstring.http_output pass
    php_value mbstring.substitute_character ?

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    よろしくお願いします。

    nobita

    (@nobita)

    wp-admin/.htaccess の内容は、

    <files async-upload.php>
    AddHandler application/x-httpd-phpcgi .php
    </files>
    <Files plugin-install.php>
    AddHandler application/x-httpd-phpcgi .php
    </Files>
    <Files update.php>
    AddHandler application/x-httpd-phpcgi .php
    </Files>
    <Files update-core.php>
    AddHandler application/x-httpd-phpcgi .php
    </Files>
    <files upload.php>
    AddHandler application/x-httpd-phpcgi .php
    </files>
    #import
    <files admin.php>
    AddHandler application/x-httpd-phpcgi .php
    </files>

    だけでいいです。

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    は、wordpressの、ルート(index.phpがあるホルダ)に書くものです。
    wp-admin/.htaccessには、必要ありません。

    php_flag register_globals Off
    php_flag display_errors Off
    php_flag log_errors On
    
    php_value default_charset UTF-8
    php_value mbstring.detect_order UTF-8,auto
    php_value mbstring.language Japanese
    php_flag mbstring.encoding_translation on
    php_value mbstring.internal_encoding UTF-8
    php_value mbstring.http_input auto
    php_value mbstring.http_output pass
    php_value mbstring.substitute_character ?

    は、wordpressの、ルート(index.phpがあるホルダ)に書くものです。
    wp-admin/.htaccessには、必要ありません。

    マルチバイト(日本語)の設定は、

    ルート(index.phpがあるホルダ)の、.htaccessに以下を追加するぐらいでいいと思います。

    <IfModule mod_php5.c>
    #「mbstring」関係の設定
    php_value mbstring.language "Japanese"
    php_value mbstring.internal_encoding "utf-8"
    </IfModule>

    「.htaccess」のフォルダ

    .htaccessは、ホルダではなく、テキストファイルですよー

    トピック投稿者 hit515151

    (@hit515151)

    nobita様
    ご親切にありがとうございます。感謝です。

    wp-admin/.htaccess の内容を変更してみたのですが、うまくいきませんでした。
    おそらく他にも問題が多々あるのだと思いますが、私にはもうお手上げ状態です(苦笑)↓

    めちゃめちゃ悔しいですが、コアサーバーでのWPは諦めます(泣)
    (WP本体をインストールに1ヶ月も悩んだだけに・・・(笑))

    お騒がせしました。
    nobitaさん貴重なお時間、THANKSです!

4件の返信を表示中 - 1 - 4件目 (全4件中)
  • トピック「コアサーバーのセーフモード対処法(ド素人でも理解できる方法)」には新たに返信することはできません。