php 5.5.5 not working with Apache 2.4.7

前端 未结 5 476
被撕碎了的回忆
被撕碎了的回忆 2021-01-06 15:31

OK, so recently I decided to upgrade my server. I downloaded apache 2.4.7 "httpd-2.4.7-win32-VC11.zip" and extracted all the files, configured them for my use and

5条回答
  •  有刺的猬
    2021-01-06 16:04

    When you say that you can see the code, you mean the browser prompts you to download the .php file right? Or does it display it onscreen? If its prompting to download the file, usually that means there's an Apache Handler issue. Try moving your AddType rule in between the mime_module conditional tags

    
        TypesConfig conf/mime.types
        # comment lines not shown
        AddType application/x-compress .Z
        AddType application/x-gzip .gz .tgz
        AddType application/x-httpd-php .php    
    
    

提交回复
热议问题