サイトアイコン Research and Development

Editing wp-config.php

WordPressのアップグレード定数

WordPressのアップグレードの問題を修正するために、必要な以下の定数のうちいくつかを定義する必要がありました。

FILE PERMISSION ISSUES

We were unable to modify required files. Please ensure that /home/directory/uploads/ has the proper read-write permissions, or modify your wp-config.php file to contain your FTP login credentials as outlined here.

必要なファイルを変更できませんでした。 / home / directory / uploads /が適切な読み書き権限を持っていることを確認してください。また、wp-config.phpファイルを変更してここに記載されているFTPログイン認証情報を保存してください。

これらを定義する必要がある最も一般的な原因は次のとおりです。

次はWORDPRESSの更新に有効な定数です。

define( ‘FS_METHOD’, ‘ftpext’ ); define( ‘FTP_BASE’, ‘/path/to/wordpress/’ ); define( ‘FTP_CONTENT_DIR’, ‘/path/to/wordpress/wp-content/’ ); define( ‘FTP_PLUGIN_DIR ‘, ‘/path/to/wordpress/wp-content/plugins/’ ); define( ‘FTP_PUBKEY’, ‘/home/username/.ssh/id_rsa.pub’ ); define( ‘FTP_PRIKEY’, ‘/home/username/.ssh/id_rsa’ ); define( ‘FTP_USER’, ‘username’ ); define( ‘FTP_PASS’, ‘password’ ); define( ‘FTP_HOST’, ‘ftp.example.org’ ); define( ‘FTP_SSL’, false );

WordPress.org Editing wp-config.php

プラグインやWP自体を更新しようとすると503の問題を避けるために、FTP_HOSTをlocalhostに設定する必要があります。

情報元

WordPress.org Editing wp-config.php

Editing wp-config.php – WordPress
モバイルバージョンを終了