Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPBカップ
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

WordPressで500内部サーバーエラーを修正する方法

編集メモ: WPBeginner のパートナーリンクから手数料を得ています。手数料は編集者の意見や評価に影響を与えません。編集プロセスについて詳しく知る。

WordPressで500内部サーバーエラーが表示されていませんか?

内部サーバーエラーは最も一般的なWordPressエラーの一つです。

このエラーには他の情報が一切表示されないので、多くの初心者はかなりイライラする。

この投稿では、WordPressの500内部サーバーエラーを簡単に修正する方法を紹介します。

Fixing the internal server error in WordPress

この投稿で取り上げるトピックを簡単に紹介しよう:

500内部サーバーエラーとは何ですか?

500内部サーバーエラーは、一般的なWebサーバーエラーです。WordPressに特有のものではなく、どのサイトでも発生する可能性があります。

エラーメッセージの500は、厳密にはHTTPエラーコードです。このコードを調べても、標準的な説明しか表示されません:

“500 Internal Server Error “レスポンスコードは、サーバーがリクエストを処理できない予期せぬ状況に遭遇したことを示す。

これは一般的なキャッチオール・エラーメッセージであり、サーバーがこの問題に遭遇したときに、より適切で役に立つエラーメッセージを割り当てることができなかったことを意味する。

エラーページは、あなたのサイトがどのウェブサーバーソフトウェア(NginxまたはApache)を使用しているか、またどのブラウザーが使用されているかによって異なって見えます。

以下は、Apacheのエラーページの見方である:

Internal server error page on Apache

NginxとGoogle Chromeを使用している場合は、表示が異なる場合があります。

また、Google Chromeが表示するエラーページを見つけられない場合にも、表示が変わります:

Google Chrome http 500 error

初心者にとって、これはとてつもなくフラストレーションのたまることだ。すぐに修正できるようなヒントもメッセージもない。

内部サーバーエラーの直し方を尋ねるのは、痛みの場所を告げずに、今経験している痛みの直し方を医者に尋ねるようなものだ。

しかし、このエラーを引き起こす一般的な原因がわかっているのであれば、それをひとつずつ解決していくことで、何も壊すことなくエラーを解決することができます。

WordPressの内部サーバーエラーの原因は?

WordPressの内部サーバーエラーは、.htaccessファイルの破損、プラグインのコーディング不良、WordPressテーマが原因で発生することがよくあります。

WordPressの内部サーバーエラーの他の原因としては、PHPのメモリ制限やWordPressのコアファイルの破損が考えられます。

状況によっては、WordPressの管理エリアにアクセスしようとしたときだけ内部サーバーエラーが表示され、他のサイトは正常に動作することがあります。

通常、このエラーはWordPressがロードされる前に発生し、サーバーは何がエラーを止めたのかについて十分な情報を得ることができません。

詳しくは、WordPressが舞台裏でどのように機能しているかについての投稿をご覧ください。

ということで、WordPressの内部サーバーエラーのトラブルシューティングの方法を見ていきましょう。

動画チュートリアル

Subscribe to WPBeginner

文章での説明がお好きな方は、そのまま読み進めてください。

WordPressの500内部サーバーエラーを修正する

トラブルシューティングを始める前に、WordPressによるサイトの完全なバックアップが手元にあることを確認してください。

WordPressの管理エリアにアクセスできるのであれば、WordPressのバックアッププラグインを使ってサイトの完全なバックアップを作成することができます。

Duplicatorの使用をお勧めします。サイトを素早くバックアップできるだけでなく、バックアップをクラウド上に保存することもでき、最も重要なのはバックアップからサイトを復元できることです。

一方、WordPressの管理エリアにアクセスできない場合は、phpMyAdminとFTPクライアントを使用して手動でWordPressのバックアップを作成することができます。

その後、以下の手順でトラブルシューティングを行い、サイトの内部サーバーエラーを修正することができます。

WordPressとブラウザーキャッシュのクリア

ブラウザーやWordPressのキャッシュプラグインは、エラーページのキャッシュコピーを誤って保存することがあります。

