Knowledge Base
MilesWeb / How-Tos

How to Resolve 503 Error in Linux?

Approx. read time : 3 min

There can be connectivity issues between the Linux servers hosting your application that cause the 503 service unavailable error. One of the easiest ways to fix the 503 service temporarily unavailable error is to follow this knowledge base article.

Step 1

First you have to check if the website is a node.js/python hosted website. If yes, then go for node.js/python solutions :

Nodejs :

Cpanel >>  node.js >> open the application >> switch  to  the source path from terminal >> run the application : npm start / node app.js runserver &  (main file  may be  app.js, test.js,depends)

If the  error  occurs  for : port is already in  use  then :
netstat -nap | grep :port no.
lsof -p 21069

where 21069 = pid

kill -9 21069

Restart the  application and again run the application.

Check whether the website  is  proxy based or not,in that order check the proxy.

Python :

Cpanel >>  node.js >> open the application >> switch  to  the source path from terminal >> run the application : python3 manage.py runserveror python manage.py runserver &

Follow the  steps as above as for  node.js

Step 2

You need to check the resources of the account. If they are high, you need to optimize the resources of the account.

Step 3  

Check if there is load on the server. If yes, reduce the server load.

Step 4  

Enable debug mode for the website (If WP site >>in wp-config, edit  the value  of debug from false to  true  /  If other  site  then enable  the debug logs  from php ini editor  in cPanel  ) Exact error will get displayed on the site.)

Step 5

Here is the error that you will get on the screen.

Error :

You will get a memory exhaust error message.

*Allowed memory size of 41943040 bytes exhausted (tried to allocate 32768 bytes) in /home/mumbai/public_html/wp-content/plugins/userswp/vendor/ayecode/wp-super-duper/wp-super-duper.php on line 3060:

To resolve such errors, Increase the values in the multi PHP INI editor.”

Step 6  

If error is related to plugin/theme, then scan the security measures from wp-toolkit, and then you must know that there is error for  the respective plugin , theme ,

Ask the web hosts tech team to disable the plugin, with no changes in the theme.

Step 7  

Check applying different suitable PHP versions to the site (On priority: 5.6, 7.3, 8.0 and above).

That is how you can resolve 503 error on Linux operating systems compatible servers.

I am a passionate content writer. I write unique, genuine and high-quality content on web hosting and other topics. Being a keen learner I continue to improve my writing skills.

Trusted By Thousands of Clients & Big Businesses

We highly appreciate the kind and stellar feedback we receive from our customers. Delivering the best is our goal! MilesWeb is rated Excellent out of 5 based on reviews. Read more reviews.

Excellent
Based on reviews
2 hours ago
Perfect and Valuable Server + ...
I am using MilesWeb Servers, The main thing which I getting are continuous support over everything w...
Gunjan Makwana
4 hours ago
Milesweb is superb Hosting pro...
Milesweb is superb Hosting provider ever, their Support team is amazing!!!...
Abhishek Singh
15 hours ago
Great support in great timing...
We need urgent assistance on changes in a primary domain on our client's Cpanel accounts and reached...
Riyaju Deen
21 hours ago
Best Website Hosting platform ...
I was new on MilesWeb. And needed help on multiple areas from setting up to getting started with cre...
Harshada
1 days ago
Very quick and helpful assista...
Very quick and helpful assistance. Support person listened properly and provided a nice solution....
Narendra
1 days ago
the team is very supportive th...
the team is very supportive though at times effort needs to be made to make understand the problem s...
Suree Sharma
1 days ago
I am using miles web for 3plus...
I am using miles web for 3plus years, very quick and perfect support by the team, they helped me man...
Sri Raghav
2 days ago
The service is good...
The service is good. They are answering with patience and doing the needful as soon as possible....
MR
2 days ago
Perfect and Valuable Server + ...
I am using MilesWeb Servers, The main thing which I getting are continuous support over everything w...
Gunjan Makwana
3 days ago
Very quick and helpful assista...
Very quick and helpful assistance. Support person listened properly and provided a nice solution....
Narendra
4 days ago
positively helped me with find...
positively helped me with finding insecure content on my website causing SSL to not work properly on...
Thaviraj Junglee
4 days ago
Exceptional support, Truly Pra...
I had opted for the basic wordpress hosting plan as I intended to experiment with various plug-ins. ...
Aseem Chandna