Computer >> คอมพิวเตอร์ >  >> การเขียนโปรแกรม >> HTML

วิธีการแก้ไขข้อผิดพลาด '503 Service Temporarily Unavailable'?

เมื่อเว็บไซต์ของคุณเริ่มทำงาน จะสามารถดึงดูดผู้เข้าชมได้หลายแสนคน

ยิ่งคุณดึงดูดผู้เยี่ยมชมได้มากเท่าไร คุณก็จะได้รับรายได้มากขึ้นเท่านั้น

แต่เว็บไซต์ของคุณมีข้อผิดพลาด 503 และคุณไม่รู้ว่าต้องทำอย่างไร ผู้มาเยือนกำลังจะจากไป SEO ได้รับผลกระทบ รายได้ลดลง

อย่างไรก็ตามทั้งหมดจะไม่สูญหาย คุณสามารถทำให้เว็บไซต์ของคุณใช้งานได้ในเวลาไม่นาน

ตลอดหลายปีที่ผ่านมา เราได้ช่วยเว็บไซต์จำนวนมากในการแก้ไขข้อผิดพลาด '503 บริการไม่พร้อมใช้งานชั่วคราว' ได้สำเร็จ

เราจะแสดงขั้นตอนที่แน่นอนที่คุณต้องดำเนินการ เพื่อลบข้อผิดพลาดนี้ออกจากไซต์ของคุณ และคุณจะได้เรียนรู้วิธีป้องกันข้อผิดพลาดไม่ให้เกิดขึ้นอีก

บริการ 503 ไม่มีให้บริการชั่วคราวหมายความว่าอย่างไร

คำตอบสั้น ๆ :เซิร์ฟเวอร์โอเวอร์โหลดทำให้เว็บไซต์ของคุณส่งข้อผิดพลาด 503 เซิร์ฟเวอร์ไม่พร้อมใช้งานชั่วคราว

เซิร์ฟเวอร์เป็นที่โฮสต์เว็บไซต์ของคุณ คิดว่าเป็นที่ดินที่คุณสร้างบ้าน ถ้าบ้านหนักและดินใต้แอ่งน้ำ บ้านของคุณจะพังเหมือนสำรับไพ่

ในทำนองเดียวกัน หากคุณสร้างไซต์ของคุณบนเซิร์ฟเวอร์ที่ไม่สามารถจัดการกิจกรรมต่างๆ เช่น การเข้าชมที่พุ่งสูงขึ้น ก็จะทำให้เกิดข้อผิดพลาด

สิ่งนี้ทำให้เกิดคำถาม – ไซต์ของคุณใช้ได้จนถึงขณะนี้ เหตุใดเซิร์ฟเวอร์จึงไม่สามารถจัดการกิจกรรมของคุณได้ในตอนนี้

มาดูสาเหตุที่เป็นไปได้ที่เซิร์ฟเวอร์ของคุณอาจโอเวอร์โหลด:

  • กำลังอัปเดตหรือติดตั้งปลั๊กอินหรือธีม หรือแม้แต่แกนหลัก
  • การจราจรพุ่งกระทันหัน
  • ข้อมูลโค้ดที่กำหนดเองที่ทำงานผิดปกติ

1. กำลังอัปเดตหรือติดตั้งปลั๊กอิน ธีม หรือ Core

เมื่อคุณอัปเดตหรือติดตั้งปลั๊กอิน ธีม หรือแกนหลักในเว็บไซต์ WordPress คุณกำลังขอให้เซิร์ฟเวอร์ทำงาน หากเซิร์ฟเวอร์ของคุณพร้อมแล้วกับงานอื่นๆ เซิร์ฟเวอร์จะล้นมือและหยุดตอบสนอง มันจะเกิดข้อผิดพลาด 503

วิธีการแก้ไขข้อผิดพลาด  503 Service Temporarily Unavailable ?

2. การจราจรติดขัดอย่างกะทันหัน