これを解決する最も簡単な方法は、まずブラウザーキャッシュをクリアすることだ。

Clear cache

その後、サイトのWordPress管理エリアにアクセスできる場合は、キャッシュプラグインの設定ページにアクセスしてWordPressのキャッシュを空にすることができます。

詳しくはWordPressのキャッシュをクリアする方法のチュートリアルをご覧ください。

.htaccessファイルが壊れていないかチェックする

.htaccessファイルはサーバー設定ファイルであり、WordPressがリダイレクトを設定するためにも使用されます。

内部サーバーエラーの最も一般的な原因の1つは、破損した.htaccessファイルです。

この問題を解決する最も簡単な方法は、WordPress管理エリアの「 設定 ” パーマリンク」ページにアクセスし、何も変更せずに「変更を保存」ボタンをクリックすることです。

Update permalinks to regenerate .htaccess file

WordPressが.htaccessファイルを更新するか、新しいファイルをジェネレータします。これで内部サーバーエラーが解決したかどうか、サイトにアクセスして確認することができます。

それでもエラーが表示される場合は、WordPressが.htaccessファイルを生成または書き込むことができたことを確認する必要があります。

ファイルやディレクトリの権限により、WordPressが.htaccessファイルを作成したり書き込んだりできないことがあります。

.htaccessファイルを手動で置き換えることができます。まず、FTPまたはホスティングアカウントのコントロールパネルにあるファイルマネージャーアプリを使ってサイトにログインする必要があります。

次に、メインの.htaccessファイルを.htaccess_oldのようにリネームする必要があります。これにより、ファイルをバックアップとして保持することができますが、WordPressはそれを認識しません。

.htaccessファイルの名前を変更するには、FTPまたはホスティングアカウントのcPanelダッシュボードのファイルマネージャーアプリを使用してサイトにログインする必要があります。

接続が完了すると、.htaccessファイルはwp-content、wp-admin、wp-includesのようなフォルダーがあるのと同じディレクトリに置かれます。

.htaccessファイルを右クリックし、.htaccess_oldにリネームするだけです。

Rename .htaccess file

次に、新しい.htaccessファイルを作成する必要があります。

サイトのルートフォルダー内で右クリックし、FTPクライアントまたはファイルマネージャーアプリで「新規ファイルを作成」オプションを選択します。

Create new htaccess file

この新規ファイルを.htaccessと名付け、「OK」をクリックして保存します。

現在、この.htaccessファイルは空になっているので、初期設定のWordPressリライトルールを追加する必要がある。

ファイルを右クリックし、FTPクライアントまたはファイルマネージャーアプリで「表示/編集」を選択するだけです。

Edit .htaccess file

空のファイルは、メモ帳やテキストエディットのようなプレーンテキストエディターで開きます。

次のコードをコピー&ペーストしてください:

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

このコードはWordPressが使用する初期設定のルールセットです。変更を保存し、サーバーにファイルをアップロードすることを忘れないでください。

これで内部サーバーエラーが解決したかどうか、サイトにアクセスして確認することができます。

もしそうなら、内部サーバーエラーを修正したのだから、自分を褒めてあげよう。

重要:他のことに移る前に、WordPress管理エリアの設定 ” パーマリンクのページに行き、変更を加えずに保存ボタンをクリックすることを確認してください。これにより、投稿ページが404エラーを返さないように、適切な書き換えルールで.htaccessファイルが再生成されます。

.htaccessファイルの破損をチェックしても解決しなかった場合は、この投稿を読み続ける必要がある。

PHPメモリ制限の増加

スクリプトがPHPのメモリ制限をすべて消費した場合、サーバー内部エラーが発生することがあります。

PHPのメモリ制限を増やす最も簡単な方法は、wp-config.phpファイルを編集することです。初心者の方は注意してください。WordPressのコアファイルの小さなミスでもサイトを壊してしまう可能性があるので、これらの指示に注意深く従いたい。

開始するには、FTPクライアントまたはホスティングアカウントのコントロールパネルにあるファイルマネージャーアプリを使用してWordPressサイトに接続するだけです。

