You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
[root@localhost dreamstart]# composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for doctrine/orm v2.5.6 -> satisfiable by doctrine/orm[v2.5.6].
- doctrine/orm v2.5.6 requires ext-pdo * -> the requested PHP extension pdo is missing from your system.
Problem 2
- Installation request for phpunit/php-code-coverage 4.0.8 -> satisfiable by phpunit/php-code-coverage[4.0.8].
- phpunit/php-code-coverage 4.0.8 requires ext-dom * -> the requested PHP extension dom is missing from your system.
Problem 3
- Installation request for phpunit/phpunit 5.7.19 -> satisfiable by phpunit/phpunit[5.7.19].
- phpunit/phpunit 5.7.19 requires ext-dom * -> the requested PHP extension dom is missing from your system.
To enable extensions, verify that they are enabled in your .ini files:
- /etc/php.ini
- /etc/php.d/bz2.ini
- /etc/php.d/calendar.ini
- /etc/php.d/ctype.ini
- /etc/php.d/curl.ini
- /etc/php.d/exif.ini
- /etc/php.d/fileinfo.ini
- /etc/php.d/ftp.ini
- /etc/php.d/gettext.ini
- /etc/php.d/gmp.ini
- /etc/php.d/iconv.ini
- /etc/php.d/json.ini
- /etc/php.d/phar.ini
- /etc/php.d/shmop.ini
- /etc/php.d/simplexml.ini
- /etc/php.d/sockets.ini
- /etc/php.d/tokenizer.ini
- /etc/php.d/xml.ini
- /etc/php.d/zip.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
======================================================================
http://stackoverflow.com/questions/35815376/to-enable-extensions-verify-that-they-are-enabled-in-those-ini-files-vagrant
yum install -y php56w php56w-opcache php56w-xml php56w-mcrypt php56w-gd php56w-devel php56w-mysql php56w-intl php56w-mbstring php56w-bcmath
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 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | [root@localhost ~]# yum install -y php56w php56w-opcache php56w-xml php56w-mcrypt php56w-gd php56w-devel php56w-mysql php56w-intl php56w-mbstring php56w-bcmath Loaded plugins: fastestmirror, langpacks Repository pgdg95 is listed more than once in the configuration Repository pgdg95-source is listed more than once in the configuration Loading mirror speeds from cached hostfile * base: mirrors.aliyun.com * epel: mirror.lzu.edu.cn * extras: mirrors.sohu.com * updates: mirrors.sohu.com * webtatic: sp.repo.webtatic.com Package php56w-5.6.30-1.w7.x86_64 already installed and latest version Resolving Dependencies --> Running transaction check ---> Package php56w-bcmath.x86_64 0:5.6.30-1.w7 will be installed ---> Package php56w-devel.x86_64 0:5.6.30-1.w7 will be installed --> Processing Dependency: pcre-devel(x86-64) for package: php56w-devel-5.6.30-1.w7.x86_64 ---> Package php56w-gd.x86_64 0:5.6.30-1.w7 will be installed --> Processing Dependency: libt1.so.5()(64bit) for package: php56w-gd-5.6.30-1.w7.x86_64 ---> Package php56w-intl.x86_64 0:5.6.30-1.w7 will be installed ---> Package php56w-mbstring.x86_64 0:5.6.30-1.w7 will be installed ---> Package php56w-mcrypt.x86_64 0:5.6.30-1.w7 will be installed --> Processing Dependency: libmcrypt.so.4()(64bit) for package: php56w-mcrypt-5.6.30-1.w7.x86_64 ---> Package php56w-mysql.x86_64 0:5.6.30-1.w7 will be installed --> Processing Dependency: php56w-pdo(x86-64) for package: php56w-mysql-5.6.30-1.w7.x86_64 ---> Package php56w-opcache.x86_64 0:5.6.30-1.w7 will be installed ---> Package php56w-xml.x86_64 0:5.6.30-1.w7 will be installed --> Running transaction check ---> Package libmcrypt.x86_64 0:2.5.8-13.el7 will be installed ---> Package pcre-devel.x86_64 0:8.32-15.el7_2.1 will be installed ---> Package php56w-pdo.x86_64 0:5.6.30-1.w7 will be installed ---> Package t1lib.x86_64 0:5.1.2-14.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: php56w-bcmath x86_64 5.6.30-1.w7 webtatic 39 k php56w-devel x86_64 5.6.30-1.w7 webtatic 2.5 M php56w-gd x86_64 5.6.30-1.w7 webtatic 157 k php56w-intl x86_64 5.6.30-1.w7 webtatic 199 k php56w-mbstring x86_64 5.6.30-1.w7 webtatic 545 k php56w-mcrypt x86_64 5.6.30-1.w7 webtatic 30 k php56w-mysql x86_64 5.6.30-1.w7 webtatic 124 k php56w-opcache x86_64 5.6.30-1.w7 webtatic 110 k php56w-xml x86_64 5.6.30-1.w7 webtatic 170 k Installing for dependencies: libmcrypt x86_64 2.5.8-13.el7 epel 99 k pcre-devel x86_64 8.32-15.el7_2.1 base 479 k php56w-pdo x86_64 5.6.30-1.w7 webtatic 114 k t1lib x86_64 5.1.2-14.el7 base 166 k Transaction Summary ================================================================================ Install 9 Packages (+4 Dependent packages) Total download size: 4.7 M Installed size: 22 M Downloading packages: (1/13): pcre-devel-8.32-15.el7_2.1.x86_64.rpm | 479 kB 00:00 warning: / var /cache/yum/x86_64/7/epel/packages/libmcrypt-2.5.8-13.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY Public key for libmcrypt-2.5.8-13.el7.x86_64.rpm is not installed (2/13): libmcrypt-2.5.8-13.el7.x86_64.rpm | 99 kB 00:01 (3/13): php56w-bcmath-5.6.30-1.w7.x86_64.rpm | 39 kB 00:01 (4/13): php56w-gd-5.6.30-1.w7.x86_64.rpm | 157 kB 00:00 (5/13): php56w-intl-5.6.30-1.w7.x86_64.rpm | 199 kB 00:00 (6/13): php56w-mbstring-5.6.30-1.w7.x86_64.rpm | 545 kB 00:01 (7/13): php56w-mcrypt-5.6.30-1.w7.x86_64.rpm | 30 kB 00:00 (8/13): php56w-mysql-5.6.30-1.w7.x86_64.rpm | 124 kB 00:00 (9/13): php56w-opcache-5.6.30-1.w7.x86_64.rpm | 110 kB 00:00 (10/13): php56w-pdo-5.6.30-1.w7.x86_64.rpm | 114 kB 00:00 (11/13): t1lib-5.1.2-14.el7.x86_64.rpm | 166 kB 00:00 (12/13): php56w-xml-5.6.30-1.w7.x86_64.rpm | 170 kB 00:00 (13/13): php56w-devel-5.6.30-1.w7.x86_64.rpm | 2.5 MB 00:08 -------------------------------------------------------------------------------- Total 552 kB/s | 4.7 MB 00:08 Retrieving key from file: ///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 Importing GPG key 0x352C64E5: Userid : "Fedora EPEL (7) <epel@fedoraproject.org>" Fingerprint: 91e9 7d7c 4a5e 96f1 7f3e 888f 6a2f aea2 352c 64e5 Package : epel-release-7-5.noarch (installed) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : libmcrypt-2.5.8-13.el7.x86_64 1/13 Installing : pcre-devel-8.32-15.el7_2.1.x86_64 2/13 Installing : php56w-pdo-5.6.30-1.w7.x86_64 3/13 Installing : t1lib-5.1.2-14.el7.x86_64 4/13 Installing : php56w-gd-5.6.30-1.w7.x86_64 5/13 Installing : php56w-mysql-5.6.30-1.w7.x86_64 6/13 Installing : php56w-devel-5.6.30-1.w7.x86_64 7/13 Installing : php56w-mcrypt-5.6.30-1.w7.x86_64 8/13 Installing : php56w-intl-5.6.30-1.w7.x86_64 9/13 Installing : php56w-mbstring-5.6.30-1.w7.x86_64 10/13 Installing : php56w-bcmath-5.6.30-1.w7.x86_64 11/13 Installing : php56w-xml-5.6.30-1.w7.x86_64 12/13 Installing : php56w-opcache-5.6.30-1.w7.x86_64 13/13 Verifying : php56w-opcache-5.6.30-1.w7.x86_64 1/13 Verifying : php56w-gd-5.6.30-1.w7.x86_64 2/13 Verifying : t1lib-5.1.2-14.el7.x86_64 3/13 Verifying : php56w-devel-5.6.30-1.w7.x86_64 4/13 Verifying : php56w-mcrypt-5.6.30-1.w7.x86_64 5/13 Verifying : php56w-pdo-5.6.30-1.w7.x86_64 6/13 Verifying : php56w-mysql-5.6.30-1.w7.x86_64 7/13 Verifying : php56w-xml-5.6.30-1.w7.x86_64 8/13 Verifying : pcre-devel-8.32-15.el7_2.1.x86_64 9/13 Verifying : php56w-bcmath-5.6.30-1.w7.x86_64 10/13 Verifying : php56w-mbstring-5.6.30-1.w7.x86_64 11/13 Verifying : libmcrypt-2.5.8-13.el7.x86_64 12/13 Verifying : php56w-intl-5.6.30-1.w7.x86_64 13/13 Installed: php56w-bcmath.x86_64 0:5.6.30-1.w7 php56w-devel.x86_64 0:5.6.30-1.w7 php56w-gd.x86_64 0:5.6.30-1.w7 php56w-intl.x86_64 0:5.6.30-1.w7 php56w-mbstring.x86_64 0:5.6.30-1.w7 php56w-mcrypt.x86_64 0:5.6.30-1.w7 php56w-mysql.x86_64 0:5.6.30-1.w7 php56w-opcache.x86_64 0:5.6.30-1.w7 php56w-xml.x86_64 0:5.6.30-1.w7 Dependency Installed: libmcrypt.x86_64 0:2.5.8-13.el7 pcre-devel.x86_64 0:8.32-15.el7_2.1 php56w-pdo.x86_64 0:5.6.30-1.w7 t1lib.x86_64 0:5.1.2-14.el7 Complete! |
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· DeepSeek 开源周回顾「GitHub 热点速览」
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
2016-05-16 jdbc连接数据库的步骤