0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ConoHaのKUSANAGIテンプレートなCentOSで.html拡張子でPHP有効化するメモ

Last updated at Posted at 2017-01-22

ConoHaで提供されているKUSANAGI WordPressが動くテンプレイメージで、WordPress以外のPHPスクリプトを動かしたくて苦戦。同イメージではPHPはFastCGI経由で動いていて、通常のAddHandlerに追記するなどの方法ではダメ。

php-fpm側の設定(/etc/php-fpm.d/www.conf)で、

security.limit_extensions = .php .html

などとすればいいというところまで突き止めたんだけどなぜかこれもダメ。

しかし散々悩んだ挙げ句、よくみたら、/etc/php7-fpm.d/というディレクトリが他にあり、こちらのwww.conf
で上記設定を書き足せばいいというだけでした...(PHP7環境)

ついでにこの環境でのphp.iniは、/etc/直下ではなく、/etc/php7.d/php.iniなのもメモ。

0
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?