サイトのメインフォルダー内にwp-config.phpファイルがあります。それを右クリックして「ダウンロード」を選択します。これで、何か問題が発生した場合に備えてファイルのバックアップを確実に取ることができます。

それを保存したら、右クリックして『表示/編集』を選択する。

Edit wp-config file

wp-config.phpファイルの中で、「これですべてです!ハッピー公開する:

define( 'WP_MEMORY_LIMIT', '256M' );

詳しくは、WordPressでPHPのメモリ制限を増やす方法のチュートリアルをご覧ください。

注:256Mで問題が解決しない場合は、512Mに増やしてみてください。

WordPressの管理画面にログインしようとしたときや、wp-adminで画像をアップロードしようとしたときにのみ内部サーバーエラーが表示される場合は、以下の手順でメモリ制限を増やす必要があります:

  1. コンピューター上に空白のテキストファイルを作成し、php.iniと命名する。
  2. そこに次のコードを貼り付ける: memory=256MB
  3. ファイルを保存する
  4. FTPで/wp-admin/フォルダーにアップロードします。

メモリ制限を増やすことで問題が解決したのであれば、一時的に問題が解決しただけです。メモリ制限を使い果たした原因を見つける必要があります。

これは、プラグインのコーディング不良か、テーマの機能である可能性があります。正確な診断結果を見つけるために、WordPressのWebホスティングサービス会社にサーバーのログ記録を調べてもらうことを強くお勧めします。

PHPのメモリ制限を増やしても問題が解決しない場合は、トラブルシューティングが必要です。

WordPressのプラグインをすべて無効化する

上記の解決策がどれもうまくいかなかった場合、このエラーはサイトにインストールされている特定のプラグインが原因である可能性が高いです。

プラグイン同士の相性が悪い可能性もある。

サイトのWordPress管理エリアにアクセスできるのであれば、プラグインページに行き、WordPressのプラグインをすべて無効化すればよい。

Deactivate all plugins

しかし、WordPressの管理エリアにアクセスできない場合は、FTPを使用してWordPressのプラグインをすべて無効化することができます。

FTPクライアントまたはホスティングアカウントのコントロールパネルにあるファイルマネージャーアプリを使用して、WordPressサイトに接続するだけです。

接続したら、/wp-content/フォルダに移動し、プラグインフォルダの名前をplugins.deactivatedに変更します。

Plugins deactivated via FTP

WordPressはpluginsフォルダーでプラグインを探します。pluginsフォルダが見つからない場合、すべてのプラグインが自動的に無効化されます。

これで、あなたのサイトの内部サーバーエラーが解決したかどうか、サイトにアクセスしてみてください。

プラグインをすべて復元するには、「plugins.deactivated」フォルダーをpluginsにリネームするだけです。

プラグインは復元されますが、無効化されたままです。

プラグインを個別に有効化し、サイトを訪問して内部サーバーエラーの原因となっているプラグインを特定することができます。

詳しくは、WP-Adminを使わずにWordPressのプラグインをすべて無効化する方法をご覧ください。

プラグインをすべて無効化してもサイトの内部サーバーエラーが直らなかった場合は、このまま読み進めてください。

WordPressの初期設定テーマに切り替える

内部サーバーエラーの原因として、WordPressテーマ内のコードが考えられます。

そうであるかどうかを判断するには、WordPressのテーマを初期設定に切り替える必要があります。

WordPressの管理エリアにアクセスできる場合は、外観 ” テーマページにアクセスします。デフォルトテーマがすでにインストールされている場合は、有効化ボタンをクリックするだけでテーマを切り替えることができます。

Activate a default theme

デフォルトテーマがインストールされていない場合は、上部の「新規追加」ボタンをクリックし、デフォルトテーマ(Twenty Twenty-Three、Twenty Twenty-Twoなど)をインストールすることができます。

WordPressの管理エリアにアクセスできない場合でも、デフォルトテーマに切り替えることができる。

FTPクライアントを使用してWordPressサイトに接続し、/wp-content/フォルダに移動するだけです。

右クリックしてテーマフォルダーを選択し、バックアップとしてコンピューターにダウンロードします。

