MAMP not processing PHP

后端 未结 1 975
失恋的感觉
失恋的感觉 2021-01-29 05:55

So I was working with MAMP on my Macbook Pro (running OS X 10.10) and it was working fine, but now MAMP wont process PHP at all.

I have a file named \'index.php\' in /M

1条回答
  •  粉色の甜心
    2021-01-29 06:01

    The PHP documentation says that httpd.conf should have the following lines:

    
        # If php is turned on, we respect .php and .phps files.
        AddType application/x-httpd-php .php
        AddType application/x-httpd-php-source .phps
    
        # Since most users will want index.php to work we
        # also automatically enable index.php
        
            DirectoryIndex index.html index.php
        
    
    

    This block is missing from your file.

    Check the other steps at the above documentation link as well.

    0 讨论(0)
提交回复
热议问题