目前共有4篇帖子。 內容轉換:不轉換▼
 
點擊 回復
621 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)
 

本帖信息

點擊數:621 回複數:3
評論數: ?
作者:巨大八爪鱼
最後回復:180.84.33.*
最後回復時間:2017-6-28 22:30
 
©2010-2024 Arslanbar Ver2.0
除非另有聲明,本站採用共享創意姓名標示-相同方式分享 3.0 Unported許可協議進行許可。