Can't install PHP Package on CentOS

前端 未结 3 979
不思量自难忘°
不思量自难忘° 2021-01-12 06:25

I am having trouble re-installing PHP via yum on my server hosted by digital ocean.

I had PHP 5.4 installed but wanted 5.6. I added/enabled the remi repo\'s, ran

3条回答
  •  北恋
    北恋 (楼主)
    2021-01-12 06:47

    I fixed it! The issue was that I had the wrong version of EL installed. I removed all my extra repo's, removed all php packages, removed httpd. Ran the following:

    yum install epel-release
    rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
    yum clean
    yum update
    

    I was then able to install PHP using the following

    yum install php56w php56w-opcache php56w-mcrypt php56w-pdo php56w-mysql
    

提交回复
热议问题