LoginSignup
4
3

More than 5 years have passed since last update.

CentOS6にremiリポジトリからPHP7をインストールするときはremi-php70をつける

Posted at

PHP7のインストールはすんなりと通るが、
XML関係の関数が見当たらず、下記のエラーが出てしまう状態に。

Call to undefined function xml_parser_create() 〜

libxml2やphp-xmlをyumからインストールしても直らず…。
しかし、phpinfo()をよく見てみると、xml関連のライブラリが読み込まれておらず、
別のバージョン(?)のものがインストールされていたもよう。

どうやらリポジトリ指定のオプション(enablerepo)に、
remiだけでなくremi-php70もつけないといけないみたいだった。

最終的に下記のような形でインストール。

$ yum install php php-common php-cli php-mbstring php-mcrypt php-xml php-xmlrpc php-pdo php-mysqlnd --enablerepo=remi,remi-php70

30分くらい悩んだ。

4
3
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
4
3