Python not working. it's return 503 error.

Operating System & Version
CLOUDLINUX
cPanel & WHM Version
86.0.17

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,304
363
Houston
What is noted in the apache error logs when you receive this message? If you don't have access to them via SSH you can view them from cPanel by going to cPanel>>Metrics>>Errors
 

ttmotshabi

Registered
Apr 16, 2021
3
0
1
South Africa
cPanel Access Level
Website Owner
Having the same issue, my error log ouput
Code:
2021-04-16 09:54:55.833936 [INFO] [27938] [102.65.192.67:50675:HTTP2-3] File not found [/home/qraircoz/public_html/404.shtml]
2021-04-16 09:54:55.375362 [INFO] [27938] [102.65.192.67:50675:HTTP2-1] File not found [/home/qraircoz/public_html/404.shtml]
2021-04-16 09:54:55.375231 [INFO] [27938] [102.65.192.67:50675:HTTP2-1] File not found [/home/qraircoz/public_html/index.php]
 

ttmotshabi

Registered
Apr 16, 2021
3
0
1
South Africa
cPanel Access Level
Website Owner
Yes I'm trying to deploy my django app but keep getting that error. I also saw that its trying to get an old wordpress site and I updated the .htaccess file accordingly but still same error
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,570
2,612
363
cPanel Access Level
Root Administrator
Our support for Django and similar applications is extremely limited. The only thing I can recommend for that is our Node.JS guide as that includes the Passenger configuration:


Can you work through that and see if that helps get this working?
 

ttmotshabi

Registered
Apr 16, 2021
3
0
1
South Africa
cPanel Access Level
Website Owner
Hi I managed to figure out the problem, well sort of.

I actually deleted the .htaccess file because it renders a new one when you install a new dependency and also the entire app with the virtualenv folder and started from scratch and that did the trick.
 

accafella

Active Member
Jan 1, 2018
27
5
3
cambridge uk
cPanel Access Level
Root Administrator
Our support for Django and similar applications is extremely limited. The only thing I can recommend for that is our Node.JS guide as that includes the Passenger configuration:


Can you work through that and see if that helps get this working?
HI @cPRex, sorry to butt into this thread. I too am trying to get Django to function on my cpanel server but the instructions to install a node.js fall down a bit for Django at the stage where there is no easy apache module for Django.

I refuse to accept the evidence that I am wasting my time trying to get Django to work on Cpanel, I've been around the block trying to get help.
FYI, I don't have Cloudlinux.

Thanks, I hope you can advise,
Steve G
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,570
2,612
363
cPanel Access Level
Root Administrator
@accafella - unfortunately I don't have any more details than what you've been able to find on the web. We already don't provide support for Node.JS as outlined here:


and Django is even one step further removed from that.

I have heard reports that people have been successful with these steps to get a specific Django app deployed:


but you'd need to test and verify that on your machine. I'm sorry I can't offer more specifics.