LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   html page shows garbled text (https://www.linuxquestions.org/questions/linux-server-73/html-page-shows-garbled-text-633963/)

kaplan71 04-08-2008 12:24 PM

html page shows garbled text
 
Hi there --

I am trying to run the Conquest DICOM 1.4.14 web interface on our system. The server in question is running Fedora Core 5 with the bundled Apache 2.2.0 release along with php 5.1.4, and the Java 1.4.2 release.

The name of the index file is dgate.html, and it is located in the /var/www/cgi-bin directory. The dgate.html file is also a binary file as evidenced by the strings command.

Apache has been configured so that the DocumentRoot is the /var/www/cgi-bin directory. The reasoning for this is due to the installation script of the DICOM web interface which places the dgate.html and its associated files in a cgi-bin directory.

Whenever someone tries to access the file from a web browser either locally or from a remote computer, there is only garbled text shown on-screen. An excerpt of what is seen is shown below:

Quote:

ELF �E���1ЉE�U���EԈ�E����E���1Ћ��� �E���1ЉE�E�m�}
What do I need to do to correct this problem, and be able to see the dgate.html file properly? Thanks.

bathory 04-09-2008 02:14 AM

I guess you need to add
Code:

AddHandler cgi-script .html
inside the:
<Directory /var/www/cgi-bin> ...</Directory> section of your httpd.conf


All times are GMT -5. The time now is 12:45 PM.