install php5.6 on plesk centos8

คำถามและปัญหา webhost ที่ใช้ AlmaLinux
ตอบกลับ
รูปประจำตัวสมาชิก
slwt2002
Administrator
โพสต์: 126
ลงทะเบียนเมื่อ: พุธ 24 มิ.ย. 2015 18:03

install php5.6 on plesk centos8

โพสต์ โดย slwt2002 »

1. Install remi repo in centos 8

โค้ด: เลือกทั้งหมด

dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

โค้ด: เลือกทั้งหมด

dnf install https://rpms.remirepo.net/enterprise/remi-release-8.rpm

2. Install php 5.6 and its required modules

โค้ด: เลือกทั้งหมด

yum install php56.x86_64

3. Register the php.56 fcgi module with php, If all good you will get handler id and successfully registered message.

โค้ด: เลือกทั้งหมด

/usr/local/psa/bin/php_handler --add -displayname php-56 -path /usr/bin/php56-cgi -phpini /etc/opt/remi/php56/php.ini -clipath /usr/bin/php56 -type fastcgi
The new PHP handler with the id "150e2a3d0f6ca2bb60a26372169d231c3c758e6d" was successfully registered.



5. You can verify it using the below command

โค้ด: เลือกทั้งหมด

plesk bin php_handler --list |grep 5.6
6. Now the php version will be listed in front end of plesk in php version drop down






ที่มา : https://talk.plesk.com/threads/how-to-i ... on.358438/
ไม่มีลายเซ็นต์ ขอเขียนแล้วกัน
ตอบกลับ