I am getting this error:
Server error!
The server encountered an internal error and was unable to complete your request.
Error message: End of script output before headers: python.py
If you think this is a server error, please contact the webmaster.
Error 500
192.168.64.2 Apache/2.4.41 (Unix) OpenSSL/1.1.1d PHP/7.4.1 mod_perl/2.0.8-dev Perl/v5.16.3*
I have added .py to the addhandler AddHandler cgi-script .cgi .pl .py ScriptInterpreterSource Registry-Strict
I also have pip and pymysql installed and am using python 3.8.
I have also have the permissions set to chmod 755 sudo chmod 755
have also tried chmod 755, +x but no luck I have also checked the error logs but no clear problem
btw I am using Mac
Heres my code:
#!/usr/bin/local/env python3
print ('Content-type: text/html\r\n')
print ('\r\n')
print ()
print ('<html>')
print ('<head>')
print ('</head>')
print ('<body>')
print ('Hello Python')
print ('</body>')
print ('</html>')