0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

WordpressプラグインAll-in-One WP Migrationエラーの対処

Posted at

動作環境

CentOS-7.9.2009
Apache-2.4.6
php-8.0.10
MariaDB-10.6.4
WordPress-5.8.1

WordPressダッシュボードエラー内容

All-in-One Migration は /var/www/html/nakatou.jp/keep/wp-content/ai1wm-backups/.htaccess ファイルを作成できません。親フォルダーのパーミッションを変更するか、support@servmask.com までメールでお問い合わせください。

All-in-One Migration は /var/www/html/nakatou.jp/keep/wp-content/ai1wm-backups/web.config ファイルを作成できません。親フォルダーのパーミッションを変更するか、support@servmask.com までメールでお問い合わせください。

All-in-One Migration は /var/www/html/nakatou.jp/keep/wp-content/ai1wm-backups/index.php ファイルを作成できません。親フォルダーのパーミッションを変更するか、support@servmask.com までメールでお問い合わせください。

All-in-One Migration は /var/www/html/nakatou.jp/keep/wp-content/ai1wm-backups/index.html ファイルを作成できません。親フォルダーのパーミッションを変更するか、support@servmask.com までメールでお問い合わせください。

原因

PHPがディレクトリ権限を持っていない

変更すべき箇所:
wp-content/plugins/all-in-one-wp-migration/storage
wp-content/ai1wm-backups

ApacheのPHP実行ユーザーを確認

# cat /etc/httpd/conf/httpd.conf
User apache
Group apache

ディレクトリ権限の確認

# ls -l /var/www/html/example.com/wp-content/
# ls -l /var/www/html/example.com/wp-content/plugins/all-in-one-wp-migration/

ディレクトリ権限の変更

# chown -R apache:apache /var/www/html/example.com/wp-content/ai1wm-backups

# ls -l /var/www/html/example.com/wp-content/
# chown -R apache:apache /var/www/html/example.com/wp-content/plugins/all-in-one-wp-migration/storage

# ls -l /var/www/html/example.com/wp-content/plugins/all-in-one-wp-migration/

変更の確認

# ls -l /var/www/html/example.com/wp-content/
# ls -l /var/www/html/example.com/wp-content/plugins/all-in-one-wp-migration/

WordPressダッシュボードでエラーが消えているかを確認

参考記事

https://lunalunadesign.net/2019/09/71/

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?