Magentoインストール中にmcrypt,gd,dom拡張がないというエラーが出たときの対処法

Magento をインストール中にでたエラーとその対処法を書いておきます。

エラーが出たのは、言語とロケーション設定の後です。

ここでContinueを押した後です。
2013-11-05 19_03_31-Magento Installation Wizard

エラー画面のキャプチャを取り忘れてしまったので申し訳ないのですが、下記のようなエラーです。

PHP extension “mcrypt” must be loaded.
PHP extension “gd” must be loaded.
PHP extension “dom” must be loaded.

開発環境はCentOS6で、php5.3が入っていました。

言われたとおり足りないextensionを下記のような感じでいれようと試みたのですが、

yum install php53-mcrypt

php-commonとphp53-commonがconflict(衝突)してしまいうまく入りません。

そこで、yumでphpをremoveしてから上記のコマンドをもう一度入れようとしたのですが、ファイルがないと言われました。Linuxに慣れている方は余裕で解決できるのでしょうが、初心者の私はここが大変苦労しました。。

結論から言うと、登録してあったリポジトリが古かったため、必要なextensionが手に入らなかったようです。

2013/11/6現在、最新のPHPは5.4なので、どうせならと、 php5.3を消して、5.4を入れることにしました。

リポジトリを登録して、まずは下記でphpを入れます。

yum install php

その後、mcrypt, gd, domを別個で入れていきます。

yum install php-mcrypt;
yum install php-gd;
yum install php-dom;

これでOKです。

2015年6月3日追記

centos7でphp-mcryptがインストールできない時の対処法

下記のようなエラーが出て、php-mcryptがインストールできない時は、yumではなく、wgetを使ってマニュアルでインストールを行います。

エラー
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
base: centos.someimage.com
extras: mirrors.mit.edu
updates: mirror.lug.udel.edu
No package php-mcrypt available.

[crayon]
wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
rpm -ivh epel-release-7-5.noarch.rpm
yum install --enablerepo="epel" php-mcrypt
[/crayon]

まだ同じエラーがでる場合は、下記コマンドでhttpdを再起動した後、ドメイン直下(インストールを始めるときにアクセスしたURL)に再度アクセスしてください。

service httpd restart


  1. warfarin, estrogens, hormonal forms of birth control e where can i get cheap cytotec tablets ASA advanced surface ablation, also known as PRK photorefractive keratectomy, was the most popular refractive procedure before LASIK entered the medical field

  2. bi0mv より:

    buy cheap clomiphene pill how can i get cheap clomiphene pill how can i get clomiphene tablets can i purchase cheap clomiphene without rx where can i buy cheap clomiphene without dr prescription get generic clomiphene online buy generic clomid price

  3. More peace pieces like this would make the web better.

  4. More posts like this would bring about the blogosphere more useful.

  5. jb8uh より:

    buy propranolol cheap - brand plavix 150mg buy methotrexate generic

  6. 0752x より:

    buy amoxicillin sale - valsartan 160mg uk cost combivent

  7. acyaz より:

    order azithromycin 250mg generic - purchase bystolic generic order bystolic 20mg sale

  8. b0j9b より:

    augmentin 625mg canada - https://atbioinfo.com/ buy ampicillin sale

  9. 9b3lc より:

    nexium without prescription - https://anexamate.com/ purchase nexium generic

  10. 2xefw より:

    purchase coumadin for sale - https://coumamide.com/ losartan 50mg cost

  11. vy4r9 より:

    generic mobic 7.5mg - moboxsin.com order mobic generic

  12. xcy26 より:

    buy deltasone 20mg without prescription - https://apreplson.com/ buy deltasone 5mg generic

  13. 0fbym より:

    cheap ed pills - buy ed pills paypal fda approved over the counter ed pills

  14. j0hid より:

    order cenforce 50mg generic - site buy generic cenforce 100mg

  15. 9ze5g より:

    when will teva’s generic tadalafil be available in pharmacies - https://ciltadgn.com/# cialis professional

  16. ConnieSag より:

    ranitidine uk - https://aranitidine.com/# ranitidine 150mg oral

  17. uztrc より:

    cialis instructions - benefits of tadalafil over sidenafil mint pharmaceuticals tadalafil reviews

  18. ConnieSag より:

    This is the kind of writing I truly appreciate. sitio web

  19. mfkc6 より:

    I couldn’t weather commenting. Profoundly written! https://buyfastonl.com/gabapentin.html

  20. ConnieSag より:

    This website really has all of the information and facts I needed about this subject and didn’t know who to ask. https://ursxdol.com/synthroid-available-online/

  21. 3kqs3 より:

    More text pieces like this would create the интернет better. https://prohnrg.com/product/lisinopril-5-mg/

  22. ConnieSag より:

    This is a topic which is in to my verve… Numberless thanks! Unerringly where can I find the connection details in the course of questions?
    purchase zantac for sale

  23. ConnieSag より:

    I am actually thrilled to glitter at this blog posts which consists of tons of profitable facts, thanks object of providing such data. http://zgyhsj.com/space-uid-978084.html

  24. ConnieSag より:

    buy dapagliflozin generic - site purchase dapagliflozin for sale

comment

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

© 2025 みる米技術部 Powered by AFFINGER5