เซิร์ฟเวอร์ยังสามารถแสดงข้อผิดพลาดได้หากไซต์ของคุณเริ่มรับการเข้าชมมากกว่าปกติ . อาจมีบางคนพูดถึงไซต์ของคุณที่ใดที่หนึ่ง ดังนั้นจึงมีคนแห่เข้ามาที่ไซต์ของคุณ หรือเว็บไซต์ของคุณอยู่ภายใต้การโจมตีแบบแฮ็คบางประเภทที่เรียกว่า DDoS ในการโจมตีประเภทนี้ แฮกเกอร์ส่งทราฟฟิกปลอมมาที่ไซต์ของคุณเพื่อพยายามครอบงำเว็บไซต์ของคุณ

โดยปกติ ทุกครั้งที่ผู้เข้าชมมาที่ไซต์ของคุณและเปิดหน้าเว็บ เซิร์ฟเวอร์ของคุณจะเริ่มทำงานและแสดงหน้านั้นไปยังเบราว์เซอร์ของผู้เยี่ยมชม แต่ถ้าเซิร์ฟเวอร์มีงานมากเกินไป การแสดงหน้าให้ผู้เยี่ยมชมกลายเป็นเรื่องท้าทาย . จะใช้เวลาสักครู่ในการโหลดหน้า ด้วยเหตุนี้ ผู้เยี่ยมชมของคุณจะพบกับเว็บไซต์ที่ช้า

เมื่อมีผู้เข้าชมไซต์พร้อมกันมากเกินไป เซิร์ฟเวอร์จะล้นและแสดงข้อผิดพลาด http 503

3. ข้อมูลโค้ดที่กำหนดเองทำงานผิดปกติ

รหัสที่กำหนดเองช่วยให้คุณออกแบบเว็บไซต์ได้ตามที่คุณต้องการ แต่การใช้รหัสที่กำหนดเองผิดพลาดอาจทำให้เกิดข้อผิดพลาด '503 Service Temporarily Unavailable'

เมื่อคุณเพิ่มโค้ดที่กำหนดเองลงในไซต์ของคุณ คุณกำลังขอให้เซิร์ฟเวอร์ของคุณนำเสนอข้อมูลบนไซต์ของคุณในลักษณะบางอย่าง หากรหัสผิด คุณกำลังให้คำแนะนำที่ไม่ถูกต้อง ขณะที่เซิร์ฟเวอร์พยายามทำความเข้าใจข้อมูลโค้ด เซิร์ฟเวอร์จะล้นและเกิดข้อผิดพลาดขึ้น

จะแก้ไขข้อผิดพลาด '503 บริการไม่พร้อมใช้งานชั่วคราว' ได้อย่างไร

ข้อผิดพลาด 503 สามารถแสดงได้หลายวิธี รูปแบบข้อผิดพลาด 503 แบบบางส่วนมีดังนี้:

  • ข้อผิดพลาด HTTP 503
  • ข้อผิดพลาดเซิร์ฟเวอร์ HTTP 503
  • 503 บริการไม่พร้อมใช้งาน
  • ข้อผิดพลาด 503 บริการ WordPress ไม่พร้อมใช้งาน
  • 503 บริการ WordPress ไม่สามารถใช้งานได้ชั่วคราว
  • ข้อผิดพลาด 503 มีเธรดสูงสุดสำหรับบริการแล้ว
  • เซิร์ฟเวอร์ไม่สามารถให้บริการตามคำขอของคุณได้ชั่วคราวเนื่องจากการหยุดทำงานของการบำรุงรักษาหรือปัญหาด้านความจุ โปรดลองอีกครั้งในภายหลัง

ไม่ว่าข้อความแสดงข้อผิดพลาดคืออะไร การแก้ไขก็เหมือนเดิม

การรู้สาเหตุทำให้หาทางแก้ไขได้ง่าย หากคุณรู้ว่าอะไรทำให้เกิดข้อผิดพลาด ให้ไปที่วิธีแก้ไขปัญหาที่เหมาะสม