Download theme folder

次に、サイトからテーマフォルダーを削除する必要があります。削除したら、新しいテーマフォルダーを作成してください。

新しいテーマフォルダーは完全に空になります。つまり、現在WordPressテーマがインストールされていないことを意味します。

次に、WordPressテーマディレクトリにアクセスし、初期設定のWordPressテーマをコンピューターにダウンロードする必要がある。

Download a default theme

ブラウザーがテーマをzipファイルとしてコンピューターにダウンロードします。

コンピューター上でファイルを探し、解凍します。Windowsユーザーは、ファイルを右クリックし、「すべて展開」を選択して解凍できます。Macユーザーは、zipファイルをダブルクリックして解凍できます。

Extract theme files

WordPressテーマを含むフォルダーが表示されます。

FTPクライアントまたはファイルマネージャに戻り、このフォルダーを空のテーマフォルダーにアップロードします。

Upload theme folder

アップロードすると、WordPressは自動的に初期設定のテーマを使い始めます。

これで内部サーバーエラーを解決したかどうか、サイトにアクセスして確認することができます。

それでもうまくいかない場合は、WordPressのテーマをバックアップから再アップロードするか、以前使用していたテーマに戻してください。

ご心配なく。エラーを修正するためにできることはまだいくつかあります。

コアファイルの再アップロード

プラグインとテーマのオプションで内部サーバーエラーが修正されなかった場合は、新しいWordPressインストールから/wp-admin/と/wp-includes/フォルダを再アップロードする価値があります。

これはあなたの情報を削除するものではありませんが、ファイルが破損している場合に問題を解決する可能性があります。

まず、WordPress.orgのサイトにアクセスし、「ダウンロード」ボタンをクリックします。

Download WordPress

WordPressのzipファイルがコンピューターにダウンロードされます。

zipファイルを解凍してください。その中にWordPressフォルダーがあります。

WordPress folder extracted

次に、FTPクライアントを使用してWordPressサイトに接続する必要があります。

接続したら、サイトのルート・フォルダーに移動します。wp-admin、wp-includes、wp-contentフォルダーがあるフォルダーです。

左の列で、コンピューター上のWordPressフォルダーを開きます。

WordPressフォルダー内のすべてのファイルを選択し、サイトにアップロードする必要があります。

Upload core WordPress files

FTPクライアントがこれらのフォルダーをサーバーに転送します。

ファイルを上書きするかどうか尋ねられます。上書きする」を選択し、「常にこのアクションを使用する」を選択し、「現在のキューにのみ適用する」のチェックボックスにチェックを入れます。

Overwrite WordPress core files

FTPクライアントは、古いWordPressファイルを新しい新鮮なコピーに置き換えます。

WordPressファイルが破損している場合は、この手順で内部サーバーエラーを修正できます。

WordPressでデバッグログを有効化する

WordPressには、デバッグ用のログ記録を残すシステムがビルトインされています。

WP Debuggingプラグインを使用することでオンにすることができます。詳しくはWordPressプラグインのインストール方法をご覧ください。

プラグインを有効化すると、WordPressサイトのデバッグログ記録が有効になります。

WordPressサイトの管理エリアにアクセスできない場合は、wp-config.phpファイルに以下のコードを追加することで、デバッグをオンにすることができます:

define( 'WP_DEBUG', true);
define( 'WP_DEBUG_LOG', true); 

デバッグログを有効にすると、FTPクライアントを使用して/wp-content/フォルダに移動することで、これらのログを表示することができます。

Debug log

デバッグログファイルをテキストエディターで開くと、サイトで発生したエラーや警告のリストが表示されます。

エラーや警告の中には、修正する必要のない無害なものもあります。しかし、もしあなたのサイトで内部サーバーエラーが表示されているのであれば、これらは正しい方向を示してくれるかもしれません。

ホスティングサービスに問い合わせる

すべての方法でサイトの内部サーバーエラーを修正できない場合は、さらに助けを求める必要があります。

Webホスティングサポートチームに連絡すれば、サーバーのログ記録をチェックして、エラーの根本原因を突き止めることができます。

