Site not displaying but rather downloading

前端 未结 4 846
被撕碎了的回忆
被撕碎了的回忆 2021-01-23 08:14

I am working on a site and just published it to the client\'s domain, but when I try to access the root or subpages, they download to my computer rather than displaying as the p

4条回答
  •  野性不改
    2021-01-23 08:25

    The server is not serving the php pages as a 'text/html' or 'text/xhtml' MIME type. Like what the rest said, PHP might not be installed or not configured properly.

    A quick way (not 100% though) to check if PHP is installed is to check the HTTP response header. Using Firebug's NET Tab on Firefox, you can look out for any 'server' value in the response header. Typically PHP version (if installed) will be included together with the web server type/version.

    E.g. Apache/2.2.13 (Unix) mod_ssl/2.2.13 PHP/5.2.9

提交回复
热议问题