ตัวอย่างเช่น หากเกิดข้อผิดพลาดในขณะที่คุณกำลังติดตั้งปลั๊กอินใหม่ แสดงว่าปลั๊กอินเป็นผู้กระทำความผิด ข้ามไปยังจุดที่เราแสดงวิธีปิดใช้งานปลั๊กอิน แม้ว่าคุณจะไม่สามารถเข้าถึงแดชบอร์ดของผู้ดูแลระบบได้

หากคุณไม่รู้ว่าอะไรทำให้เกิดข้อผิดพลาด ให้เริ่มในส่วนนี้

ถ้าคุณรู้จัก Ca พวกเรา e ของข้อผิดพลาด

1. ย้อนกลับการอัปเดตที่ทำให้เกิดข้อผิดพลาด

หากคุณเริ่มพบข้อผิดพลาด ทันทีหลังจากอัปเดตปลั๊กอิน ธีม หรือแกนกลาง แสดงว่าการอัปเดตทำให้เกิดข้อผิดพลาด

หากคุณมีสิทธิ์เข้าถึงแดชบอร์ดของผู้ดูแลระบบ สิ่งที่คุณต้องทำคือย้อนกลับซอฟต์แวร์ไปเป็นเวอร์ชันก่อนหน้า

ติดตั้งและเปิดใช้งาน ย้อนกลับ WP ปลั๊กอิน จะช่วยคุณดาวน์เกรดปลั๊กอินหรือธีมเป็นเวอร์ชันก่อนหน้า ในการย้อนกลับแกน ใช้ ดาวน์เกรด WP ปลั๊กอิน

หากคุณไม่มีสิทธิ์เข้าถึงแดชบอร์ดของผู้ดูแลระบบ คุณจะต้องย้อนกลับการอัปเดตด้วยตนเอง คุณต้องไปที่แบ็กเอนด์และเข้าถึงไฟล์ WordPress ของคุณ คำแนะนำต่อไปนี้จะช่วยให้คุณทำอย่างนั้นได้

  • ปลั๊กอิน WordPress ย้อนกลับ
  • ย้อนกลับธีม WordPress
  • ย้อนกลับ WordPress Core

โปรดตรวจสอบให้แน่ใจว่าคุณกำลังปฏิบัติตามวิธีการแบบแมนนวล ไม่ใช่วิธีที่เกี่ยวข้องกับปลั๊กอิน คุณไม่สามารถติดตั้งปลั๊กอินได้ จำได้ไหม

หลังจากดาวน์เกรด ให้เปิดเว็บไซต์และตรวจสอบว่าข้อผิดพลาดหายไปหรือไม่ หากไม่เป็นเช่นนั้น ให้ล้างแคชแล้วตรวจสอบอีกครั้ง หากปัญหายังคงอยู่ การอัปเดตจะไม่ทำให้เกิดข้อผิดพลาด มาดูกันว่าอะไรเป็นสาเหตุของข้อผิดพลาดโดยข้ามไปที่ส่วนนี้

2. ปิดใช้งานปลั๊กอินหรือธีมที่ทำให้เกิดข้อผิดพลาด

หากข้อผิดพลาดปรากฏขึ้นทันทีหลังจากที่คุณเปิดใช้งานปลั๊กอินหรือธีมใหม่ คุณจะต้องปิดการใช้งาน

หากคุณมีสิทธิ์เข้าถึงแดชบอร์ดของ WordPress การปิดใช้งานทำได้ง่าย มันเป็นเรื่องของการไป:

→ Plugins> Installed Plugins> จากนั้นคลิกที่ปุ่ม Deactivate ที่ปรากฏด้านล่างปลั๊กอิน หรือ

→ ลักษณะที่ปรากฏ> ธีม> คลิกที่ธีม จากนั้นเลือก ลบ

หากธีมทำงานอยู่ คุณจะต้องเปิดใช้งานธีมอื่นในไซต์ของคุณ จากนั้นดำเนินการลบธีมที่ใช้งานก่อนหน้านี้

