Skip to content

Commit

Permalink
fix lsphp74 build error on centos 7
Browse files Browse the repository at this point in the history
  • Loading branch information
qtwrk committed Feb 6, 2020
1 parent de5bb17 commit 351bfb8
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions cyberpanel_upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -194,11 +194,20 @@ if [[ ! -f /usr/local/lsws/lsphp74/lib64/php/modules/zip.so ]] && [[ $SERVER_OS

yum install -y http://packages.psychotic.ninja/7/plus/x86_64/RPMS/libzip-0.11.2-6.el7.psychotic.x86_64.rpm
yum install -y http://packages.psychotic.ninja/7/plus/x86_64/RPMS/libzip-devel-0.11.2-6.el7.psychotic.x86_64.rpm
yum install lsphp74-devel

if [[ ! -d /usr/local/lsws/lsphp74/tmp ]] ; then
mkdir /usr/local/lsws/lsphp74/tmp
fi

/usr/local/lsws/lsphp74/bin/pecl channel-update pecl.php.net
/usr/local/lsws/lsphp74/bin/pear config-set temp_dir /usr/local/lsws/lsphp74/tmp
/usr/local/lsws/lsphp74/bin/pecl install zip
if [[ $? == 0 ]] ; then
echo "extension=zip.so" > /usr/local/lsws/lsphp74/etc/php.d/20-zip.ini
echo "extension=zip.so" > /usr/local/lsws/lsphp74/etc/php.d/20-zip.ini
chmod 755 /usr/local/lsws/lsphp74/lib64/php/modules/zip.so
else
echo -e "\nlsphp74-zip compilation failed..."
echo -e "\nlsphp74-zip compilation failed..."
fi
fi
#fix the lsphp74-zip missing issue.
Expand Down

0 comments on commit 351bfb8

Please sign in to comment.