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?

More than 5 years have passed since last update.

phpenvで5系と7系を使用する場合の注意点

Posted at

現象

phpenvで5.6と7.2を切り替えて確認しようとしたところ、
httpdがstartに失敗するようになりました。

原因

phpenvでインストールすると、自動で/etc/httpd/conf/httpd.confに

LoadModule php7_module        /usr/lib64/httpd/modules/libphp7.so
LoadModule php5_module        /usr/lib64/httpd/modules/libphp5.so

が書かれていました。

5系と7系を切り替える際はどちらかをコメントアウトする必要があります。

コメントアウトするとstartでき、phpが変わっているのを確認できました。

/etc/httpd/conf.d/php.confにも書いてあるので、コメントアウトしてください。

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?