0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

MAMP 7.2.0 (Mac/ARM) htmlファイルでphpを実行

Posted at

これまで(6.9.0とか)は.htaccessに

AddType application/x-httpd-php .php .phtml .html .htm

で動いていましたが

AddHandler php-fastcgi .html .htm

で動きました。

.htaccessでリダイレクトしていると「500 Internal Server Error」になったので、設定ファイル
/Applications/MAMP/conf/apache/httpd.conf
内以下のコメントアウトを解除しmod_rewriteを有効にしましょう。

LoadModule rewrite_module modules/mod_rewrite.so

ありがとうございました。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?