0

Last week, I moved the wordpress instance to new server. After that I frequently get 500 Internal Server Error. This error comes all of the sudden. The apache error log does not contain any fatal error messages but it contains PHP warning messages.

Whenever this error occurs, I restart the apache and the site is back to normal state. What may be the reason for this 500 Internal Server Error?

How does restarting apache solves this error? Only this site gets this error, other sites deployed to this server are working fine.

4

2 に答える 2

0

BD に含まれるワードプレスの URL が古い URL を指している理由の 1 つは、phpmyadmin でこのスクリプトを実行すると解決できます。

UPDATE wp_options SET option_value = REPLACE(option_value,'old_site','new_site');
UPDATE wp_posts SET post_content = REPLACE(post_content,'old_site','new_site');
UPDATE wp_posts SET guid = REPLACE(guid,'old_site','new_site');
UPDATE wp_postmeta SET meta_value = REPLACE(meta_value,'old_site','new_site');

また、ホスティング アカウントにユーザー名のフォルダーが含まれている可能性もあります。wp_options テーブルに含まれている可能性があります。たとえば、upload_path: "/home/[folder_old_id]/public_html/wp-content/uploads"

UPDATE wp_options SET option_value = REPLACE(option_value,'folder_old_id','folder_new_id');
于 2016-05-30T08:02:27.817 に答える
-1

Wordpress の内部サーバー エラー、500 Internal Server Error 解決しました!

最初にワードプレスで管理ダッシュボードにログインします

  1. 設定に行く
  2. オプションを選択
  3. オプションを変更し、すべてのオプションリストで投稿URL形式を選択して保存します
  4. エラーが発生したページにアクセスして確認してください...
于 2018-12-14T09:42:19.010 に答える