0

i run my python file on web browser but i have some error can u help me solve them

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log. Apache/2.4.18 (Ubuntu) Server at localhost Port 80

2
  • 2
    Look into the server logs. There are several reasons why this could happen (often seen: file is not executable (755), not transferred in ASCII mode from windows machines or no Content-Type is set by the script) Commented Aug 16, 2016 at 14:21
  • where i can look my server log. on ubuntu 16.04 Commented Aug 16, 2016 at 14:23

1 Answer 1

2

you can find your apache logs in this directory /var/log/apache/. Error 500 usually means there is a server error. If you can't find the error in these logs, then try to use verbose logging.

Sign up to request clarification or add additional context in comments.

2 Comments

script output before headers: hello.py [Tue Aug 16 20:42:30.184922 2016] [cgid:error] [pid 5256:tid 3074226752] (13)Permission denied: AH01241: exec of '/var/www/html/hello.py' failed can u help me
It says it right there. Permission denied. That means that your web user doesn't have the right permissions. take a look here link

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.