Linux下EasyPanel版本安装及升级

本脚本为官方脚本,集成了kangle web服务器和mysql,仅支持centos 5和centos 6。

执行下面的命令即可,安装程序将自动安装或者升级。

yum -y install wget;wget http://download.kanglesoft.com/easypanel/ep.sh -O ep.sh;sh ep.sh

运行上面的安装shell,会自动安装kangle、easypanel、proftpd、mysql。

安装完后打开http://ip:3312/admin/登录才能完成最后的安装。

注:初始安装登陆帐号: admin 密码: kangle
注:centos系统下easypanel集成的php默认装的是php53,语言模块里显示的php52其实是php53版本;如果需要php5217版本,请点下面的链接查看安装教程

Kangle EasyPanel php5.2.17 for linux版(集成zend和ioncube)

wget https://raw.githubusercontent.com/1265578519/kangle/master/php/5.2/5217/php5217.sh -O php5217.sh;sh php5217.sh

php.ini路径为 /vhs/kangle/ext/tpl_php5217/php-templete.ini

Kangle EasyPanel php5.4.43 for linux版(集成zend和ioncube)

wget https://raw.githubusercontent.com/1265578519/kangle/master/php/5.4/5443/php5443.sh -O php5443.sh;sh php5443.sh

php.ini路径为 /vhs/kangle/ext/tpl_php5443/php-templete.ini

Kangle EasyPanel php5.5.27 for linux版(集成Zend OPcache和ioncube)

wget https://raw.githubusercontent.com/1265578519/kangle/master/php/5.5/5527/php5527.sh -O php5527.sh;sh php5527.sh

php.ini路径为 /vhs/kangle/ext/tpl_php5527/php-templete.ini

Kangle EasyPanel php5.6.11 for linux版(集成Zend OPcache和ioncube)

wget https://raw.githubusercontent.com/1265578519/kangle/master/php/5.6/5611/php5611.sh -O php5611.sh;sh php5611.sh

php.ini路径为 /vhs/kangle/ext/tpl_php5611/php-templete.ini

Kangle EasyPanel php7.0.0 for linux版(集成Zend OPcache和ioncube)

wget https://raw.githubusercontent.com/1265578519/kangle/master/php/7.0/700/php700.sh -O php700.sh;sh php700.sh

php.ini路径为 /vhs/kangle/ext/tpl_php700/php-templete.ini

以上脚本32位、64位都支持。

【Kangle】Linux下EasyPanel及PHP安装升级 - 第2张  | 意林笔记

【Kangle】Linux下EasyPanel及PHP安装升级 - 第3张  | 意林笔记




编译找不到LIBICONV解决方案:

make ZEND_EXTRA_LIBS='-liconv -L/usr/local/lib'




#!/bin/sh
yum -y install bzip2-devel libxml2-devel curl-devel db4-devel libjpeg-devel libpng-devel freetype-devel pcre-devel zlib-devel sqlite-devel libmcrypt-devel unzip
yum -y install mhash-devel openssl-devel
yum -y install libtool-ltdl libtool-ltdl-devel
PREFIX="/vhs/kangle/ext/tpl_php5443"
ZEND_ARCH="i386"
LIB="lib"
if test `arch` = "x86_64"; then
        LIB="lib64"
        ZEND_ARCH="x86_64"
fi


wget -c http://iweb.dl.sourceforge.net/project/kanglewebserver/php/5.4/5443/php-5.4.43.tar.bz2
tar xjf php-5.4.43.tar.bz2
cd php-5.4.43
CONFIG_CMD="./configure --prefix=$PREFIX --with-config-file-scan-dir=$PREFIX/etc/php.d --with-libdir=$LIB --enable-fastcgi --with-mysql --with-mysqli --with-pdo-mysql --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr/include/libxml2/libxml --enable-xml --disable-fileinfo --enable-magic-quotes --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-mbstring --enable-ftp --with-gd --enable-gd-native-ttf --with-openssl --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --with-pear --with-gettext --enable-calendar --with-openssl"
if [ -f /usr/include/mcrypt.h ]; then
        CONFIG_CMD="$CONFIG_CMD --with-mcrypt"
