MAMP not processing PHP

后端 未结 1 974
失恋的感觉
失恋的感觉 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:

    <IfModule mod_php5.c>
        # 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
        <IfModule mod_dir.c>
            DirectoryIndex index.html index.php
        </IfModule>
    </IfModule>
    

    This block is missing from your file.

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

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