server serving text pages instead of html

David Cullins

New Member
Joined
Sep 30, 2019
Messages
1
Reaction score
0
Credits
0
Running Linux Debian 9

Our new server just started is serving pages back as text or code ( in the case of perl scripts )
and not serving the pages as html. all pages were served for years under our old server.
apache does have a ForeType text/plain which ran fine under the old server.
All perl scripts pring Content-type text/html\n\n prior to printing any HtML.
for years we have been using Sublime editor which is a text only editor.

screen shots included.

Please advise.
 

Attachments

  • Screen Shot 2019-09-29 at 11.39.53 PM.png
    Screen Shot 2019-09-29 at 11.39.53 PM.png
    247 KB · Views: 402
  • Screen Shot 2019-09-29 at 11.40.47 PM.png
    Screen Shot 2019-09-29 at 11.40.47 PM.png
    115.7 KB · Views: 427


maybe you need the right perl modules

check on old server which perl packages installed with "dpkg --get-selections | grep perl" as root
 
Your server is serving script content instead of executing the script.
You need to install Apache CGI module and Perl CGI module. You will probably need to update you Apache configuration accordingly.
 

Members online


Top