แต่หากคุณไม่มีสิทธิ์เข้าถึงไซต์ คุณต้องปิดใช้งานปลั๊กอินและธีมด้วยตนเอง . วิธีการ:

ขั้นตอนที่ 1: ดาวน์โหลดและติดตั้ง Filezilla บนคอมพิวเตอร์ของคุณ เปิดและเชื่อมต่อกับเว็บไซต์ของคุณด้วยข้อมูลรับรอง FTP

หากคุณไม่มีข้อมูลประจำตัว FTP คู่มือนี้และวิดีโอเหล่านี้จะช่วยคุณดึงข้อมูลเหล่านี้

และหากคุณไม่เคยใช้ Filezilla มาก่อน และไม่แน่ใจว่าจะใช้ข้อมูลรับรอง FTP เพื่อเชื่อมต่อกับ Filezilla ได้อย่างไร โปรดทำตามวิดีโอนี้

วิธีการแก้ไขข้อผิดพลาด  503 Service Temporarily Unavailable ?

ขั้นตอนที่ 2: เมื่อสร้างการเชื่อมต่อแล้ว แผงไซต์ระยะไกลจะเริ่มสร้างโฟลเดอร์ต่างๆ ใช้แผงควบคุม ไปที่ –

  • public_html> wp-content> ปลั๊กอิน
  • public_html> wp-content> ธีม

หากคุณคลิกที่โฟลเดอร์ คุณจะสามารถเห็นปลั๊กอินและธีมทั้งหมดที่ติดตั้งบนไซต์ของคุณ ไปที่รายการที่คุณต้องการปิดใช้งาน และทำตามขั้นตอนต่อไปนี้:

→ คลิกขวาที่ปลั๊กอินหรือธีม แล้วเลือกตัวเลือก เปลี่ยนชื่อ .

วิธีการแก้ไขข้อผิดพลาด  503 Service Temporarily Unavailable ?

→ เพิ่มข้อความ '.deactivate' ให้กับชื่อซอฟต์แวร์ ปิดหน้าต่าง. ซอฟต์แวร์จะถูกปิดใช้งาน

วิธีการแก้ไขข้อผิดพลาด  503 Service Temporarily Unavailable ?

→ ตรวจสอบเว็บไซต์ของคุณเพื่อดูว่าข้อผิดพลาดหายไปหรือไม่ หากไม่เป็นเช่นนั้น ให้ล้างแคชแล้วตรวจสอบอีกครั้ง หากปัญหายังคงอยู่ ให้ลองใช้วิธีแก้ปัญหาจากหัวข้อถัดไป

หากคุณไม่ทราบสาเหตุ

1. ใช้มาตรการเพื่อรับมือกับการจราจรติดขัด

ข้อผิดพลาด '503 Service Temporarily Unavailable' อาจเกิดจากการเข้าชมเว็บไซต์ของคุณ

ตรวจสอบ Google Analytics เพื่อดูว่าไซต์ของคุณได้รับการเข้าชมมากกว่าปกติหรือไม่ หากเป็นสาเหตุของข้อผิดพลาด

คำถามคือ เหตุใดจึงมีการเข้าชมอย่างกะทันหัน

> จัดส่วนลดหรือแจกของรางวัล

คุณเคยจัดงานแจกของรางวัลหรือส่วนลดที่ยากจะต้านทานซึ่งดึงดูดผู้คนจำนวนมากหรือไม่? บางทีเว็บไซต์ของคุณกำลังได้รับความนิยมเพิ่มขึ้นอย่างกะทันหันเนื่องจากการกล่าวถึงสื่อ ฯลฯ

เยี่ยมมาก! แต่เซิร์ฟเวอร์ของคุณทำให้คุณผิดหวังที่นี่ หากต้องการใช้ประโยชน์จากผู้เข้าชมที่เพิ่มขึ้นนี้ ให้อัปเกรดแผนโฮสติ้งของคุณ เซิร์ฟเวอร์ที่ดีกว่าซึ่งมีทรัพยากรมากกว่าควรสามารถรองรับการรับส่งข้อมูลได้

