Python problems

Status
Not open for further replies.

MayhemzDude

New Member
Messages
2
Reaction score
0
Points
0
I've got a problem with Python. I always get this error when I go to http://onepieceworld.exofire.net/ :
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@onepieceworld.exofire.net and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.


My .htaccess file is:
Code:
# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
<Directory />
  Options FollowSymLinks +ExecCGI 
  AllowOverride None
</Directory> 
AuthName onepieceworld.exofire.net
AuthUserFile /home/marac/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/marac/public_html/_vti_pvt/service.grp
AddHandler cgi-script .cgi .pl .py
and my .py file is:
Code:
#!/usr/bin/python
import cgi

print "Content-Type: text/html\n\n"

print "Python - OK"
 

descalzo

Grim Squeaker
Community Support
Messages
9,372
Reaction score
326
Points
83
My .htaccess file is:
Code:
# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
[B]<Directory />[/B]
[B]  Options FollowSymLinks +ExecCGI [/B]
[B]  AllowOverride None[/B]
[B]</Directory>[/B] 
AuthName onepieceworld.exofire.net
AuthUserFile /home/marac/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/marac/public_html/_vti_pvt/service.grp
AddHandler cgi-script .cgi .pl .py

Remove the bolded part from the file and see if it works. Make sure .py chmod'ed to 755
 
Status
Not open for further replies.
Top