Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8827501
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T07:23:10+00:00 2026-06-14T07:23:10+00:00

Could you help me read some strings from MySQL and show them in my

  • 0

Could you help me read some strings from MySQL and show them in my web browser.
This is just for my localhost.

I receive the following:

Internal Server Error

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

Please contact the server administrator, [no address given] 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.

As for my file hello.py, it is situated here:

root@ubuntu:/var/www/test1.my/www/cgi-bin# ls -l
total 8

It’s properties are as follows:

-rwxr-xr-x 1 root root 465 Nov 2 23:30 hello.py
-rwxr-xr-x 1 root root 186 Nov 2 15:59 hello.py~

Could you give me some hint what to fix?

These are my configuration files

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T07:23:12+00:00Added an answer on June 14, 2026 at 7:23 am

    From what I see, you need to output an empty line after writing your Content-Type-header in hello.py:

    #!/usr/bin/env python
    # -*- coding: utf-8 -*-
    
    import MySQLdb
    print "Content-Type: text/html\n"                  
    #   newline after headers!    ^^ 
    print "<html><head><title>Книги</title></head>"
    ...
    

    Also, you should check the apache error logs (usually at /var/log/apache/error.log) to get more information about the error.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need some help in converting my script from using mysql to mysqli I
Hope someone could help me with this: I would like to have a column
Just wondering if you could help wanting to produce an activity stream in Java,
I have this problem. I read with BufferedReader text from one system file, this
I could use some help. After a few frustrating days of trial and error,
i am trying to read in some data from an excel: If (FileUpload1.PostedFile.ContentType =
Need some help from Oracle app developers out there: I have an C#.NET 4.0
Hi I posted this earlier and got some help but still no working solution.
I wan't to load some data from my XML file using this function: public
I need help using regular expressions. Ihave read the Java Regex notes, but could

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.