> การโจมตี DDoS และ Brute Force

การโจมตีแบบแฮ็คมีหลายประเภท ในการโจมตี DDoS แฮกเกอร์ส่งทราฟฟิกปลอมเพื่อครอบงำเซิร์ฟเวอร์ของคุณ ซึ่งทำให้ไซต์ของคุณปิดตัวลงและโยนข้อผิดพลาด 503

โดยทั่วไป การโจมตี DDoS จะดำเนินการเพื่อโค่นล้มแบรนด์ใหญ่ๆ แต่แฮกเกอร์ยังกำหนดเป้าหมายไซต์ขนาดเล็กเพื่อดึงค่าไถ่ หลังจากที่เจ้าของไซต์ชำระเงินแล้ว พวกเขาจะหยุดการเข้าชม มันคุ้มค่าที่จะตรวจสอบว่าคุณได้รับอีเมลเรียกค่าไถ่หรือไม่ ที่จะช่วยตรวจสอบว่าคุณกำลังประสบกับการโจมตี DDoS หรือไม่

เพื่อบรรเทาการโจมตี DDoS คุณจะต้องมีคู่มือนี้ – วิธีหยุดการโจมตี DDoS

อีกเหตุผลหนึ่งที่คุณอาจเป็นเพราะแฮ็กเกอร์กำลังพยายามเข้าสู่เว็บไซต์ของคุณ พวกเขาได้ส่งคำขอหลายรายการในหน้าเข้าสู่ระบบของคุณเพื่อลองใช้ชื่อผู้ใช้และรหัสผ่านที่แตกต่างกัน ซึ่งทำให้การเข้าชมพุ่งสูงขึ้น นี่เรียกว่าการโจมตีด้วยกำลังเดรัจฉาน

Learn how to prevent brute force attacks with this guide – WordPress brute force

2. Deactivate Plugins &Themes One By One

The error could be a result of a plugin or theme. Generally, a plugin or theme will not cause an issue out of the blue. It’s only when you update them, or add a brand new plugin or theme, on your site that you face this type of issue.

If you have an activity log, you can figure out if someone installed new software or an updated one.

If you don’t, then deactivate all plugins and themes to check if they are the culprit.

You can’t access the WordPress admin area so you need to go to the backend of the site. The steps you need to take are:

> Disabling The Plugins

ขั้นตอนที่ 1: Download and install Filezilla on your local computer. connect it to your website with FTP credentials.

If you don’t have your FTP credentials with you, then this guide and these videos will help you fetch them.

And if you have never used Filezilla and you are not quite sure of how to use the FTP credentials to connect to Filezilla, follow the instructions in this video.

วิธีการแก้ไขข้อผิดพลาด  503 Service Temporarily Unavailable ?

ขั้นตอนที่ 2: Once the connection is established, the Remote site panel will start populating. In that panel, navigate to –

  • public_html> wp-content> plugins

Right-click on the plugins folder and select Rename . Rename the folder to plugins.deactivate . This will disable all the plugins on your site.

วิธีการแก้ไขข้อผิดพลาด  503 Service Temporarily Unavailable ?

ขั้นตอนที่ 3: Now go back to your site to check whether it’s still throwing the ‘503 error WordPress’. If it is, then clear your cache and check again.

If the issue persists then move on to the next solution, i.e. disabling themes.

But if the issue is solved, then we recommend that you figure out which plugin was at fault.

ขั้นตอนที่ 4: Go back to the plugins folder and rename it back to plugins .

Step 5: Now open the folder and rename the first plugin. Just add ‘.deactivate’ to the name of the plugin.

วิธีการแก้ไขข้อผิดพลาด  503 Service Temporarily Unavailable ?

Go back, and check your website. Was this the plugin causing the error? If not, keep renaming the plugins. At some point, the error will be gone. The plugin you renamed last was the one causing the error. To make sure you don’t encounter the error again, you may want to delete the plugin, look for a replacement, or if you can’t do without the plugin, write into their support.