自分でトラブルシューティングを続けたい場合は、初心者のための究極のWordPressトラブルシューティングガイドをご覧ください。

この投稿がWordPressの内部サーバーエラーの解決に役立てば幸いです。WordPressの最も一般的なエラーの完全なリストと、最適なホスティングサービスプロバイダーの選び方についてのガイドもご覧ください。

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

情報開示 私たちのコンテンツは読者支援型です。これは、あなたが私たちのリンクの一部をクリックした場合、私たちはコミッションを得ることができることを意味します。 WPBeginnerの資金源 をご覧ください。3$編集プロセスをご覧ください。

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

究極のWordPressツールキット

ツールキットへの無料アクセス - すべてのプロフェッショナルが持つべきWordPress関連製品とリソースのコレクション!

Reader Interactions

677件のコメント返信を残す

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Yasir says

    I encountered the following error :

    Error 500 – Internal Server Error

    An error was encountered while processing your request. Typically this is a temporary condition. Please contact the web site owner for further assistance.

    So I talked to my hosting support and they suggest me the following procedure :

    ” Your cPanel account was set to use the PHP version 5.2, and it needed to be updated to the PHP 5.4 version. ”

    Thanks ………. I worked for me ….
    I am using inmotionhosting .

  3. Sue says

    Thank you! Great advice even a non-techie volunteer can follow. The htaccess file was the main fix, but I could see by the logs that memory was creating a continual problem, so fixed that while I was at it.

  4. Helpful Colin says

    I have not been in the situation where I have had to test my plugins by disabling them all yet, but if I had to test them all I would try this method to try and reduce the number of tests required after deactivating them all:

    1. I would reactivate 50% of them. If the problem recurred I would know the problem plugin was in the reactivated group else it would be in the deactivated group.
    2. If the problem was caused by the reactivated group I would deactivate 50% of them and retest else I would reactivate 50% of the other group that had not yet been reactivated and retest.
    3. At this point I would know which group of 25% of all my plugins contained the faulty plugin and change the activation state of 50% of that group and retest.
    4. At this point I would know which group of 12.5% of all my plugins contained the faulty plugin.

    If I had 32 plugins the percentages above would divide them up very neatly into groups of 16, 8, 4, 2 and 1. It’s more likely that I would have to divide them into groups of unequal sizes but that doesn’t detract from the basic concept of reducing the number of tests to only 5 instead of 32.

    If the problem proved to be with the only plugin I had not reactivated by this method then I would obviously carry out a sixth test with that plugin alone. If it proves that there is only a problem when it is activated along with other plugins then the scene would get complicated.

  5. mgarfath says

    it was w3 total cache plugin that caused error on my site, I renamed the cache folder but it didn’t changed any thing, then there were some other files that were written like w3 advanced cache.php something like that, I renamed EVERY FILE that had w3 cache or Even cache written on it worked but i accidentally deleted my .htaccess file, i had copied the content of the file safely, so i created new .htaccess file and uploaded it on the server, everything got fixed.

    I hope this solution helps some one else who has this problem.

    Than ks

  6. anton says

    hello

    i changed my theme to a tube video them named ” detube”
    but after changing i am receiving a huge number of internal error 500 in Google webmaster( more then 800 error daily) and sometimes when i browsing my website don’t load and show me ” bandwidth limit resource” and also i receiving about 15 warning regarding to sitemap in Google webmaster
    before changing theme i didn’t have any issues
    can anyone help me? what can i do? i am losing my Google visitors

  7. sarfraz khan says

    Thousand likes . .htaccess was problem and i just did it as shown in the video and the problem is solved

  8. Gulshan Kumar says

    Internal Server Error mostly happens in Free Hosting. When I upgraded to premium, everything was on track.

  9. Imran Bughio says

    Bravo!
    “Checking for Corrupt .htaccess File” This section helped me solve the issue, Thanks for the post :)

  10. Sandile says

    Hi. Thank you for sharing this, I have recently experienced a 500 internal server error on my website but I re-uploaded wp-admin and wp-includes from fresh install, now everything is working in a good condition. Thank you.

  11. Karan says

    The problem with my site is that sometimes it loads correctly and sometimes it shows 500 internal server error. Can you please tell me the reason for this?

  12. Andrew P. says

    So, I have a really weird internal 500 error happening. My homepage loads up fine but whenever I click a link in the nav bar to go to another page the internal error pops up. I ran through this list of fixes and can’t seem to figure it out. Also my hosting provider doesn’t have a clue any ideas?

  13. Sheff says

    Thank you for this. My dashboard crashed midway through a Wordfence Security update. I tried for over 3 hours to fix it but could not get into my dashboard. (500 http error in IE, white screen in firefox)

    I was about to get my host to do a restore from last night and lose a day’s work until I found this page. I used FileZilla renamed the plugins folder on the serer to “plugins-frs” and was able to get into my dashboard with all 14 plugins deactivated. I then renamed the folder back to “plugins” and was able to activate them one at a time. They retained all of their settings, no problem.

    I manually downloaded and uploaded the latest version of the Wordfence Security plugin that started my problems and activated the new version without issue.

    I need to move to Newfoundland and become a cod fisherman before I go insane!

    Sheff

  14. Maher Aarag says

    What is a FTP?
    And how to log in to my site using the FTP?
    Do you mean log in to my Godaddy domain? or worldpress?

    • Prashant says

      FTP = File transfer protocol.

      to login with ftp (in Godaddy Cpanel) you should go to your control panel and then go to FTP options and create new ftp by selecting ‘public_html’ directory and then login with any ftp clients like Filezilla.

      host: ftp. yourdomain. com
      username and password: as your specified while creating FTP user.
      port: leave blank or 21.

    • Akpan Promise says

      FTP means file transfer protocol. It helps you transfer and edit files on your server.
      FTP software for instance are Filezilla, CuteFTP.

  15. Lisa Martin says

    Thanks you. I’ve used this technique multiple times on the same site. How can an .htcaccess file get corrupted? Is there anything that can be done to prevent it?

      • Lisa Martin says

        Thanks – I just thought to check here for your reply. The permission on the file is set to 644, but it keeps happening. It always works to rename the site and reload it, but often the client has to tell me his site is down before I know to go fix it for him. It looks like this is an issue in many WordPres forum threads as well.

        • Stephen Lee says

          Some plugins access the .htaccess and if there is a disruption to their function while doing so can introduce errors into the .htaccess coding.

  16. Jon says

    Thank you for the tips, as I successfully recovered my site using these suggestions. A corrupt hta access file was the issue. Using FileZilla (highly recommended FTP Client) I was able to disable my plugin folder, then disable the hta access file.

  17. Richard says

    What do I do when I can’t even enter the WP Admin without getting this error??
    I can sign in fine and see those options, but the moment I want to enter the Admin panel, it gives me this error. I can’t even look up themes, customizer, etc because it involves the WP Admin menu.

    What Do I Do?
    Please Help
    PS: I’ve never had issues with my site, but the WP Admin.

  18. Danielle Olson says

    Thank you! This was so helpful. When I added _deactivate to my plugins folder, I got a different error message that had to do with one plugin in particular. So, I went in and added _deactivate to individual plugins until I found the one that was the problem.

  19. msmith00 says

    Just had an issue with this and thought I’d pass along my findings… looking in the root folder, a second .htaccess file had appeared overnight and created the 500 Internal error.

    I simply removed the new .htaccess file (where it came from I don’t know), and all is back to normal.

  20. Elliot K says

    This is the best WordPress help site around hands down! Love it so much! Guides are simple and everything always works for me first try. Thanks wpbeginner :)

  21. Adil Adeel says

    This is a very informative and simple to understand tutorial for WP Beginners like me. I am using WordPress for last 5 years but as a blogger. Recently I had to install and look after couple of WordPress sites. Now 10 days back first WordPress site went down with 500 internal server error. I searched for the solution and landed on this page and did first step i-e renamed .htaccess file and problem was solved. Now again today the second site went down :) OMG !!!!! But again I visited this page to check for the solution.Now I have done all the steps explained on this page and nothing worked for me :( I have contacted the hosting provider and they are looking into problem for me. I will come back to share the solution once they rectify the problem. Thank you

  22. jofralogo says

    After trying everything (.htaccess, fresh install of wp-include/wp-admin, deactivate plugins…) I finally solve this problem doing this:

    1) Create a new folder in your wp directory.
    2) Move all files to this new directory.
    3) Move them back to the original folder.
    4) Ta-da!

    I know it sounds stupid but it worked for me.

  23. JCP says

    Thanks for saving my ass guys, just got a new job and got thrown into fixing the website (despite not part of my job description) and wow, those pesky plugins! As deemyboy says: BACKUP that wp-content folder!!!!!!!

  24. thankfulpj says

    Thank you so much for this guide! At least I was able to start somewhere while I wait for my hosting to check it. In my case, it was not any of the ones listed but a large error log on the home directory (it was 2GB) that did it. But when I re-uploaded the core files, I decided to delete it and it worked.

  25. Paulo André Matta says

    Hi, I have tried all those sollutions above, but none worked for me. Im getting kind of desperated. Im new to WP.. I was changing some Settings (in the wp-admin link) and when I hit save, the 500 error came up. Idk what to do :(

  26. Shaswat Shah says

    I uploaded the php.ini file to my /wp-admin/ folder. But now I am confused how can i know if 500 interneral server error is fixed or not ? because the error was coming simultaneously not all the time. Please help.

  27. Patricia Mirasol says

    I know I got the internal service error because I was tinkering with my .htaccess file right before it occurred. Tried to log in using FTP clients (FileZilla and WinSCP) but I kept getting a connection error timeout. Just emailed my hosting provider. Hopefully, my provider will be able to help me with this.

  28. Andrea Spila says

    Hi Silvia and thanks for this! I changed the permissions of the two files in wp-admin that were causing problems to 775 (from 664) and this solved then issue. And I don’t know why this happened too! It happened out of the blue. Mystery!

  29. rajesh adulapuram says

    I tried all the above steps and finally when contacted My host provider iPage it was rectified. They told the problem is with file permissons and they rectified. This should have been my First step

  30. Matt says

    I got back into my WP-Admin by renaming .htaccess but when I did settings>permalink>save as you recommend, I got locked out of admin again. Now renaming .htaccess does nothing. Any ideas?

  31. Furkanicus says

    I’ve had this problem so many times and I feel comfortable sharing my advise on this as an 500 Error expert. Sometimes the problem was solved by changing the htaccess file, but it was a temporary solution. As it’s pointed out in the article, 500 service errror is mostly caused by PHP memory limit and unfortunately adding a php.ini file is not going to cut it. Most hosting companies set Php limit to 128MB, including Dreampress, and if you exceed that limit, your hosting provider will momentarily cut the connection to your website. My advise for you people who has this problem is this. Install P3 Plugin and designate the memory-hogging plugins. If they’re not essential, remove them. Also, changing your host provider to a boutique one instead of Bluehost or Hostgator will get your better customer service and higher product quality.

  32. WPBeginner Staff says

    If you cannot find your .htaccess file, then you can always create a new blank file in a text editor. Name this file .htaccess and upload it to your website’s root directory using an FTP client.

  33. Tobie! ® says

    i still have a problem with this. i cant find my .htaccess file, and i have been locked out of admin. the whole site can’t be viewed. please help me

  34. Tobie! ® says

    i’ve tried all these, and it still doesnt work!! i cant find my .htaccess file and i cannot generate it because i’m locked out of admin, HELP PLEASE!!!

  35. Hasan Zaheer says

    Very helpful, but one more thing, mostly its due to w3 total cache plugin, if you have that you can rename cache plugin folder through FTP and then try, my site was fixed this way

返信を残す

コメントありがとうございます。すべてのコメントは私たちのコメントポリシーに従ってモデレートされ、あなたのメールアドレスが公開されることはありませんのでご留意ください。名前欄にキーワードを使用しないでください。個人的で有意義な会話をしましょう。