Can I use Python scripts on Web Hosting Hub

Asked by:
Zhenguo / 28 Points
Time:
2012-04-02 10:37 am EST
Category:
Website Design
Hits:
1,920
Does the host support Python Script ? You provided Helloword.py page returns an error as follows:
Internal Server Error

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

Please contact the server administrator, xxxxr @ xxx 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 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

So, can you help me?

To ask this user for more information, please first login.

To submit an answer, please login.

Best answer chosen by Web Hosting Hub staff

0

ChristiNi
Staff
13,688 Points
2012-04-02 11:32 am EST
Hello Zhenguo,

I'm sorry you're having trouble with your Hello World Python script. It took some investigation, but I've narrowed this down to most likely being due to either the editor you are using on your local computer to create and edit your scripts or the FTP transfer mode your FTP client is using. I tested this by creating a test file in your cgi-bin named hellotest.py and which is working as expected, so the issue is not with the server itself.

I would recommend checking your FTP transfer mode (should be binary for our Linux based servers) and/or using a different editor for creating and editing your files. I found some helpful information on this in the following article online (specifically items 3 & 4 under Problems outside the script):

500 Internal Server Error in Python scripts

Please let us know if you have any additional questions or need further assistance.

Regards,

Christi N.

To submit a comment on this answer, please first login.

Want to share this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.