SymfonyをさくらVPSでインストールしてたら以下のメッセージがでてエラーになった。。。
1 |
「Fatal error: Class 'DOMDocument' not found in /home/hogehoge/public_html/symfony/vendor/symfony/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php on line 214 」 |
どうやら「php-xml」がインストールされてないと出るみたいなので、
インストールします。
インストール後、httpdを再起動します。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
$ sudo yum install php-xml Loaded plugins: fastestmirror, priorities, security Loading mirror speeds from cached hostfile * base: ftp.iij.ad.jp * epel: ftp.kddilabs.jp * extras: ftp.iij.ad.jp * rpmforge: ftp.kddilabs.jp * updates: ftp.iij.ad.jp 1973 packages excluded due to repository priority protections Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package php-xml.x86_64 0:5.3.3-23.el6_4 will be installed --> Processing Dependency: libxslt.so.1(LIBXML2_1.0.24)(64bit) for package: php-xml-5.3.3-23.el6_4.x86_64 --> Processing Dependency: libxslt.so.1(LIBXML2_1.0.22)(64bit) for package: php-xml-5.3.3-23.el6_4.x86_64 --> Processing Dependency: libxslt.so.1(LIBXML2_1.0.18)(64bit) for package: php-xml-5.3.3-23.el6_4.x86_64 --> Processing Dependency: libxslt.so.1(LIBXML2_1.0.13)(64bit) for package: php-xml-5.3.3-23.el6_4.x86_64 --> Processing Dependency: libxslt.so.1(LIBXML2_1.0.11)(64bit) for package: php-xml-5.3.3-23.el6_4.x86_64 --> Processing Dependency: libxslt.so.1()(64bit) for package: php-xml-5.3.3-23.el6_4.x86_64 --> Processing Dependency: libexslt.so.0()(64bit) for package: php-xml-5.3.3-23.el6_4.x86_64 --> Running transaction check ---> Package libxslt.x86_64 0:1.1.26-2.el6_3.1 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================================================================================================================================================ Package Arch Version Repository Size ================================================================================================================================================================================================================ Installing: php-xml x86_64 5.3.3-23.el6_4 updates 103 k Installing for dependencies: libxslt x86_64 1.1.26-2.el6_3.1 base 452 k Transaction Summary ================================================================================================================================================================================================================ Install 2 Package(s) Total download size: 555 k Installed size: 2.4 M Is this ok [y/N]: y Downloading Packages: (1/2): libxslt-1.1.26-2.el6_3.1.x86_64.rpm | 452 kB 00:00 (2/2): php-xml-5.3.3-23.el6_4.x86_64.rpm | 103 kB 00:00 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 2.7 MB/s | 555 kB 00:00 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Warning: RPMDB altered outside of yum. Installing : libxslt-1.1.26-2.el6_3.1.x86_64 1/2 Installing : php-xml-5.3.3-23.el6_4.x86_64 2/2 Verifying : libxslt-1.1.26-2.el6_3.1.x86_64 1/2 Verifying : php-xml-5.3.3-23.el6_4.x86_64 2/2 Installed: php-xml.x86_64 0:5.3.3-23.el6_4 Dependency Installed: libxslt.x86_64 0:1.1.26-2.el6_3.1 Complete! $ sudo /etc/init.d/httpd restart Stopping httpd: [ OK ] Starting httpd: [ OK ] |