fi
#'./configure' --prefix=$PREFIX --with-config-file-scan-dir=$PREFIX/etc/php.d --with-libdir=$LIB '--enable-fastcgi' '--with-mysql' '--with-mysqli' --with-pdo-mysql '--with-iconv-dir' '--with-freetype-dir' '--with-jpeg-dir' '--with-png-dir' '--with-zlib' '--with-libxml-dir=/usr/include/libxml2/libxml' '--enable-xml' '--disable-fileinfo' '--enable-magic-quotes' '--enable-safe-mode' '--enable-bcmath' '--enable-shmop' '--enable-sysvsem' '--enable-inline-optimization' '--with-curl' '--with-curlwrappers' '--enable-mbregex' '--enable-mbstring' '--enable-ftp' '--with-gd' '--enable-gd-native-ttf' '--with-openssl' '--enable-pcntl' '--enable-sockets' '--with-xmlrpc' '--enable-zip' '--enable-soap' '--with-pear' '--with-gettext' '--enable-calendar'
#'./configure' --prefix=$PREFIX --with-config-file-scan-dir=$PREFIX/etc/php.d --with-libdir=$LIB '--enable-fastcgi' '--with-mysql' '--with-mysqli' --with-pdo-mysql '--with-iconv-dir' '--with-freetype-dir' '--with-jpeg-dir' '--with-png-dir' '--with-zlib' '--with-libxml-dir=/usr/include/libxml2/libxml' '--enable-xml' '--disable-fileinfo' '--enable-magic-quotes' '--enable-safe-mode' '--enable-bcmath' '--enable-shmop' '--enable-sysvsem' '--enable-inline-optimization' '--with-curl' '--with-curlwrappers' '--enable-mbregex' '--enable-mbstring' '--with-mcrypt' '--enable-ftp' '--with-gd' '--enable-gd-native-ttf' '--with-openssl' '--with-mhash' '--enable-pcntl' '--enable-sockets' '--with-xmlrpc' '--enable-zip' '--enable-soap' '--with-pear' '--with-gettext' '--enable-calendar'
$CONFIG_CMD
if test $? != 0; then
echo $CONFIG_CMD
echo "configure php error";
exit 1
fi
make
make install
mkdir -p $PREFIX/etc/php.d
if [ ! -f $PREFIX/php-templete.ini ]; then
        cp php.ini-dist $PREFIX/php-templete.ini
fi
if [ ! -f $PREFIX/config.xml ]; then
        wget http://iweb.dl.sourceforge.net/project/kanglewebserver/php/5.4/5443/config.xml -O $PREFIX/config.xml
fi
cd ..
wget http://iweb.dl.sourceforge.net/project/kanglewebserver/php/5.4/5443/php-templete.ini -O $PREFIX/php-templete.ini
#install zend
wget -c http://iweb.dl.sourceforge.net/project/kanglewebserver/php/5.4/5443/ZendGuardLoader-70429-PHP-5.4-linux-glibc23-$ZEND_ARCH.tar.gz
tar zxf ZendGuardLoader-70429-PHP-5.4-linux-glibc23-$ZEND_ARCH.tar.gz
cd ZendGuardLoader-70429-PHP-5.4-linux-glibc23-$ZEND_ARCH
cd php-5.4.x
mkdir -p $PREFIX/zend
mv ZendGuardLoader.so $PREFIX/zend/ZendGuardLoader.so
#install ioncube
wget -c http://iweb.dl.sourceforge.net/project/kanglewebserver/php/5.4/5443/ioncube-$ZEND_ARCH-5.4.zip
unzip ioncube-$ZEND_ARCH-5.4.zip
mkdir -p $PREFIX/ioncube
mv ioncube_loader_lin_5.4.so $PREFIX/ioncube/ioncube_loader_lin_5.4.so
rm -rf /tmp/*
/vhs/kangle/bin/kangle -r

Logo

更多推荐