目前共有4篇帖子。 内容转换:不转换▼
 
点击 回复
638 3
虽然Fedora系统里的软件始终是保持最新的,但是里面所带的php仍然还是5.6的版本
一派护法 十九级
1楼 发表于:2016-8-25 11:15
PHP Version 5.6.24
Build Date Jul 21 2016 05:05:45

我估计是因为fedora考虑到了兼容性的问题,毕竟php7删掉了mysql扩展,贸然升级会导致很多以前的网站无法运行。。。
一派护法 十九级
2楼 发表于:2017-1-29 17:11

现在是PHP Version 5.6.29

编译时间Dec 8 2016 09:18:01

180.84.33.*
3楼 发表于:2017-6-28 22:30
现在是PHP Version 5.6.30
编译时间Jan 19 2017 07:44:07
180.84.33.*
4楼 发表于:2017-6-28 22:30
[oct1158@oct1158-fedora ~]$ cd /var/www/html
[oct1158@oct1158-fedora html]$ sudo vim info.php
[sudo] password for oct1158:
[oct1158@oct1158-fedora html]$ sudo dnf install php
Last metadata expiration check: 3:35:35 ago on Wed Jun 28 18:46:03 2017.
Dependencies resolved.
================================================================================
 Package               Arch          Version               Repository      Size
================================================================================
Installing:
 php                   x86_64        5.6.30-1.fc24         updates        2.7 M
 php-cli               x86_64        5.6.30-1.fc24         updates        4.1 M
 php-common            x86_64        5.6.30-1.fc24         updates        1.1 M
 php-pecl-jsonc        x86_64        1.3.10-1.fc24         updates         57 k

Transaction Summary
================================================================================
Install  4 Packages

Total download size: 7.9 M
Installed size: 30 M
Is this ok [y/N]: y
Downloading Packages:
(1/4): php-common-5.6.30-1.fc24.x86_64.rpm      927 kB/s | 1.1 MB     00:01    
(2/4): php-pecl-jsonc-1.3.10-1.fc24.x86_64.rpm  459 kB/s |  57 kB     00:00    
(3/4): php-5.6.30-1.fc24.x86_64.rpm             1.1 MB/s | 2.7 MB     00:02    
(4/4): php-cli-5.6.30-1.fc24.x86_64.rpm         837 kB/s | 4.1 MB     00:04    
--------------------------------------------------------------------------------
Total                                           1.2 MB/s | 7.9 MB     00:06     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Installing  : php-pecl-jsonc-1.3.10-1.fc24.x86_64                         1/4
  Installing  : php-common-5.6.30-1.fc24.x86_64                             2/4
  Installing  : php-cli-5.6.30-1.fc24.x86_64                                3/4
  Installing  : php-5.6.30-1.fc24.x86_64                                    4/4
  Verifying   : php-5.6.30-1.fc24.x86_64                                    1/4
  Verifying   : php-cli-5.6.30-1.fc24.x86_64                                2/4
  Verifying   : php-common-5.6.30-1.fc24.x86_64                             3/4
  Verifying   : php-pecl-jsonc-1.3.10-1.fc24.x86_64                         4/4

Installed:
  php.x86_64 5.6.30-1.fc24             php-cli.x86_64 5.6.30-1.fc24            
  php-common.x86_64 5.6.30-1.fc24      php-pecl-jsonc.x86_64 1.3.10-1.fc24     

Complete!
[oct1158@oct1158-fedora html]$ sudo dnf install php7
Last metadata expiration check: 3:36:07 ago on Wed Jun 28 18:46:03 2017.
No package php7 available.
Error: Unable to find a match.
[oct1158@oct1158-fedora html]$ sudo dnf install php-7
Last metadata expiration check: 3:36:12 ago on Wed Jun 28 18:46:03 2017.
No package php-7 available.
Error: Unable to find a match.
[oct1158@oct1158-fedora html]$ sudo systemctl restart httpd.service

回复帖子

内容:
用户名: 您目前是匿名发表
验证码:
(快捷键:Ctrl+Enter)
 

本帖信息

点击数:638 回复数:3
评论数: ?
作者:巨大八爪鱼
最后回复:180.84.33.*
最后回复时间:2017-6-28 22:30
 
©2010-2024 Arslanbar Ver2.0
除非另有声明,本站采用知识共享署名-相同方式共享 3.0 Unported许可协议进行许可。