Site not displaying but rather downloading

前端 未结 4 834
被撕碎了的回忆
被撕碎了的回忆 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:41

    yes, you should ask your client to make sure php is installed.

    If it is installed and you are using apache.

    make sure your httpd.conf has something like this.

    AddModule mod_php5.c
    
        DirectoryIndex index.php index.html
    
    
        AddType application/x-httpd-php .php
        AddType application/x-httpd-php-source .phps
    
    

    you may ask your client to visit here for proper php configuration for different OS.

提交回复
热议问题