Jump to content

[Solved] Please upgrade error logs in cPanel


man95

Recommended Posts

Hello
 
I think error logs in cPanel is give me too little information about errors that I face. Sometimes I check the errors in my PC, but when everything is good in my PC, there are still error in Heliohost server that I dont know what exactly is it, because error logs only tell me about 404.shtml file not found.
 
Please upgrade the error logs, so I know what the error in my program. Or, any other way to check the error like in Python IDLE?
 
Warm regards
 
PS : I use Tommy server, and my program at http://muhamm10.heliohost.org/helio.py

 

 

Link to comment
Share on other sites

  • 4 months later...

what is closest application to python that heliohost use? so i can check where the problem is in my PC?

I use python 3.6.3 on Windows 7, I run my script there, and everything is run well, but when I upload it yo heliohost, I always get error message

Edited by man95
Link to comment
Share on other sites

I know, Python 2.7 also installed at Python. I use Python 2.7 on Windows 7 and run CGIHTTPServer, and it is OK. When I upload my code to Heliohost, it is give me error, altough I've add shebang #!/usr/bin/python2.7.

 

I inspect my code, the problem is at end of my code, there is a "Tab". When I delete it, the code run well.

I run on my laptop the code with "Tab" at the end of my code, it is running well

 

I want to know what is the best way to get where the error line from my code, since there are different result between my laptop and heliohost

Link to comment
Share on other sites

Odds are, you're always going to have to change at least the shebang line and line endings if you develop on Windows for a linux target.

 

Other than that, adding your own logging to your code will typically help you locate what's blowing up and where. Have it log to your home folder somewhere so you can get the logs.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...