目前共有4篇帖子。
雖然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

3樓 180.84.33.* 2017-6-28 22:30
現在是PHP Version 5.6.30
編譯時間Jan 19 2017 07:44:07
4樓 180.84.33.* 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

回復帖子

內容:
用戶名: 您目前是匿名發表
驗證碼:
 
 
©2010-2024 Arslanbar [手機版] [桌面版]
除非另有聲明,本站採用創用CC姓名標示-相同方式分享 3.0 Unported許可協議進行許可。