Ensure that you rename the rest of the plugins to their original names, otherwise, they won’t work.

> Disabling The Themes

After ruling out the plugins, check the themes. The debugging process with themes is different from what you did with the plugins. Disabling all themes will leave your site without a theme, and will cause your site to throw an error:“ERROR:The themes directory is either empty or doesn’t exist. Please check your installation.”

So here’s what we are going to do:

  1. We’ll activate a default WordPress theme on your site
  2. Disable the previously active theme
  3. Restore the previously active theme
  4. Disable all other themes from your site

Step 1:Activate A Default WordPress Theme

→ Login in to your hosting account

From your cPanel, open PHPMyAdmin .

→ Select the wp_options โต๊ะ.

Look for template &stylesheet . It’ll show you the currently active theme of the site. Note down the exact spelling and casing of the theme, as you will need it later. In the image below, it is ‘astra’.

วิธีการแก้ไขข้อผิดพลาด  503 Service Temporarily Unavailable ?

→ Next, you need to make a WordPress default theme as the current theme of the site. Double-click on template and change the theme to twentytwenty. Then double-click on stylesheet and change the theme to twentytwenty.

วิธีการแก้ไขข้อผิดพลาด  503 Service Temporarily Unavailable ?

Step 2:Disable The Previously Active Theme

→ Now, open Filezilla.

And go to public_html> wp-content> themes . The theme folder will contain the previously active theme. Disable it by renaming it to something like themename.deactivate.

Now open your website and check if it’s still throwing the error. If it is, that means the previously active theme is not the culprit.

Step 3:Activate Previous Theme

→ Head over to PHPMyAdmin and rename the theme in the template &stylesheet ส่วน. Ensure that the name is exactly like you copied. Do not make any changes to the spelling or casing.

Step 4:Deactivate All Theme One By One

→ To find out which theme is the culprit, you need to disable one theme at a time. From Filezilla, start renaming each theme and checking your website.

Remember not to disable the active theme. We’ve already checked that.

If none of the themes are the cause of the error, then move on to the next solution.

3. Talk To Your Hosting Provider

Your hosting provider has allocated space on one of their servers. Based on your plan, there is an upper limit to the server resources your website can use. If your website needs more resources than the current plan allows, you will need to upgrade to a higher plan.

If you are hosting your site on a shared hosting environment, then it’s possible that the problem could lie with other websites on your server. They could be hogging all the resources from your server, leaving very little for you to work with. Your website is not getting its share of resources.

Another possible reason for the error is that your server is undergoing maintenance updates. Most hosting providers email you a day or two in advance, before taking the server down. It’s worth checking your email account, including the spam folder for these updates.

You need to talk to your hosting provider to learn what’s happening. Try ruling out causes like server updates and other sites hogging resources. If you need to upgrade your hosting plan, do that.

4. Limit the WordPress ‘Heartbeat’ API

The Heartbeat API enables 3 functions on your WordPress site:

1. Auto-save Posts &Pages: If you are working on a post or page and your browser crashes or you accidentally close the browser, WordPress will automatically save the latest version of your work.

2. Display Real-Time Data: E-commerce websites use plugins to display real-time data on the dashboard. This API enables them to do that.

3. Prevent Multiple Simultaneous Edits: On websites with multiple authors, you don’t want the same posts being edited by multiple people at the same time. If you are editing a post, the Heartbeat API locks it down and prevents anyone else from accessing it till you are done with it.

The API utilizes your server resources to carry out all of the functions we mentioned above. But too many requests from the API can overwhelm the server. As a result, the server throws a 503 Service Temporarily Unavailable.

Let’s find out if the API is causing the error.

ขั้นตอนที่ 1: Open Filezilla. And navigate to public_htm> wp-content> Themes .

ขั้นตอนที่ 2: Next, open the active theme and look for the function.php ไฟล์. When you find it, right-click and select the view/edit ตัวเลือก

