General support questions
-
Wstar
- Posts: 3
- Joined: 2016/04/07 14:49:35
Post
by Wstar » 2016/04/07 15:02:08
I'm having an issue installing PHP 7.
On CentOS6.7 and using PHP 5.5 currently.
I have following some posts on here using these two pages:
http://blog.remirepo.net/post/2016/02/1 ... HEL-Fedora
http://rpms.remirepo.net/wizard/
The first thing I try is to get the Repositories:
Code: Select all
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
wget http://rpms.remirepo.net/enterprise/remi-release-6.rpm
rpm -Uvh remi-release-6.rpm epel-release-latest-6.noarch.rpm
My next step is to run:
Code: Select all
yum-config-manager --enable remi-php70
Which I get these results:
Code: Select all
[remi-php70]
bandwidth = 0
base_persistdir = /var/lib/yum/repos/x86_64/6
baseurl =
cache = 0
cachedir = /var/cache/yum/x86_64/6/remi-php70
cost = 1000
enabled = True
enablegroups = True
exclude =
failovermethod = priority
gpgcadir = /var/lib/yum/repos/x86_64/6/remi-php70/gpgcadir
gpgcakey =
gpgcheck = True
gpgdir = /var/lib/yum/repos/x86_64/6/remi-php70/gpgdir
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
hdrdir = /var/cache/yum/x86_64/6/remi-php70/headers
http_caching = all
includepkgs =
keepalive = True
mdpolicy = group:primary
mediaid =
metadata_expire = 21600
metalink =
mirrorlist = http://rpms.remirepo.net/enterprise/6/php70/mirror
mirrorlist_expire = 86400
name = Remi's PHP 7.0 RPM repository for Enterprise Linux 6 - x86_64
old_base_cache_dir =
password =
persistdir = /var/lib/yum/repos/x86_64/6/remi-php70
pkgdir = /var/cache/yum/x86_64/6/remi-php70/packages
proxy = False
proxy_dict =
proxy_password =
proxy_username =
repo_gpgcheck = False
Next I run:
And get:
Code: Select all
remi-php70
No Packages marked for Update
Says I'm still on php 5.5 when I run:
I have tried restarting and no luck. Am I missing something?
-
remirepo
- Posts: 447
- Joined: 2014/09/21 09:07:12
- Location: France
-
Contact:
Post
by remirepo » 2016/04/07 15:46:03
Please paste full yum output.
Is the yum-plugin-priorities enabled ? (if yes, try to disable it)
P.S. usually better to ask 3rdparty repository question directly to the right place =>
http://forum.remirepo.net/
-
Wstar
- Posts: 3
- Joined: 2016/04/07 14:49:35
Post
by Wstar » 2016/04/07 16:14:00
Thank you, I will ask for some help there also. Here is my full command screen using yum
Code: Select all
root@x6gn-rc5v [~]# wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
--2016-04-07 07:55:35-- https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
Resolving dl.fedoraproject.org... 209.132.181.25, 209.132.181.27, 209.132.181.23, ...
Connecting to dl.fedoraproject.org|209.132.181.25|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 14540 (14K) [application/x-rpm]
Saving to: “epel-release-latest-6.noarch.rpm.1”
100%[====================================================================================================>] 14,540 --.-K/s in 0.05s
2016-04-07 07:55:36 (264 KB/s) - “epel-release-latest-6.noarch.rpm.1” saved [14540/14540]
root@x6gn-rc5v [~]# wget http://rpms.remirepo.net/enterprise/remi-release-6.rpm
--2016-04-07 07:55:49-- http://rpms.remirepo.net/enterprise/remi-release-6.rpm
Resolving rpms.remirepo.net... 195.154.241.117, 2001:bc8:33a1:100::1
Connecting to rpms.remirepo.net|195.154.241.117|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7615 (7.4K) [application/x-rpm]
Saving to: “remi-release-6.rpm.1”
100%[====================================================================================================>] 7,615 --.-K/s in 0s
2016-04-07 07:55:50 (314 MB/s) - “remi-release-6.rpm.1” saved [7615/7615]
root@x6gn-rc5v [~]# rpm -Uvh remi-release-6.rpm epel-release-latest-6.noarch.rpm
warning: remi-release-6.rpm: Header V3 DSA/SHA1 Signature, key ID 00f97f56: NOKEY
warning: epel-release-latest-6.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
Preparing... ########################################### [100%]
package epel-release-6-8.noarch is already installed
package remi-release-6.6-2.el6.remi.noarch is already installed
root@x6gn-rc5v [~]# yum-config-manager --enable remi-php70
Loaded plugins: fastestmirror
============================================================== repo: remi-php70 ==============================================================
[remi-php70]
bandwidth = 0
base_persistdir = /var/lib/yum/repos/x86_64/6
baseurl =
cache = 0
cachedir = /var/cache/yum/x86_64/6/remi-php70
cost = 1000
enabled = True
enablegroups = True
exclude =
failovermethod = priority
gpgcadir = /var/lib/yum/repos/x86_64/6/remi-php70/gpgcadir
gpgcakey =
gpgcheck = True
gpgdir = /var/lib/yum/repos/x86_64/6/remi-php70/gpgdir
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
hdrdir = /var/cache/yum/x86_64/6/remi-php70/headers
http_caching = all
includepkgs =
keepalive = True
mdpolicy = group:primary
mediaid =
metadata_expire = 21600
metalink =
mirrorlist = http://rpms.remirepo.net/enterprise/6/php70/mirror
mirrorlist_expire = 86400
name = Remi's PHP 7.0 RPM repository for Enterprise Linux 6 - x86_64
old_base_cache_dir =
password =
persistdir = /var/lib/yum/repos/x86_64/6/remi-php70
pkgdir = /var/cache/yum/x86_64/6/remi-php70/packages
proxy = False
proxy_dict =
proxy_password =
proxy_username =
repo_gpgcheck = False
retries = 10
skip_if_unavailable = False
ssl_check_cert_permissions = True
sslcacert =
sslclientcert =
sslclientkey =
sslverify = True
throttle = 0
timeout = 30.0
username =
root@x6gn-rc5v [~]# yum update
Loaded plugins: fastestmirror
Setting up Update Process
Loading mirror speeds from cached hostfile
* base: repo1.ash.innoscale.net
* epel: mirror.cogentco.com
* extras: centos.mirror.constant.com
* remi-php70: mirrors.mediatemple.net
* remi-safe: mirrors.mediatemple.net
* updates: repo1.ash.innoscale.net
* webtatic: us-east.repo.webtatic.com
remi-php70 | 2.9 kB 00:00
No Packages marked for Update
root@x6gn-rc5v [~]# yum-config-manager --enable remi-php70
Loaded plugins: fastestmirror
============================================================== repo: remi-php70 ==============================================================
[remi-php70]
bandwidth = 0
base_persistdir = /var/lib/yum/repos/x86_64/6
baseurl =
cache = 0
cachedir = /var/cache/yum/x86_64/6/remi-php70
cost = 1000
enabled = True
enablegroups = True
exclude =
failovermethod = priority
gpgcadir = /var/lib/yum/repos/x86_64/6/remi-php70/gpgcadir
gpgcakey =
gpgcheck = True
gpgdir = /var/lib/yum/repos/x86_64/6/remi-php70/gpgdir
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
hdrdir = /var/cache/yum/x86_64/6/remi-php70/headers
http_caching = all
includepkgs =
keepalive = True
mdpolicy = group:primary
mediaid =
metadata_expire = 21600
metalink =
mirrorlist = http://rpms.remirepo.net/enterprise/6/php70/mirror
mirrorlist_expire = 86400
name = Remi's PHP 7.0 RPM repository for Enterprise Linux 6 - x86_64
old_base_cache_dir =
password =
persistdir = /var/lib/yum/repos/x86_64/6/remi-php70
pkgdir = /var/cache/yum/x86_64/6/remi-php70/packages
proxy = False
proxy_dict =
proxy_password =
proxy_username =
repo_gpgcheck = False
retries = 10
skip_if_unavailable = False
ssl_check_cert_permissions = True
sslcacert =
sslclientcert =
sslclientkey =
sslverify = True
throttle = 0
timeout = 30.0
username =
root@x6gn-rc5v [~]# yum update
Loaded plugins: fastestmirror
Setting up Update Process
Loading mirror speeds from cached hostfile
* base: bay.uchicago.edu
* epel: mirror.cogentco.com
* extras: mirror.rackspace.com
* remi-php70: mirrors.mediatemple.net
* remi-safe: mirrors.mediatemple.net
* updates: mirrors.centos.webair.com
* webtatic: us-east.repo.webtatic.com
remi-php70 | 2.9 kB 00:00
No Packages marked for Update
root@x6gn-rc5v [~]# reset
root@x6gn-rc5v [~]# yum install https://dl.fedoraproject.org/pub/epel/epel-relea se-latest-6.noarch.rpm
Loaded plugins: fastestmirror
Setting up Install Process
epel-release-latest-6.noarch.rpm | 14 kB 00:00
Examining /var/tmp/yum-root-MKLVvz/epel-release-latest-6.noarch.rpm: epel-releas e-6-8.noarch
/var/tmp/yum-root-MKLVvz/epel-release-latest-6.noarch.rpm: does not update insta lled package.
Error: Nothing to do
root@x6gn-rc5v [~]# restart
restart: missing job name
Try `restart --help' for more information.
root@x6gn-rc5v [~]# yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
Loaded plugins: fastestmirror
Setting up Install Process
epel-release-latest-6.noarch.rpm | 14 kB 00:00
Examining /var/tmp/yum-root-MKLVvz/epel-release-latest-6.noarch.rpm: epel-release-6-8.noarch
/var/tmp/yum-root-MKLVvz/epel-release-latest-6.noarch.rpm: does not update installed package.
Error: Nothing to do
root@x6gn-rc5v [~]# yum install http://rpms.remirepo.net/enterprise/remi-release-6.rpm
Loaded plugins: fastestmirror
Setting up Install Process
remi-release-6.rpm | 7.4 kB 00:00
Examining /var/tmp/yum-root-MKLVvz/remi-release-6.rpm: remi-release-6.6-2.el6.remi.noarch
/var/tmp/yum-root-MKLVvz/remi-release-6.rpm: does not update installed package.
Error: Nothing to do
root@x6gn-rc5v [~]# restart
restart: missing job name
Try `restart --help' for more information.
root@x6gn-rc5v [~]# restart
restart: missing job name
Try `restart --help' for more information.
root@x6gn-rc5v [~]# reset
root@x6gn-rc5v [~]# yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
Loaded plugins: fastestmirror
Setting up Install Process
epel-release-latest-6.noarch.rpm | 14 kB 00:00
Examining /var/tmp/yum-root-MKLVvz/epel-release-latest-6.noarch.rpm: epel-release-6-8.noarch
/var/tmp/yum-root-MKLVvz/epel-release-latest-6.noarch.rpm: does not update installed package.
Error: Nothing to do
root@x6gn-rc5v [~]# yum install http://rpms.remirepo.net/enterprise/remi-release-6.rpm
Loaded plugins: fastestmirror
Setting up Install Process
remi-release-6.rpm | 7.4 kB 00:00
Examining /var/tmp/yum-root-MKLVvz/remi-release-6.rpm: remi-release-6.6-2.el6.remi.noarch
/var/tmp/yum-root-MKLVvz/remi-release-6.rpm: does not update installed package.
Error: Nothing to do
root@x6gn-rc5v [~]# yum install yum-utils
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: bay.uchicago.edu
* epel: mirror.cogentco.com
* extras: mirror.rackspace.com
* remi-php70: mirrors.mediatemple.net
* remi-safe: mirrors.mediatemple.net
* updates: mirrors.centos.webair.com
* webtatic: us-east.repo.webtatic.com
Package yum-utils-1.1.30-30.el6.noarch already installed and latest version
Nothing to do
root@x6gn-rc5v [~]# yum-config-manager --enable remi-php70
Loaded plugins: fastestmirror
============================================================================ repo: remi-php70 =============================================================================
[remi-php70]
bandwidth = 0
base_persistdir = /var/lib/yum/repos/x86_64/6
baseurl =
cache = 0
cachedir = /var/cache/yum/x86_64/6/remi-php70
cost = 1000
enabled = True
enablegroups = True
exclude =
failovermethod = priority
gpgcadir = /var/lib/yum/repos/x86_64/6/remi-php70/gpgcadir
gpgcakey =
gpgcheck = True
gpgdir = /var/lib/yum/repos/x86_64/6/remi-php70/gpgdir
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
hdrdir = /var/cache/yum/x86_64/6/remi-php70/headers
http_caching = all
includepkgs =
keepalive = True
mdpolicy = group:primary
mediaid =
metadata_expire = 21600
metalink =
mirrorlist = http://rpms.remirepo.net/enterprise/6/php70/mirror
mirrorlist_expire = 86400
name = Remi's PHP 7.0 RPM repository for Enterprise Linux 6 - x86_64
old_base_cache_dir =
password =
persistdir = /var/lib/yum/repos/x86_64/6/remi-php70
pkgdir = /var/cache/yum/x86_64/6/remi-php70/packages
proxy = False
proxy_dict =
proxy_password =
proxy_username =
repo_gpgcheck = False
retries = 10
skip_if_unavailable = False
ssl_check_cert_permissions = True
sslcacert =
sslclientcert =
sslclientkey =
sslverify = True
throttle = 0
timeout = 30.0
username =
root@x6gn-rc5v [~]# yum update
Loaded plugins: fastestmirror
Setting up Update Process
Loading mirror speeds from cached hostfile
* base: repo1.ash.innoscale.net
* epel: mirror.cogentco.com
* extras: mirror.rackspace.com
* remi-php70: mirrors.mediatemple.net
* remi-safe: mirrors.mediatemple.net
* updates: repo1.ash.innoscale.net
* webtatic: us-east.repo.webtatic.com
remi-php70 | 2.9 kB 00:00
No Packages marked for Update
-
remirepo
- Posts: 447
- Joined: 2014/09/21 09:07:12
- Location: France
-
Contact:
Post
by remirepo » 2016/04/07 16:18:06
How php was installed ?
Code: Select all
$ which php
$ rpm -qf $(which php)
P.S. don't enable both "remi-php70" and "webtatic", this may create some conflicts
-
Wstar
- Posts: 3
- Joined: 2016/04/07 14:49:35
Post
by Wstar » 2016/04/07 17:40:19
remirepo wrote:How php was installed ?
Code: Select all
$ which php
$ rpm -qf $(which php)
P.S. don't enable both "remi-php70" and "webtatic", this may create some conflicts
PHP 5.5 was installed VIA EasyApaphe. But has no option for PHP 7 yet.
root@x6gn-rc5v [~]# which php
/usr/local/bin/php
root@x6gn-rc5v [~]# rpm -qf $(which php)
file /usr/local/bin/php is not owned by any package
root@x6gn-rc5v [~]#
I will try to only enable one.
-
remirepo
- Posts: 447
- Joined: 2014/09/21 09:07:12
- Location: France
-
Contact:
Post
by remirepo » 2016/04/07 17:59:38
So installed from sources.
Of course yum cannot update it.
You have to clean this installation, and then "install" PHP 7 packages
Code: Select all
yum install php php-cli php-mbstring ...
-
banananana
- Posts: 1
- Joined: 2017/02/12 07:21:24
Post
by banananana » 2017/02/12 07:23:43
You don't have to wait until CentOS 8.
I was able to upgrade to PHP7 from the tutorial at:
https://stackengineer.com/linux/upgrade-php-centos.html
Pretty straight forward:
Code: Select all
sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-9.noarch.rpm
sudo rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
sudo yum remove php*
sudo yum install mod_php71w
php -v
-
TrevorH
- Site Admin
- Posts: 33219
- Joined: 2009/09/24 10:40:56
- Location: Brighton, UK
Post
by TrevorH » 2017/02/12 15:04:43
While this may technically work, you won't find anyone here recommending use of the webtatic repo. Use the IUS Community repo for replacement php packages or use SCL for parallel installable and runnable php versions.
-
pkiula
- Posts: 3
- Joined: 2009/05/06 14:18:57
Post
by pkiula » 2017/02/14 18:16:37
THis presumes, like many tutorials, that the whole world runs Apache. I'm on Nginx with FPM. Can I upgrade with the same instructions, and have my usual php-fpm config etc intact? Or will I have to undo/redo all the time in the future? Thank you for any pointers.