asp.net - PHP code returned, instead of displaying the correct output -


good evening everyone. let's go straight point. have weird client/server configuration, have replicate: have iis machine (v. 8.5) used run old asp classic code, , linux machine running apache2, php, postgresql. iis machine 1 directly accessible web end users. used show them output provided linux server real content provider, physically located on internal network. know, it's weird, had no part in ;). anyway should replicate exact situation on local machine, , i'm simulating this, using ubuntu 15.04 netinst vm on windows10 machine. both default apache , php-info page correctly displayed windows browser. asp pages on iis more or less this:

server.scripttimeout = 360 select case request.servervariables("request_method") case "get"  strrequest = request.querystring case "post" strrequest = request.form end select strurl = "http://linuxserver/corrispondingdestinationpage.php?" & strrequest dim objhttp set objhttp = server.createobject("msxml2.serverxmlhttp") objhttp.open "get", strurl, false objhttp.send "" response.contenttype = objhttp.getresponseheader("content-type") response.binarywrite objhttp.responsebody set objhttp = nothing 

they should display output provided php counterparts on linux server (mostly user tables , stuff that). thing on local reproduction of system, instead of getting output, i'm receiving directly raw php code vm. have previous experience in configuring standard lamp servers, i'm missing on configuration of both machines, iis , linux vm. need install specific functionalities on iis, or specific modules on linux machine? thank in advance time. best glb

first edit: i'm making tries in order understand problem. while experimenting, i've discovered if access php pages directly in vm, browser displays part of php script of page. if access system should (from iis index page), instead, fill debug variable in order understand going on. in way variable fills whole raw php code of page, called asp page. in every case seems php processor not functioning should.


Comments