วิธีการแก้ไขข้อผิดพลาด  503 Service Temporarily Unavailable ?

ขั้นตอนที่ 3: Add the following code snippet into the file –

add_action( 'init', 'stop_heartbeat', 1 );
function stop_heartbeat() {
wp_deregister_script('heartbeat');
}

Save the files and exit.

วิธีการแก้ไขข้อผิดพลาด  503 Service Temporarily Unavailable ?

ขั้นตอนที่ 4: Check whether your website is still throwing the error.

If it is, the API is not the culprit. Go back to the function.php file and delete the code you just added. Don’t forget to save the file.

But if the error is gone, the API was causing it. Congratulations on finding the cause!

That being said, disabling the API permanently is not a good idea, because it enables some pretty important functions. However, you can reduce the number of times the API interacts with the server . วิธีการ:

ขั้นตอนที่ 1: Install the Heartbeat Control plugin.

ขั้นตอนที่ 2: On your dashboard, navigate to General Settings> Heartbeat Control .

ขั้นตอนที่ 3: There are 3 options:WordPress Dashboard, Frontend, &Post editor Select. Select Modify Heartbeat for all 3 options and then reduce the frequency to the lowest .

วิธีการแก้ไขข้อผิดพลาด  503 Service Temporarily Unavailable ?

ขั้นตอนที่ 4: Now, open the function.php file and delete the code snippet .

แค่นั้นแหละ คน

5. Talk to Your CDN Providers

On rare occasions, CDNs can cause 503 errors. This happens when there is a connectivity error between the CDN server and your website. If none of the solutions above worked for you, then chances are it’s a CDN issue.

Reach out to your CDN support and tell them that you have ruled out every other possibility. Keep your CDN credentials ready. You’ll need it when speaking to the support personnel.

นั่นคือทุกคน We are confident that one of the above solutions will help you get rid of the error.

But there’s no guarantee that it won’t occur again. The 503 error can spell disaster for your site. In the next section, we will quickly cover all the things that you stand to lose because of the error, and what can you do to protect your site from this error in the future.

Impact Of The 503 Service Temporarily Unavailable Error On Your Site

If the 503 error persists for a long time, it can have the following impact on your website:

  • Visitors start bouncing off of your website. This will be noticed by search engines like Google. Google will conclude that your website is not meeting user expectations and lower your SERP rankings .
  • Once ranking takes a hit, it will have a ripple effect. First, your traffic will decline , revenue collection will dip , then your monthly income will be affected. This is bad news for those of you who rely on their website to generate income.
  • Even if you don’t rely solely on your site for income, your SEO effort will be squandered . All the time, effort, and money you’ve invested in building your website will have gone to waste.
  • Your brand reputation will also be hampered.

Luckily this will happen only when the issue isn’t resolved instantly.

It’s best not to wait for the error to occur again and take preventive measures.

Install BlogVault Backup Plugin NOW, and rest easy knowing your site is safe.

Protect Your Site From The 503 Error In The Future

There are a couple of things you can do to prevent the error from occurring in the future. But before we get into those, we strongly recommend setting up a backup service that takes a complete backup of your website every day .

At times of crisis like this one, a backup is your safety net. You can quickly restore your site to normal and investigate the error later.

Backups are valuable, only when they are taken on a regular basis. Otherwise, you may have to restore an old backup and lose all the modifications made on your site after that.

Check out BlogVault’s WordPress Backup Service. It backs up your entire website automatically every day. Yes, every day. So at any given point, you stand to lose only one day’s work at the most. And it helps you restore your site within a few seconds.

ก้าวต่อไป…

1. Update or Add New Plugins &Themes On a Staging Site

As we’ve seen, updates or the addition of themes and plugins are one of the biggest reasons why the error occurs.

You can’t stop updating or trying out new plugins and themes, but you sure can be careful.

How?

Try using a staging site.

เป็นแบบจำลองที่แน่นอนของไซต์จริงของคุณ Here’s how you can create one:

ก. Install and activate BlogVault on your WordPress website.

ข. Add your site to the BlogVault dashboard. And it will start taking a backup of your complete website.

วิธีการแก้ไขข้อผิดพลาด  503 Service Temporarily Unavailable ?

ค. When the backup process is complete, on your BlogVault dashboard, click on Sites แล้วเลือกเว็บไซต์ของคุณ

วิธีการแก้ไขข้อผิดพลาด  503 Service Temporarily Unavailable ?

ง. ในหน้าถัดไป ให้เลื่อนลงไปที่ส่วนการจัดเตรียมและเลือก เพิ่มการจัดเตรียม> ส่ง BlogVault จะเริ่มสร้างไซต์การแสดงละครสำหรับคุณ

วิธีการแก้ไขข้อผิดพลาด  503 Service Temporarily Unavailable ?

อี เมื่อไซต์การแสดงละครพร้อม คุณจะได้รับชื่อผู้ใช้และรหัสผ่าน Note down the credentials, you’ll need them.

วิธีการแก้ไขข้อผิดพลาด  503 Service Temporarily Unavailable ?

ฉ. Now, open the staging site by clicking on the Visit Staging Site ปุ่ม.

วิธีการแก้ไขข้อผิดพลาด  503 Service Temporarily Unavailable ?

กรัม The staging site will open in a new tab and you will be asked to enter the credentials.

วิธีการแก้ไขข้อผิดพลาด  503 Service Temporarily Unavailable ?

ชม. You will now be able to access your staging site. เพียงเพิ่ม /wp-admin/ ที่ท้าย URL ของคุณเพื่อเปิดหน้าเข้าสู่ระบบ And login via the same credentials you use to log into your actual site.

วิธีการแก้ไขข้อผิดพลาด  503 Service Temporarily Unavailable ?

The staging site has all the plugins and themes present on your original site.

Update or add themes and plugins.

If all goes well on staging, you can carry out updates and additions to the actual site. If an error occurs on the staging, it doesn’t affect your original site. Use the steps listed above to troubleshoot the staging site, just as you would with a live website, to find the cause and fix the issue.

After checking the themes and plugins on your staging site, you can merge your staging site with the original site, instead of updating or adding manually. Follow this guide: การรวมไซต์การแสดงละครกับไซต์ดั้งเดิม

2. Use a Firewall to Prevent DDoS Attacks

Firewalls help protect websites against DDoS attacks. But not all types of firewalls are effective in this type of attack. You need one that is cloud-based.

A cloud-based firewall sits between your website and the traffic. All incoming traffic is intercepted by the cloud firewall. It investigates traffic requests. If it finds that a request is a malicious one, then that traffic is blocked.

Therefore, when there is a DDoS attack, bad traffic hits the firewall before reaching the site. The firewall bears the burden of attack. Your website is left unharmed.

We’ve compiled a list of the best WordPress firewalls. Pick one to protect your website against DDoS attacks.

3. Upgrade To A Better Hosting Plan

Server overloading is the main cause behind the 503 error. Maybe you are experiencing more traffic which is great. You need a server with more resources to be able to serve all your visitors. You will need to upgrade to a higher hosting plan.

That said, let us ask you something – Is your site down often? Check your uptime monitoring tool for accurate data.

If your hosting server is often down for one reason or another, then you need to move to a better hosting service.

There are plenty of hosting services advertising great plans at low prices, but they often fail to deliver. We’ve compiled a list of the best WordPress hosting providers.

And once you’ve made the decision to switch, this guide will help you migrate:How to Migrate WordPress Site?

Pro Tip: If you are using BlogVault for backup and staging, then you can use the same tool for monitoring uptime as well.

วิธีการแก้ไขข้อผิดพลาด  503 Service Temporarily Unavailable ?

อะไรต่อจากนี้

Errors are a part and parcel of managing a website. Don’t let them get the better of you. Our tutorials will help you overcome them all.

We have compiled a list of the common WordPress errors and their fixes. Bookmark this article and return to it when you need it:WordPress Troubleshooting Guide.