This commit is contained in:
72
php_exts/Swow.sh
Normal file
72
php_exts/Swow.sh
Normal file
@@ -0,0 +1,72 @@
|
||||
#!/bin/bash
|
||||
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:$PATH
|
||||
|
||||
source <(curl -f -s --connect-timeout 10 --retry 3 https://dl.acepanel.net/public.sh)
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Download public.sh failed, please check the network or try again later."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
action=${1}
|
||||
version=${2}
|
||||
php_path="${setup_path}/server/php/${version}"
|
||||
swow_version="1.6.2"
|
||||
|
||||
Install() {
|
||||
# 检查是否已经安装
|
||||
is_install=$(cat ${php_path}/etc/php.ini | grep '^extension=swow')
|
||||
if [ "${is_install}" != "" ]; then
|
||||
error "PHP-${version} swow already installed"
|
||||
fi
|
||||
|
||||
cd ${php_path}/src/ext
|
||||
rm -rf swow
|
||||
rm -rf swow-${swow_version}.zip
|
||||
dl "${php_path}/src/ext" "/php_exts/swow-${swow_version}.zip"
|
||||
|
||||
unzip swow-${swow_version}.zip
|
||||
mv swow-${swow_version} swow
|
||||
rm -f swow-${swow_version}.zip
|
||||
cd swow/ext
|
||||
${php_path}/bin/phpize
|
||||
./configure --with-php-config=${php_path}/bin/php-config
|
||||
make
|
||||
if [ "$?" != "0" ]; then
|
||||
rm -rf ${php_path}/src/ext/swow
|
||||
error "PHP-${version} swow compilation failed"
|
||||
fi
|
||||
make install
|
||||
if [ "$?" != "0" ]; then
|
||||
rm -rf ${php_path}/src/ext/swow
|
||||
error "PHP-${version} swow installation failed"
|
||||
fi
|
||||
|
||||
sed -i '/;panel/a\extension=swow' ${php_path}/etc/php.ini
|
||||
|
||||
# 重载PHP
|
||||
systemctl reload php-fpm-${version}.service
|
||||
echo -e $HR
|
||||
echo "PHP-${version} swow installation successful"
|
||||
}
|
||||
|
||||
Uninstall() {
|
||||
# 检查是否已经安装
|
||||
is_install=$(cat ${php_path}/etc/php.ini | grep '^extension=swow$')
|
||||
if [ "${is_install}" == "" ]; then
|
||||
error "PHP-${version} swow not installed"
|
||||
fi
|
||||
|
||||
sed -i '/extension=swow/d' ${php_path}/etc/php.ini
|
||||
|
||||
# 重载PHP
|
||||
systemctl reload php-fpm-${version}.service
|
||||
echo -e $HR
|
||||
echo "PHP-${version} swow uninstall successful"
|
||||
}
|
||||
|
||||
if [ "$action" == 'install' ]; then
|
||||
Install
|
||||
fi
|
||||
if [ "$action" == 'uninstall' ]; then
|
||||
Uninstall
|
||||
fi
|
||||
1
php_exts/Swow.sh.sha256
Normal file
1
php_exts/Swow.sh.sha256
Normal file
@@ -0,0 +1 @@
|
||||
608a51ca8d7e49bd9ff938247955248db060fbd0d772bd986b1453fab400164e *Swow.sh
|
||||
54
php_exts/Zend OPcache.sh
Normal file
54
php_exts/Zend OPcache.sh
Normal file
@@ -0,0 +1,54 @@
|
||||
#!/bin/bash
|
||||
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:$PATH
|
||||
|
||||
source <(curl -f -s --connect-timeout 10 --retry 3 https://dl.acepanel.net/public.sh)
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Download public.sh failed, please check the network or try again later."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
action=${1}
|
||||
version=${2}
|
||||
php_path="${setup_path}/server/php/${version}"
|
||||
|
||||
Install() {
|
||||
# 检查是否已经安装
|
||||
is_install=$(cat ${php_path}/etc/php.ini | grep '^zend_extension=opcache$')
|
||||
if [ "${is_install}" != "" ]; then
|
||||
error "PHP-${version} Zend OPcache already installed"
|
||||
fi
|
||||
|
||||
if [ ${version} -ge "80" ]; then
|
||||
sed -i '/;panel/a\zend_extension=opcache\nopcache.enable = 1\nopcache.enable_cli=1\nopcache.memory_consumption=128\nopcache.interned_strings_buffer=32\nopcache.max_accelerated_files=100000\nopcache.revalidate_freq=3\nopcache.save_comments=0\nopcache.jit_buffer_size=128m\nopcache.jit=1205' ${php_path}/etc/php.ini
|
||||
else
|
||||
sed -i '/;panel/a\zend_extension=opcache\nopcache.enable = 1\nopcache.enable_cli=1\nopcache.memory_consumption=128\nopcache.interned_strings_buffer=32\nopcache.max_accelerated_files=100000\nopcache.revalidate_freq=3\nopcache.save_comments=0' ${php_path}/etc/php.ini
|
||||
fi
|
||||
|
||||
# 重载PHP
|
||||
systemctl reload php-fpm-${version}.service
|
||||
echo -e $HR
|
||||
echo "PHP-${version} Zend OPcache installation successful"
|
||||
}
|
||||
|
||||
Uninstall() {
|
||||
# 检查是否已经安装
|
||||
is_install=$(cat ${php_path}/etc/php.ini | grep '^zend_extension=opcache$')
|
||||
if [ "${is_install}" == "" ]; then
|
||||
error "PHP-${version} Zend OPcache not installed"
|
||||
fi
|
||||
|
||||
sed -i '/^opcache.*$/d' ${php_path}/etc/php.ini
|
||||
sed -i '/zend_extension=opcache/d' ${php_path}/etc/php.ini
|
||||
|
||||
# 重载PHP
|
||||
systemctl reload php-fpm-${version}.service
|
||||
echo -e $HR
|
||||
echo "PHP-${version} Zend OPcache uninstall successful"
|
||||
}
|
||||
|
||||
if [ "$action" == 'install' ]; then
|
||||
Install
|
||||
fi
|
||||
if [ "$action" == 'uninstall' ]; then
|
||||
Uninstall
|
||||
fi
|
||||
1
php_exts/Zend OPcache.sh.sha256
Normal file
1
php_exts/Zend OPcache.sh.sha256
Normal file
@@ -0,0 +1 @@
|
||||
4fbaf558515295cd3ca927fe521231f8bed9b52814667a9914536506e7eeed87 *Zend OPcache.sh
|
||||
BIN
php_exts/event-3.1.4.tgz
LFS
Normal file
BIN
php_exts/event-3.1.4.tgz
LFS
Normal file
Binary file not shown.
1
php_exts/event-3.1.4.tgz.sha256
Normal file
1
php_exts/event-3.1.4.tgz.sha256
Normal file
@@ -0,0 +1 @@
|
||||
5c4caa73bc2dceee31092ff9192139df28e9a80f1147ade0dfe869db2e4ddfd3 *event-3.1.4.tgz
|
||||
82
php_exts/event.sh
Normal file
82
php_exts/event.sh
Normal file
@@ -0,0 +1,82 @@
|
||||
#!/bin/bash
|
||||
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:$PATH
|
||||
|
||||
source <(curl -f -s --connect-timeout 10 --retry 3 https://dl.acepanel.net/public.sh)
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Download public.sh failed, please check the network or try again later."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
action=${1}
|
||||
version=${2}
|
||||
php_path="${setup_path}/server/php/${version}"
|
||||
event_version="3.1.4"
|
||||
|
||||
Install() {
|
||||
# 检查是否已经安装
|
||||
is_install=$(cat ${php_path}/etc/php.ini | grep '^extension=event')
|
||||
if [ "${is_install}" != "" ]; then
|
||||
error "PHP-${version} event already installed"
|
||||
fi
|
||||
|
||||
# 安装依赖
|
||||
if [ ${OS} == "rhel" ]; then
|
||||
dnf install libevent-devel -y
|
||||
elif [ ${OS} == "debian" ] || [ ${OS} == "ubuntu" ]; then
|
||||
apt-get install libevent-dev -y
|
||||
else
|
||||
error "Unsupported operating system"
|
||||
fi
|
||||
|
||||
cd ${php_path}/src/ext
|
||||
rm -rf event
|
||||
rm -rf event-${event_version}.tgz
|
||||
dl "${php_path}/src/ext" "/php_exts/event-${event_version}.tgz"
|
||||
|
||||
tar -xzf event-${event_version}.tgz
|
||||
mv event-${event_version} event
|
||||
rm -f package.xml
|
||||
rm -f event-${event_version}.tgz
|
||||
cd event
|
||||
${php_path}/bin/phpize
|
||||
./configure --with-php-config=${php_path}/bin/php-config
|
||||
make
|
||||
if [ "$?" != "0" ]; then
|
||||
rm -rf ${php_path}/src/ext/event
|
||||
error "PHP-${version} event compilation failed"
|
||||
fi
|
||||
make install
|
||||
if [ "$?" != "0" ]; then
|
||||
rm -rf ${php_path}/src/ext/event
|
||||
error "PHP-${version} event installation failed"
|
||||
fi
|
||||
|
||||
sed -i '/;panel/a\extension=event' ${php_path}/etc/php.ini
|
||||
|
||||
# 重载PHP
|
||||
systemctl reload php-fpm-${version}.service
|
||||
echo -e $HR
|
||||
echo "PHP-${version} event installation successful"
|
||||
}
|
||||
|
||||
Uninstall() {
|
||||
# 检查是否已经安装
|
||||
is_install=$(cat ${php_path}/etc/php.ini | grep '^extension=event$')
|
||||
if [ "${is_install}" == "" ]; then
|
||||
error "PHP-${version} event not installed"
|
||||
fi
|
||||
|
||||
sed -i '/extension=event/d' ${php_path}/etc/php.ini
|
||||
|
||||
# 重载PHP
|
||||
systemctl reload php-fpm-${version}.service
|
||||
echo -e $HR
|
||||
echo "PHP-${version} event uninstall successful"
|
||||
}
|
||||
|
||||
if [ "$action" == 'install' ]; then
|
||||
Install
|
||||
fi
|
||||
if [ "$action" == 'uninstall' ]; then
|
||||
Uninstall
|
||||
fi
|
||||
1
php_exts/event.sh.sha256
Normal file
1
php_exts/event.sh.sha256
Normal file
@@ -0,0 +1 @@
|
||||
f6fe44c6a45a0e4d44d9be9ce54a2741be68dd47fbf9e9aca0021cd80d66f7ba *event.sh
|
||||
BIN
php_exts/grpc-1.76.0.tgz
LFS
Normal file
BIN
php_exts/grpc-1.76.0.tgz
LFS
Normal file
Binary file not shown.
1
php_exts/grpc-1.76.0.tgz.sha256
Normal file
1
php_exts/grpc-1.76.0.tgz.sha256
Normal file
@@ -0,0 +1 @@
|
||||
6e3d65695bb99de227054ae6431cee29cebabdee699ded55e97fc6f892eb4935 *grpc-1.76.0.tgz
|
||||
73
php_exts/grpc.sh
Normal file
73
php_exts/grpc.sh
Normal file
@@ -0,0 +1,73 @@
|
||||
#!/bin/bash
|
||||
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:$PATH
|
||||
|
||||
source <(curl -f -s --connect-timeout 10 --retry 3 https://dl.acepanel.net/public.sh)
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Download public.sh failed, please check the network or try again later."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
action=${1}
|
||||
version=${2}
|
||||
php_path="${setup_path}/server/php/${version}"
|
||||
grpc_version="1.76.0"
|
||||
|
||||
Install() {
|
||||
# 检查是否已经安装
|
||||
is_install=$(cat ${php_path}/etc/php.ini | grep '^extension=grpc')
|
||||
if [ "${is_install}" != "" ]; then
|
||||
error "PHP-${version} grpc already installed"
|
||||
fi
|
||||
|
||||
cd ${php_path}/src/ext
|
||||
rm -rf grpc
|
||||
rm -rf grpc-${grpc_version}.tgz
|
||||
dl "${php_path}/src/ext" "/php_exts/grpc-${grpc_version}.tgz"
|
||||
|
||||
tar -xzf grpc-${grpc_version}.tgz
|
||||
mv grpc-${grpc_version} grpc
|
||||
rm -f package.xml
|
||||
rm -f grpc-${grpc_version}.tgz
|
||||
cd grpc
|
||||
${php_path}/bin/phpize
|
||||
./configure --with-php-config=${php_path}/bin/php-config
|
||||
make
|
||||
if [ "$?" != "0" ]; then
|
||||
rm -rf ${php_path}/src/ext/grpc
|
||||
error "PHP-${version} grpc compilation failed"
|
||||
fi
|
||||
make install
|
||||
if [ "$?" != "0" ]; then
|
||||
rm -rf ${php_path}/src/ext/grpc
|
||||
error "PHP-${version} grpc installation failed"
|
||||
fi
|
||||
|
||||
sed -i '/;panel/a\extension=grpc' ${php_path}/etc/php.ini
|
||||
|
||||
# 重载PHP
|
||||
systemctl reload php-fpm-${version}.service
|
||||
echo -e $HR
|
||||
echo "PHP-${version} grpc installation successful"
|
||||
}
|
||||
|
||||
Uninstall() {
|
||||
# 检查是否已经安装
|
||||
is_install=$(cat ${php_path}/etc/php.ini | grep '^extension=grpc$')
|
||||
if [ "${is_install}" == "" ]; then
|
||||
error "PHP-${version} grpc not installed"
|
||||
fi
|
||||
|
||||
sed -i '/extension=grpc/d' ${php_path}/etc/php.ini
|
||||
|
||||
# 重载PHP
|
||||
systemctl reload php-fpm-${version}.service
|
||||
echo -e $HR
|
||||
echo "PHP-${version} grpc uninstall successful"
|
||||
}
|
||||
|
||||
if [ "$action" == 'install' ]; then
|
||||
Install
|
||||
fi
|
||||
if [ "$action" == 'uninstall' ]; then
|
||||
Uninstall
|
||||
fi
|
||||
1
php_exts/grpc.sh.sha256
Normal file
1
php_exts/grpc.sh.sha256
Normal file
@@ -0,0 +1 @@
|
||||
4a1808757465b56687e03dcad072c4bb96dc107b6708399d53d20f57e3210015 *grpc.sh
|
||||
BIN
php_exts/igbinary-3.2.17RC1.zip
LFS
Normal file
BIN
php_exts/igbinary-3.2.17RC1.zip
LFS
Normal file
Binary file not shown.
1
php_exts/igbinary-3.2.17RC1.zip.sha256
Normal file
1
php_exts/igbinary-3.2.17RC1.zip.sha256
Normal file
@@ -0,0 +1 @@
|
||||
055ae3be2ff5e6ef0d4c7f7e92e08e67f1ad0fb78f5823aaad34841378ee055e *igbinary-3.2.17RC1.zip
|
||||
71
php_exts/igbinary.sh
Normal file
71
php_exts/igbinary.sh
Normal file
@@ -0,0 +1,71 @@
|
||||
#!/bin/bash
|
||||
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:$PATH
|
||||
|
||||
source <(curl -f -s --connect-timeout 10 --retry 3 https://dl.acepanel.net/public.sh)
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Download public.sh failed, please check the network or try again later."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
action=${1}
|
||||
version=${2}
|
||||
php_path="${setup_path}/server/php/${version}"
|
||||
igbinary_version="3.2.17RC1"
|
||||
|
||||
Install() {
|
||||
# 检查是否已经安装
|
||||
is_install=$(cat ${php_path}/etc/php.ini | grep '^extension=igbinary')
|
||||
if [ "${is_install}" != "" ]; then
|
||||
error "PHP-${version} igbinary already installed"
|
||||
fi
|
||||
|
||||
cd ${php_path}/src/ext
|
||||
rm -rf igbinary
|
||||
dl "${php_path}/src/ext" "/php_exts/igbinary-${igbinary_version}.zip"
|
||||
|
||||
unzip igbinary-${igbinary_version}.zip
|
||||
mv igbinary-${igbinary_version} igbinary
|
||||
rm -f igbinary-${igbinary_version}.zip
|
||||
cd igbinary
|
||||
${php_path}/bin/phpize
|
||||
./configure --with-php-config=${php_path}/bin/php-config
|
||||
make
|
||||
if [ "$?" != "0" ]; then
|
||||
rm -rf ${php_path}/src/ext/igbinary
|
||||
error "PHP-${version} igbinary compilation failed"
|
||||
fi
|
||||
make install
|
||||
if [ "$?" != "0" ]; then
|
||||
rm -rf ${php_path}/src/ext/igbinary
|
||||
error "PHP-${version} igbinary installation failed"
|
||||
fi
|
||||
|
||||
sed -i '/;panel/a\extension=igbinary' ${php_path}/etc/php.ini
|
||||
|
||||
# 重载PHP
|
||||
systemctl reload php-fpm-${version}.service
|
||||
echo -e $HR
|
||||
echo "PHP-${version} igbinary installation successful"
|
||||
}
|
||||
|
||||
Uninstall() {
|
||||
# 检查是否已经安装
|
||||
is_install=$(cat ${php_path}/etc/php.ini | grep '^extension=igbinary$')
|
||||
if [ "${is_install}" == "" ]; then
|
||||
error "PHP-${version} igbinary not installed"
|
||||
fi
|
||||
|
||||
sed -i '/extension=igbinary/d' ${php_path}/etc/php.ini
|
||||
|
||||
# 重载PHP
|
||||
systemctl reload php-fpm-${version}.service
|
||||
echo -e $HR
|
||||
echo "PHP-${version} igbinary uninstall successful"
|
||||
}
|
||||
|
||||
if [ "$action" == 'install' ]; then
|
||||
Install
|
||||
fi
|
||||
if [ "$action" == 'uninstall' ]; then
|
||||
Uninstall
|
||||
fi
|
||||
1
php_exts/igbinary.sh.sha256
Normal file
1
php_exts/igbinary.sh.sha256
Normal file
@@ -0,0 +1 @@
|
||||
919092565383f9961bcbbddc394e8355e9c5be3cbf5c5f5a438208e7d925373d *igbinary.sh
|
||||
BIN
php_exts/imagick-3.8.1.zip
LFS
Normal file
BIN
php_exts/imagick-3.8.1.zip
LFS
Normal file
Binary file not shown.
1
php_exts/imagick-3.8.1.zip.sha256
Normal file
1
php_exts/imagick-3.8.1.zip.sha256
Normal file
@@ -0,0 +1 @@
|
||||
be190addfd39d510b0dac3c13339ccc714ee11670ce962ad526a3aadc9646ceb *imagick-3.8.1.zip
|
||||
80
php_exts/imagick.sh
Normal file
80
php_exts/imagick.sh
Normal file
@@ -0,0 +1,80 @@
|
||||
#!/bin/bash
|
||||
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:$PATH
|
||||
|
||||
source <(curl -f -s --connect-timeout 10 --retry 3 https://dl.acepanel.net/public.sh)
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Download public.sh failed, please check the network or try again later."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
action=${1}
|
||||
version=${2}
|
||||
php_path="${setup_path}/server/php/${version}"
|
||||
imagick_version="3.8.1"
|
||||
|
||||
Install() {
|
||||
# 检查是否已经安装
|
||||
is_install=$(cat ${php_path}/etc/php.ini | grep '^extension=imagick$')
|
||||
if [ "${is_install}" != "" ]; then
|
||||
error "PHP-${version} imagick already installed"
|
||||
fi
|
||||
|
||||
# 安装依赖
|
||||
if [ ${OS} == "rhel" ]; then
|
||||
dnf install ImageMagick ImageMagick-devel -y
|
||||
elif [ ${OS} == "debian" ] || [ ${OS} == "ubuntu" ]; then
|
||||
apt-get install imagemagick libmagickwand-dev -y
|
||||
else
|
||||
error "Unsupported operating system"
|
||||
fi
|
||||
|
||||
cd ${php_path}/src/ext
|
||||
rm -rf imagick
|
||||
dl "${php_path}/src/ext" "/php_exts/imagick-${imagick_version}.zip"
|
||||
|
||||
unzip imagick-${imagick_version}.zip
|
||||
rm -f imagick-${imagick_version}.zip
|
||||
mv imagick-${imagick_version} imagick
|
||||
cd imagick
|
||||
${php_path}/bin/phpize
|
||||
./configure --with-php-config=${php_path}/bin/php-config
|
||||
make
|
||||
if [ "$?" != "0" ]; then
|
||||
rm -rf ${php_path}/src/ext/imagick
|
||||
error "PHP-${version} imagick compilation failed"
|
||||
fi
|
||||
make install
|
||||
if [ "$?" != "0" ]; then
|
||||
rm -rf ${php_path}/src/ext/imagick
|
||||
error "PHP-${version} imagick installation failed"
|
||||
fi
|
||||
|
||||
sed -i '/;panel/a\extension=imagick' ${php_path}/etc/php.ini
|
||||
|
||||
# 重载PHP
|
||||
systemctl reload php-fpm-${version}.service
|
||||
echo -e $HR
|
||||
echo "PHP-${version} imagick installation successful"
|
||||
}
|
||||
|
||||
Uninstall() {
|
||||
# 检查是否已经安装
|
||||
is_install=$(cat ${php_path}/etc/php.ini | grep '^extension=imagick$')
|
||||
if [ "${is_install}" == "" ]; then
|
||||
error "PHP-${version} imagick not installed"
|
||||
fi
|
||||
|
||||
sed -i '/extension=imagick/d' ${php_path}/etc/php.ini
|
||||
|
||||
# 重载PHP
|
||||
systemctl reload php-fpm-${version}.service
|
||||
echo -e $HR
|
||||
echo "PHP-${version} imagick uninstall successful"
|
||||
}
|
||||
|
||||
if [ "$action" == 'install' ]; then
|
||||
Install
|
||||
fi
|
||||
if [ "$action" == 'uninstall' ]; then
|
||||
Uninstall
|
||||
fi
|
||||
1
php_exts/imagick.sh.sha256
Normal file
1
php_exts/imagick.sh.sha256
Normal file
@@ -0,0 +1 @@
|
||||
5cb1502a45e392bd766f1c6e10213e3e5bb89697ae8086d38a691d1d8d05a7fb *imagick.sh
|
||||
60
php_exts/ionCube Loader.sh
Normal file
60
php_exts/ionCube Loader.sh
Normal file
@@ -0,0 +1,60 @@
|
||||
#!/bin/bash
|
||||
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:$PATH
|
||||
|
||||
source <(curl -f -s --connect-timeout 10 --retry 3 https://dl.acepanel.net/public.sh)
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Download public.sh failed, please check the network or try again later."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
action=${1}
|
||||
version=${2}
|
||||
php_path="${setup_path}/server/php/${version}"
|
||||
|
||||
add_arm=""
|
||||
if [ ${ARCH} == "aarch64" ]; then
|
||||
add_arm="_arm"
|
||||
fi
|
||||
|
||||
Install() {
|
||||
# 检查是否已经安装
|
||||
is_install=$(cat ${php_path}/etc/php.ini | grep 'ioncube_loader_lin')
|
||||
if [ "${is_install}" != "" ]; then
|
||||
error "PHP-${version} ionCube already installed"
|
||||
fi
|
||||
|
||||
mkdir -p /usr/local/ioncube
|
||||
cd /usr/local/ioncube
|
||||
dl "/usr/local/ioncube" "/php_exts/ioncube_loader_lin_${version}${add_arm}.so"
|
||||
|
||||
|
||||
sed -i -e "/;panel/a\zend_extension=/usr/local/ioncube/ioncube_loader_lin_${version}${add_arm}.so" ${php_path}/etc/php.ini
|
||||
|
||||
# 重载PHP
|
||||
systemctl reload php-fpm-${version}.service
|
||||
echo -e $HR
|
||||
echo "PHP-${version} ionCube installation successful"
|
||||
}
|
||||
|
||||
Uninstall() {
|
||||
# 检查是否已经安装
|
||||
is_install=$(cat ${php_path}/etc/php.ini | grep 'ioncube_loader_lin')
|
||||
if [ "${is_install}" == "" ]; then
|
||||
error "PHP-${version} ionCube not installed"
|
||||
fi
|
||||
|
||||
rm -f /usr/local/ioncube/ioncube_loader_lin_${version}${add_arm}.so
|
||||
sed -i '/ioncube_loader_lin/d' ${php_path}/etc/php.ini
|
||||
|
||||
# 重载PHP
|
||||
systemctl reload php-fpm-${version}.service
|
||||
echo -e $HR
|
||||
echo "PHP-${version} ionCube uninstall successful"
|
||||
}
|
||||
|
||||
if [ "$action" == 'install' ]; then
|
||||
Install
|
||||
fi
|
||||
if [ "$action" == 'uninstall' ]; then
|
||||
Uninstall
|
||||
fi
|
||||
1
php_exts/ionCube Loader.sh.sha256
Normal file
1
php_exts/ionCube Loader.sh.sha256
Normal file
@@ -0,0 +1 @@
|
||||
2aa6a05452e6e9d2c22211f123ff605c04e16af8ba6dbca6c7789fc1ab4fc6c0 *ionCube Loader.sh
|
||||
BIN
php_exts/ioncube_loader_lin_74.so
LFS
Normal file
BIN
php_exts/ioncube_loader_lin_74.so
LFS
Normal file
Binary file not shown.
1
php_exts/ioncube_loader_lin_74.so.sha256
Normal file
1
php_exts/ioncube_loader_lin_74.so.sha256
Normal file
@@ -0,0 +1 @@
|
||||
d0b5636483e61b9998242819569b40e64a79514d3233354839281a7082f78910 *ioncube_loader_lin_74.so
|
||||
BIN
php_exts/ioncube_loader_lin_74_arm.so
LFS
Normal file
BIN
php_exts/ioncube_loader_lin_74_arm.so
LFS
Normal file
Binary file not shown.
1
php_exts/ioncube_loader_lin_74_arm.so.sha256
Normal file
1
php_exts/ioncube_loader_lin_74_arm.so.sha256
Normal file
@@ -0,0 +1 @@
|
||||
f71e2efe9817042894a35d4215161bda9824a67937f71dd8d53ef9f7c7e008b9 *ioncube_loader_lin_74_arm.so
|
||||
BIN
php_exts/ioncube_loader_lin_81.so
LFS
Normal file
BIN
php_exts/ioncube_loader_lin_81.so
LFS
Normal file
Binary file not shown.
1
php_exts/ioncube_loader_lin_81.so.sha256
Normal file
1
php_exts/ioncube_loader_lin_81.so.sha256
Normal file
@@ -0,0 +1 @@
|
||||
3ab5ec432365fc3036961fb04338633f1c3af25d07c43174b8880ea0ea29986f *ioncube_loader_lin_81.so
|
||||
BIN
php_exts/ioncube_loader_lin_81_arm.so
LFS
Normal file
BIN
php_exts/ioncube_loader_lin_81_arm.so
LFS
Normal file
Binary file not shown.
1
php_exts/ioncube_loader_lin_81_arm.so.sha256
Normal file
1
php_exts/ioncube_loader_lin_81_arm.so.sha256
Normal file
@@ -0,0 +1 @@
|
||||
af915ed949051fd35d57b95c69ef63ab37f43ca1b53d56d37569f20303b362cf *ioncube_loader_lin_81_arm.so
|
||||
BIN
php_exts/ioncube_loader_lin_82.so
LFS
Normal file
BIN
php_exts/ioncube_loader_lin_82.so
LFS
Normal file
Binary file not shown.
1
php_exts/ioncube_loader_lin_82.so.sha256
Normal file
1
php_exts/ioncube_loader_lin_82.so.sha256
Normal file
@@ -0,0 +1 @@
|
||||
9db9fca2f69493722fec12a9257838ab09d49eb8c51aa28f1b710b9a40bf764b *ioncube_loader_lin_82.so
|
||||
BIN
php_exts/ioncube_loader_lin_82_arm.so
LFS
Normal file
BIN
php_exts/ioncube_loader_lin_82_arm.so
LFS
Normal file
Binary file not shown.
1
php_exts/ioncube_loader_lin_82_arm.so.sha256
Normal file
1
php_exts/ioncube_loader_lin_82_arm.so.sha256
Normal file
@@ -0,0 +1 @@
|
||||
6cd8bd139afe171b161a512a66e9173a4e8177c56eaaedc8dbea3af35cd3d527 *ioncube_loader_lin_82_arm.so
|
||||
BIN
php_exts/ioncube_loader_lin_83.so
LFS
Normal file
BIN
php_exts/ioncube_loader_lin_83.so
LFS
Normal file
Binary file not shown.
1
php_exts/ioncube_loader_lin_83.so.sha256
Normal file
1
php_exts/ioncube_loader_lin_83.so.sha256
Normal file
@@ -0,0 +1 @@
|
||||
3e8f689c31e1c0e0679c7e198f8158e8e2f59a64052feed551a1b14558cf3c66 *ioncube_loader_lin_83.so
|
||||
BIN
php_exts/ioncube_loader_lin_83_arm.so
LFS
Normal file
BIN
php_exts/ioncube_loader_lin_83_arm.so
LFS
Normal file
Binary file not shown.
1
php_exts/ioncube_loader_lin_83_arm.so.sha256
Normal file
1
php_exts/ioncube_loader_lin_83_arm.so.sha256
Normal file
@@ -0,0 +1 @@
|
||||
0e8ecaebaf7e637139356d9c539b3cbcfb85c507099e8c1a317b550ff0c077c9 *ioncube_loader_lin_83_arm.so
|
||||
BIN
php_exts/ioncube_loader_lin_84.so
LFS
Normal file
BIN
php_exts/ioncube_loader_lin_84.so
LFS
Normal file
Binary file not shown.
1
php_exts/ioncube_loader_lin_84.so.sha256
Normal file
1
php_exts/ioncube_loader_lin_84.so.sha256
Normal file
@@ -0,0 +1 @@
|
||||
2a504c5e3eff32fac35c1940febb254db2c44ed779d7e57ac596e0af4684aa62 *ioncube_loader_lin_84.so
|
||||
BIN
php_exts/ioncube_loader_lin_84_arm.so
LFS
Normal file
BIN
php_exts/ioncube_loader_lin_84_arm.so
LFS
Normal file
Binary file not shown.
1
php_exts/ioncube_loader_lin_84_arm.so.sha256
Normal file
1
php_exts/ioncube_loader_lin_84_arm.so.sha256
Normal file
@@ -0,0 +1 @@
|
||||
fb7af798598d851b5629d300dfc49bae9bd0a74cc524dfe678c254dd9236820b *ioncube_loader_lin_84_arm.so
|
||||
86
php_exts/memcached.sh
Normal file
86
php_exts/memcached.sh
Normal file
@@ -0,0 +1,86 @@
|
||||
#!/bin/bash
|
||||
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:$PATH
|
||||
|
||||
source <(curl -f -s --connect-timeout 10 --retry 3 https://dl.acepanel.net/public.sh)
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Download public.sh failed, please check the network or try again later."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
action=${1}
|
||||
version=${2}
|
||||
php_path="${setup_path}/server/php/${version}"
|
||||
php_memcached_version="3.4.0"
|
||||
|
||||
Install() {
|
||||
# 检查是否已经安装
|
||||
is_install=$(cat ${php_path}/etc/php.ini | grep '^extension=memcached$')
|
||||
if [ "${is_install}" != "" ]; then
|
||||
error "PHP-${version} memcached already installed"
|
||||
fi
|
||||
|
||||
# 安装依赖
|
||||
if [ ${OS} == "rhel" ]; then
|
||||
dnf makecache -y
|
||||
dnf install libmemcached-devel libzstd-devel -y
|
||||
elif [ ${OS} == "debian" ] || [ ${OS} == "ubuntu" ]; then
|
||||
apt-get update
|
||||
apt-get install libmemcached-dev libzstd-dev -y
|
||||
else
|
||||
error "Unsupported operating system"
|
||||
fi
|
||||
if [ "$?" != "0" ]; then
|
||||
error "Failed to install dependencies"
|
||||
fi
|
||||
|
||||
cd ${php_path}/src/ext
|
||||
rm -rf memcached
|
||||
rm -rf php-memcached-${php_memcached_version}.zip
|
||||
dl "${php_path}/src/ext" "/php_exts/php-memcached-${php_memcached_version}.zip"
|
||||
|
||||
unzip -o php-memcached-${php_memcached_version}.zip
|
||||
mv php-memcached-${php_memcached_version} memcached
|
||||
rm -f php-memcached-${php_memcached_version}.zip
|
||||
cd memcached
|
||||
${php_path}/bin/phpize
|
||||
./configure --with-php-config=${php_path}/bin/php-config --enable-memcached-session --enable-memcached-json --enable-memcached-sasl --with-zstd
|
||||
make
|
||||
if [ "$?" != "0" ]; then
|
||||
rm -rf ${php_path}/src/ext/memcached
|
||||
error "PHP-${version} memcached compilation failed"
|
||||
fi
|
||||
make install
|
||||
if [ "$?" != "0" ]; then
|
||||
rm -rf ${php_path}/src/ext/memcached
|
||||
error "PHP-${version} memcached installation failed"
|
||||
fi
|
||||
|
||||
sed -i '/;panel/a\extension=memcached' ${php_path}/etc/php.ini
|
||||
|
||||
# 重载PHP
|
||||
systemctl reload php-fpm-${version}.service
|
||||
echo -e $HR
|
||||
echo "PHP-${version} memcached installation successful"
|
||||
}
|
||||
|
||||
Uninstall() {
|
||||
# 检查是否已经安装
|
||||
is_install=$(cat ${php_path}/etc/php.ini | grep '^extension=memcached$')
|
||||
if [ "${is_install}" == "" ]; then
|
||||
error "PHP-${version} memcached not installed"
|
||||
fi
|
||||
|
||||
sed -i '/extension=memcached/d' ${php_path}/etc/php.ini
|
||||
|
||||
# 重载PHP
|
||||
systemctl reload php-fpm-${version}.service
|
||||
echo -e $HR
|
||||
echo "PHP-${version} memcached uninstall successful"
|
||||
}
|
||||
|
||||
if [ "$action" == 'install' ]; then
|
||||
Install
|
||||
fi
|
||||
if [ "$action" == 'uninstall' ]; then
|
||||
Uninstall
|
||||
fi
|
||||
1
php_exts/memcached.sh.sha256
Normal file
1
php_exts/memcached.sh.sha256
Normal file
@@ -0,0 +1 @@
|
||||
65d4684d6ff6c406aa2f2a7ed320c07bd5d52af7650f28ac58163518a7d4c7fa *memcached.sh
|
||||
147
php_exts/official.sh
Normal file
147
php_exts/official.sh
Normal file
@@ -0,0 +1,147 @@
|
||||
#!/bin/bash
|
||||
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:$PATH
|
||||
|
||||
source <(curl -f -s --connect-timeout 10 --retry 3 https://dl.acepanel.net/public.sh)
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Download public.sh failed, please check the network or try again later."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
action=${1}
|
||||
version=${2}
|
||||
extension=${3} # 扩展名称
|
||||
php_path="${setup_path}/server/php/${version}"
|
||||
add_args="" # 附加参数
|
||||
|
||||
Install() {
|
||||
# 检查是否已经安装
|
||||
is_install=$(cat ${php_path}/etc/php.ini | grep "^extension=${extension}$")
|
||||
if [ "${is_install}" != "" ]; then
|
||||
error "PHP-${version} ${extension} already installed"
|
||||
fi
|
||||
|
||||
# 安装依赖
|
||||
if [ "${extension}" == "snmp" ]; then
|
||||
if [ ${OS} == "rhel" ]; then
|
||||
dnf install -y net-snmp-devel
|
||||
elif [ ${OS} == "debian" ] || [ ${OS} == "ubuntu" ]; then
|
||||
apt-get install -y libsnmp-dev
|
||||
fi
|
||||
fi
|
||||
if [ "${extension}" == "ldap" ]; then
|
||||
if [ ${OS} == "rhel" ]; then
|
||||
dnf install -y openldap-devel
|
||||
ln -sf /usr/lib64/libldap* /usr/lib
|
||||
elif [ ${OS} == "debian" ] || [ ${OS} == "ubuntu" ]; then
|
||||
apt-get install -y libldap2-dev
|
||||
ln -sf /usr/lib/x86_64-linux-gnu/libldap* /usr/lib
|
||||
fi
|
||||
fi
|
||||
if [ "${extension}" == "imap" ]; then
|
||||
if [ ${OS} == "rhel" ]; then
|
||||
# RHEL 9 的仓库中没有 libc-client-devel,待考虑
|
||||
dnf install -y libc-client-devel
|
||||
elif [ ${OS} == "debian" ] || [ ${OS} == "ubuntu" ]; then
|
||||
apt-get install -y libc-client-dev
|
||||
fi
|
||||
add_args="--with-imap --with-imap-ssl --with-kerberos"
|
||||
fi
|
||||
if [ "${extension}" == "enchant" ]; then
|
||||
if [ ${OS} == "rhel" ]; then
|
||||
dnf install -y enchant-devel
|
||||
elif [ ${OS} == "debian" ] || [ ${OS} == "ubuntu" ]; then
|
||||
apt-get install -y libenchant-2-dev
|
||||
fi
|
||||
fi
|
||||
if [ "${extension}" == "pspell" ]; then
|
||||
if [ ${OS} == "rhel" ]; then
|
||||
dnf install -y aspell-devel
|
||||
elif [ ${OS} == "debian" ] || [ ${OS} == "ubuntu" ]; then
|
||||
apt-get install -y libpspell-dev
|
||||
fi
|
||||
fi
|
||||
if [ "${extension}" == "gmp" ]; then
|
||||
if [ ${OS} == "rhel" ]; then
|
||||
dnf install -y gmp-devel
|
||||
elif [ ${OS} == "debian" ] || [ ${OS} == "ubuntu" ]; then
|
||||
apt-get install -y libgmp-dev
|
||||
fi
|
||||
fi
|
||||
if [ "${extension}" == "gettext" ]; then
|
||||
if [ ${OS} == "rhel" ]; then
|
||||
dnf install -y gettext-devel
|
||||
elif [ ${OS} == "debian" ] || [ ${OS} == "ubuntu" ]; then
|
||||
apt-get install -y libgettextpo-dev
|
||||
fi
|
||||
fi
|
||||
if [ "${extension}" == "bz2" ]; then
|
||||
if [ ${OS} == "rhel" ]; then
|
||||
dnf install -y bzip2-devel
|
||||
elif [ ${OS} == "debian" ] || [ ${OS} == "ubuntu" ]; then
|
||||
apt-get install -y libbz2-dev
|
||||
fi
|
||||
fi
|
||||
if [ "${extension}" == "zip" ]; then
|
||||
if [ ${OS} == "rhel" ]; then
|
||||
dnf install -y libzip-devel
|
||||
elif [ ${OS} == "debian" ] || [ ${OS} == "ubuntu" ]; then
|
||||
apt-get install -y libzip-dev
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$?" != "0" ]; then
|
||||
error "Failed to install dependencies"
|
||||
fi
|
||||
|
||||
if [ "${extension}" == "pdo_pgsql" ]; then
|
||||
add_args="--with-pdo-pgsql=${setup_path}/server/postgresql"
|
||||
fi
|
||||
if [ "${extension}" == "pgsql" ]; then
|
||||
add_args="--with-pgsql=${setup_path}/server/postgresql"
|
||||
fi
|
||||
|
||||
# 安装扩展
|
||||
if [ ! -d ${php_path}/src/ext/${extension} ]; then
|
||||
error "PHP-${version} ${extension} does not exist"
|
||||
fi
|
||||
cd ${php_path}/src/ext/${extension}
|
||||
${php_path}/bin/phpize
|
||||
./configure --with-php-config=${php_path}/bin/php-config ${add_args}
|
||||
make
|
||||
if [ "$?" != "0" ]; then
|
||||
error "PHP-${version} ${extension} compilation failed"
|
||||
fi
|
||||
make install
|
||||
if [ "$?" != "0" ]; then
|
||||
error "PHP-${version} ${extension} installation failed"
|
||||
fi
|
||||
|
||||
sed -i "/;panel/a\extension=${extension}" ${php_path}/etc/php.ini
|
||||
|
||||
# 重载PHP
|
||||
systemctl reload php-fpm-${version}.service
|
||||
echo -e $HR
|
||||
echo "PHP-${version} ${extension} installation successful"
|
||||
}
|
||||
|
||||
Uninstall() {
|
||||
# 检查是否已经安装
|
||||
is_install=$(cat ${php_path}/etc/php.ini | grep "^extension=${extension}$")
|
||||
if [ "${is_install}" == "" ]; then
|
||||
error "PHP-${version} ${extension} not installed"
|
||||
fi
|
||||
|
||||
sed -i "/extension=${extension}/d" ${php_path}/etc/php.ini
|
||||
|
||||
# 重载PHP
|
||||
systemctl reload php-fpm-${version}.service
|
||||
echo -e $HR
|
||||
echo "PHP-${version} ${extension} uninstall successful"
|
||||
}
|
||||
|
||||
if [ "$action" == 'install' ]; then
|
||||
Install
|
||||
fi
|
||||
if [ "$action" == 'uninstall' ]; then
|
||||
Uninstall
|
||||
fi
|
||||
1
php_exts/official.sh.sha256
Normal file
1
php_exts/official.sh.sha256
Normal file
@@ -0,0 +1 @@
|
||||
7a14e80539cb843571d96732521aebd9732a4a880fd4078fde85a1bae9bf8e8b *official.sh
|
||||
BIN
php_exts/pdo_sqlsrv-5.10.1.tgz
LFS
Normal file
BIN
php_exts/pdo_sqlsrv-5.10.1.tgz
LFS
Normal file
Binary file not shown.
1
php_exts/pdo_sqlsrv-5.10.1.tgz.sha256
Normal file
1
php_exts/pdo_sqlsrv-5.10.1.tgz.sha256
Normal file
@@ -0,0 +1 @@
|
||||
c7854196a236bc83508a346f8c6ef1df999bc21eebbd838bdb0513215e0628ad *pdo_sqlsrv-5.10.1.tgz
|
||||
BIN
php_exts/pdo_sqlsrv-5.11.1.tgz
LFS
Normal file
BIN
php_exts/pdo_sqlsrv-5.11.1.tgz
LFS
Normal file
Binary file not shown.
1
php_exts/pdo_sqlsrv-5.11.1.tgz.sha256
Normal file
1
php_exts/pdo_sqlsrv-5.11.1.tgz.sha256
Normal file
@@ -0,0 +1 @@
|
||||
549855a992a1363e4edef7b31be6ab0f9cd6dd9cc446657857750065eae6af89 *pdo_sqlsrv-5.11.1.tgz
|
||||
BIN
php_exts/pdo_sqlsrv-5.12.0.tgz
LFS
Normal file
BIN
php_exts/pdo_sqlsrv-5.12.0.tgz
LFS
Normal file
Binary file not shown.
1
php_exts/pdo_sqlsrv-5.12.0.tgz.sha256
Normal file
1
php_exts/pdo_sqlsrv-5.12.0.tgz.sha256
Normal file
@@ -0,0 +1 @@
|
||||
22f0cb17b45f0deccd0bba072ee0085ff4094cd6ee2acc26f7f924975ef652c6 *pdo_sqlsrv-5.12.0.tgz
|
||||
89
php_exts/pdo_sqlsrv.sh
Normal file
89
php_exts/pdo_sqlsrv.sh
Normal file
@@ -0,0 +1,89 @@
|
||||
#!/bin/bash
|
||||
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:$PATH
|
||||
|
||||
source <(curl -f -s --connect-timeout 10 --retry 3 https://dl.acepanel.net/public.sh)
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Download public.sh failed, please check the network or try again later."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
action=${1}
|
||||
version=${2}
|
||||
php_path="${setup_path}/server/php/${version}"
|
||||
pdo_sqlsrv_version="5.12.0"
|
||||
|
||||
if [ ${version} -le "80" ]; then
|
||||
pdo_sqlsrv_version="5.11.1"
|
||||
fi
|
||||
if [ ${version} -le "74" ]; then
|
||||
pdo_sqlsrv_version="5.10.1"
|
||||
fi
|
||||
|
||||
Install() {
|
||||
# 检查是否已经安装
|
||||
is_install=$(cat ${php_path}/etc/php.ini | grep '^extension=pdo_sqlsrv')
|
||||
if [ "${is_install}" != "" ]; then
|
||||
error "PHP-${version} pdo_sqlsrv already installed"
|
||||
fi
|
||||
|
||||
# 安装依赖
|
||||
if [ ${OS} == "rhel" ]; then
|
||||
dnf install unixODBC-devel -y
|
||||
elif [ ${OS} == "debian" ] || [ ${OS} == "ubuntu" ]; then
|
||||
apt-get install unixodbc-dev -y
|
||||
else
|
||||
error "Unsupported operating system"
|
||||
fi
|
||||
|
||||
cd ${php_path}/src/ext
|
||||
rm -rf pdo_sqlsrv
|
||||
rm -rf pdo_sqlsrv-${pdo_sqlsrv_version}.tgz
|
||||
dl "${php_path}/src/ext" "/php_exts/pdo_sqlsrv-${pdo_sqlsrv_version}.tgz"
|
||||
|
||||
tar -xzf pdo_sqlsrv-${pdo_sqlsrv_version}.tgz
|
||||
mv pdo_sqlsrv-${pdo_sqlsrv_version} pdo_sqlsrv
|
||||
rm -f package.xml
|
||||
rm -f pdo_sqlsrv-${pdo_sqlsrv_version}.tgz
|
||||
cd pdo_sqlsrv
|
||||
${php_path}/bin/phpize
|
||||
./configure --with-php-config=${php_path}/bin/php-config
|
||||
make
|
||||
if [ "$?" != "0" ]; then
|
||||
rm -rf ${php_path}/src/ext/pdo_sqlsrv
|
||||
error "PHP-${version} pdo_sqlsrv compilation failed"
|
||||
fi
|
||||
make install
|
||||
if [ "$?" != "0" ]; then
|
||||
rm -rf ${php_path}/src/ext/pdo_sqlsrv
|
||||
error "PHP-${version} pdo_sqlsrv installation failed"
|
||||
fi
|
||||
|
||||
sed -i '/;panel/a\extension=pdo_sqlsrv' ${php_path}/etc/php.ini
|
||||
|
||||
# 重载PHP
|
||||
systemctl reload php-fpm-${version}.service
|
||||
echo -e $HR
|
||||
echo "PHP-${version} pdo_sqlsrv installation successful"
|
||||
}
|
||||
|
||||
Uninstall() {
|
||||
# 检查是否已经安装
|
||||
is_install=$(cat ${php_path}/etc/php.ini | grep '^extension=pdo_sqlsrv$')
|
||||
if [ "${is_install}" == "" ]; then
|
||||
error "PHP-${version} pdo_sqlsrv not installed"
|
||||
fi
|
||||
|
||||
sed -i '/extension=pdo_sqlsrv/d' ${php_path}/etc/php.ini
|
||||
|
||||
# 重载PHP
|
||||
systemctl reload php-fpm-${version}.service
|
||||
echo -e $HR
|
||||
echo "PHP-${version} pdo_sqlsrv uninstall successful"
|
||||
}
|
||||
|
||||
if [ "$action" == 'install' ]; then
|
||||
Install
|
||||
fi
|
||||
if [ "$action" == 'uninstall' ]; then
|
||||
Uninstall
|
||||
fi
|
||||
1
php_exts/pdo_sqlsrv.sh.sha256
Normal file
1
php_exts/pdo_sqlsrv.sh.sha256
Normal file
@@ -0,0 +1 @@
|
||||
5f944efc937e483e2a09a28022666fbd029400d79dc0c73efbe1c6df3ac927e9 *pdo_sqlsrv.sh
|
||||
BIN
php_exts/php-memcached-3.4.0.zip
LFS
Normal file
BIN
php_exts/php-memcached-3.4.0.zip
LFS
Normal file
Binary file not shown.
1
php_exts/php-memcached-3.4.0.zip.sha256
Normal file
1
php_exts/php-memcached-3.4.0.zip.sha256
Normal file
@@ -0,0 +1 @@
|
||||
cfa66f44e3ebfb75fe510f15cd2e67c97d5631ca0ed08eb359a27a95195f24df *php-memcached-3.4.0.zip
|
||||
BIN
php_exts/phpredis-6.3.0.zip
LFS
Normal file
BIN
php_exts/phpredis-6.3.0.zip
LFS
Normal file
Binary file not shown.
1
php_exts/phpredis-6.3.0.zip.sha256
Normal file
1
php_exts/phpredis-6.3.0.zip.sha256
Normal file
@@ -0,0 +1 @@
|
||||
f25181734f552e4a0f96610b65f6db923957641e7858a1fdc6ca2eaba798d789 *phpredis-6.3.0.zip
|
||||
BIN
php_exts/protobuf-4.33.3.tgz
LFS
Normal file
BIN
php_exts/protobuf-4.33.3.tgz
LFS
Normal file
Binary file not shown.
1
php_exts/protobuf-4.33.3.tgz.sha256
Normal file
1
php_exts/protobuf-4.33.3.tgz.sha256
Normal file
@@ -0,0 +1 @@
|
||||
760149d440ff16ebe65529961d2e74ceacf2164f241545c864705e96b17973e6 *protobuf-4.33.3.tgz
|
||||
73
php_exts/protobuf.sh
Normal file
73
php_exts/protobuf.sh
Normal file
@@ -0,0 +1,73 @@
|
||||
#!/bin/bash
|
||||
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:$PATH
|
||||
|
||||
source <(curl -f -s --connect-timeout 10 --retry 3 https://dl.acepanel.net/public.sh)
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Download public.sh failed, please check the network or try again later."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
action=${1}
|
||||
version=${2}
|
||||
php_path="${setup_path}/server/php/${version}"
|
||||
protobuf_version="4.33.3"
|
||||
|
||||
Install() {
|
||||
# 检查是否已经安装
|
||||
is_install=$(cat ${php_path}/etc/php.ini | grep '^extension=protobuf')
|
||||
if [ "${is_install}" != "" ]; then
|
||||
error "PHP-${version} protobuf already installed"
|
||||
fi
|
||||
|
||||
cd ${php_path}/src/ext
|
||||
rm -rf protobuf
|
||||
rm -rf protobuf-${protobuf_version}.tgz
|
||||
dl "${php_path}/src/ext" "/php_exts/protobuf-${protobuf_version}.tgz"
|
||||
|
||||
tar -xzf protobuf-${protobuf_version}.tgz
|
||||
mv protobuf-${protobuf_version} protobuf
|
||||
rm -f package.xml
|
||||
rm -f protobuf-${protobuf_version}.tgz
|
||||
cd protobuf
|
||||
${php_path}/bin/phpize
|
||||
./configure --with-php-config=${php_path}/bin/php-config
|
||||
make
|
||||
if [ "$?" != "0" ]; then
|
||||
rm -rf ${php_path}/src/ext/protobuf
|
||||
error "PHP-${version} protobuf compilation failed"
|
||||
fi
|
||||
make install
|
||||
if [ "$?" != "0" ]; then
|
||||
rm -rf ${php_path}/src/ext/protobuf
|
||||
error "PHP-${version} protobuf installation failed"
|
||||
fi
|
||||
|
||||
sed -i '/;panel/a\extension=protobuf' ${php_path}/etc/php.ini
|
||||
|
||||
# 重载PHP
|
||||
systemctl reload php-fpm-${version}.service
|
||||
echo -e $HR
|
||||
echo "PHP-${version} protobuf installation successful"
|
||||
}
|
||||
|
||||
Uninstall() {
|
||||
# 检查是否已经安装
|
||||
is_install=$(cat ${php_path}/etc/php.ini | grep '^extension=protobuf$')
|
||||
if [ "${is_install}" == "" ]; then
|
||||
error "PHP-${version} protobuf not installed"
|
||||
fi
|
||||
|
||||
sed -i '/extension=protobuf/d' ${php_path}/etc/php.ini
|
||||
|
||||
# 重载PHP
|
||||
systemctl reload php-fpm-${version}.service
|
||||
echo -e $HR
|
||||
echo "PHP-${version} protobuf uninstall successful"
|
||||
}
|
||||
|
||||
if [ "$action" == 'install' ]; then
|
||||
Install
|
||||
fi
|
||||
if [ "$action" == 'uninstall' ]; then
|
||||
Uninstall
|
||||
fi
|
||||
1
php_exts/protobuf.sh.sha256
Normal file
1
php_exts/protobuf.sh.sha256
Normal file
@@ -0,0 +1 @@
|
||||
6ed1e453612e26445772031fb3bc89f60e99eebb21ef86468945d9477f2dcf21 *protobuf.sh
|
||||
BIN
php_exts/rdkafka-6.0.5.tgz
LFS
Normal file
BIN
php_exts/rdkafka-6.0.5.tgz
LFS
Normal file
Binary file not shown.
1
php_exts/rdkafka-6.0.5.tgz.sha256
Normal file
1
php_exts/rdkafka-6.0.5.tgz.sha256
Normal file
@@ -0,0 +1 @@
|
||||
0af6b665c963c8c7d1109cec738034378d9c8863cbf612c0bd3235e519a708f1 *rdkafka-6.0.5.tgz
|
||||
82
php_exts/rdkafka.sh
Normal file
82
php_exts/rdkafka.sh
Normal file
@@ -0,0 +1,82 @@
|
||||
#!/bin/bash
|
||||
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:$PATH
|
||||
|
||||
source <(curl -f -s --connect-timeout 10 --retry 3 https://dl.acepanel.net/public.sh)
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Download public.sh failed, please check the network or try again later."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
action=${1}
|
||||
version=${2}
|
||||
php_path="${setup_path}/server/php/${version}"
|
||||
rdkafka_version="6.0.5"
|
||||
|
||||
Install() {
|
||||
# 检查是否已经安装
|
||||
is_install=$(cat ${php_path}/etc/php.ini | grep '^extension=rdkafka')
|
||||
if [ "${is_install}" != "" ]; then
|
||||
error "PHP-${version} rdkafka already installed"
|
||||
fi
|
||||
|
||||
# 安装依赖
|
||||
if [ ${OS} == "rhel" ]; then
|
||||
dnf install librdkafka-devel -y
|
||||
elif [ ${OS} == "debian" ] || [ ${OS} == "ubuntu" ]; then
|
||||
apt-get install librdkafka-dev -y
|
||||
else
|
||||
error "Unsupported operating system"
|
||||
fi
|
||||
|
||||
cd ${php_path}/src/ext
|
||||
rm -rf rdkafka
|
||||
rm -rf rdkafka-${rdkafka_version}.tgz
|
||||
dl "${php_path}/src/ext" "/php_exts/rdkafka-${rdkafka_version}.tgz"
|
||||
|
||||
tar -xzf rdkafka-${rdkafka_version}.tgz
|
||||
mv rdkafka-${rdkafka_version} rdkafka
|
||||
rm -f package.xml
|
||||
rm -f rdkafka-${rdkafka_version}.tgz
|
||||
cd rdkafka
|
||||
${php_path}/bin/phpize
|
||||
./configure --with-php-config=${php_path}/bin/php-config
|
||||
make
|
||||
if [ "$?" != "0" ]; then
|
||||
rm -rf ${php_path}/src/ext/rdkafka
|
||||
error "PHP-${version} rdkafka compilation failed"
|
||||
fi
|
||||
make install
|
||||
if [ "$?" != "0" ]; then
|
||||
rm -rf ${php_path}/src/ext/rdkafka
|
||||
error "PHP-${version} rdkafka installation failed"
|
||||
fi
|
||||
|
||||
sed -i '/;panel/a\extension=rdkafka' ${php_path}/etc/php.ini
|
||||
|
||||
# 重载PHP
|
||||
systemctl reload php-fpm-${version}.service
|
||||
echo -e $HR
|
||||
echo "PHP-${version} rdkafka installation successful"
|
||||
}
|
||||
|
||||
Uninstall() {
|
||||
# 检查是否已经安装
|
||||
is_install=$(cat ${php_path}/etc/php.ini | grep '^extension=rdkafka$')
|
||||
if [ "${is_install}" == "" ]; then
|
||||
error "PHP-${version} rdkafka not installed"
|
||||
fi
|
||||
|
||||
sed -i '/extension=rdkafka/d' ${php_path}/etc/php.ini
|
||||
|
||||
# 重载PHP
|
||||
systemctl reload php-fpm-${version}.service
|
||||
echo -e $HR
|
||||
echo "PHP-${version} rdkafka uninstall successful"
|
||||
}
|
||||
|
||||
if [ "$action" == 'install' ]; then
|
||||
Install
|
||||
fi
|
||||
if [ "$action" == 'uninstall' ]; then
|
||||
Uninstall
|
||||
fi
|
||||
1
php_exts/rdkafka.sh.sha256
Normal file
1
php_exts/rdkafka.sh.sha256
Normal file
@@ -0,0 +1 @@
|
||||
7f6c63ba7c9ef3fd4146ddd10028e6fe12615093b6d07414e61bb009382d1ec9 *rdkafka.sh
|
||||
81
php_exts/redis.sh
Normal file
81
php_exts/redis.sh
Normal file
@@ -0,0 +1,81 @@
|
||||
#!/bin/bash
|
||||
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:$PATH
|
||||
|
||||
source <(curl -f -s --connect-timeout 10 --retry 3 https://dl.acepanel.net/public.sh)
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Download public.sh failed, please check the network or try again later."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
action=${1}
|
||||
version=${2}
|
||||
php_path="${setup_path}/server/php/${version}"
|
||||
phpredis_version="6.3.0"
|
||||
|
||||
Install() {
|
||||
# 检查是否已经安装
|
||||
is_install=$(cat ${php_path}/etc/php.ini | grep '^extension=redis$')
|
||||
if [ "${is_install}" != "" ]; then
|
||||
error "PHP-${version} phpredis already installed"
|
||||
fi
|
||||
|
||||
# 安装依赖
|
||||
if [ ${OS} == "rhel" ]; then
|
||||
dnf install libzstd-devel -y
|
||||
elif [ ${OS} == "debian" ] || [ ${OS} == "ubuntu" ]; then
|
||||
apt-get install libzstd-dev -y
|
||||
else
|
||||
error "Unsupported operating system"
|
||||
fi
|
||||
|
||||
cd ${php_path}/src/ext
|
||||
rm -rf phpredis
|
||||
rm -rf phpredis-${phpredis_version}.zip
|
||||
dl "${php_path}/src/ext" "/php_exts/phpredis-${phpredis_version}.zip"
|
||||
|
||||
unzip -o phpredis-${phpredis_version}.zip
|
||||
mv phpredis-${phpredis_version} phpredis
|
||||
rm -f phpredis-${phpredis_version}.zip
|
||||
cd phpredis
|
||||
${php_path}/bin/phpize
|
||||
./configure --with-php-config=${php_path}/bin/php-config --enable-redis-igbinary --enable-redis-zstd
|
||||
make
|
||||
if [ "$?" != "0" ]; then
|
||||
rm -rf ${php_path}/src/ext/phpredis
|
||||
error "PHP-${version} phpredis compilation failed"
|
||||
fi
|
||||
make install
|
||||
if [ "$?" != "0" ]; then
|
||||
rm -rf ${php_path}/src/ext/phpredis
|
||||
error "PHP-${version} phpredis installation failed"
|
||||
fi
|
||||
|
||||
sed -i '/;panel/a\extension=redis' ${php_path}/etc/php.ini
|
||||
|
||||
# 重载PHP
|
||||
systemctl reload php-fpm-${version}.service
|
||||
echo -e $HR
|
||||
echo "PHP-${version} phpredis installation successful"
|
||||
}
|
||||
|
||||
Uninstall() {
|
||||
# 检查是否已经安装
|
||||
is_install=$(cat ${php_path}/etc/php.ini | grep '^extension=redis$')
|
||||
if [ "${is_install}" == "" ]; then
|
||||
error "PHP-${version} phpredis not installed"
|
||||
fi
|
||||
|
||||
sed -i '/extension=redis/d' ${php_path}/etc/php.ini
|
||||
|
||||
# 重载PHP
|
||||
systemctl reload php-fpm-${version}.service
|
||||
echo -e $HR
|
||||
echo "PHP-${version} phpredis uninstall successful"
|
||||
}
|
||||
|
||||
if [ "$action" == 'install' ]; then
|
||||
Install
|
||||
fi
|
||||
if [ "$action" == 'uninstall' ]; then
|
||||
Uninstall
|
||||
fi
|
||||
1
php_exts/redis.sh.sha256
Normal file
1
php_exts/redis.sh.sha256
Normal file
@@ -0,0 +1 @@
|
||||
a7cb29c88791a940f57def633bf1f100473debc43953e23726490c0499a7c9a2 *redis.sh
|
||||
BIN
php_exts/sqlsrv-5.10.1.tgz
LFS
Normal file
BIN
php_exts/sqlsrv-5.10.1.tgz
LFS
Normal file
Binary file not shown.
1
php_exts/sqlsrv-5.10.1.tgz.sha256
Normal file
1
php_exts/sqlsrv-5.10.1.tgz.sha256
Normal file
@@ -0,0 +1 @@
|
||||
5cdaedb4d8a286343e6b3b99992d9fcb44a8fb69dd02aa5d7bc20eb2ea5e59d2 *sqlsrv-5.10.1.tgz
|
||||
BIN
php_exts/sqlsrv-5.11.1.tgz
LFS
Normal file
BIN
php_exts/sqlsrv-5.11.1.tgz
LFS
Normal file
Binary file not shown.
1
php_exts/sqlsrv-5.11.1.tgz.sha256
Normal file
1
php_exts/sqlsrv-5.11.1.tgz.sha256
Normal file
@@ -0,0 +1 @@
|
||||
678ab60174be56b09c6916307700e716a4ff266ad53e43990a9d9740d4728463 *sqlsrv-5.11.1.tgz
|
||||
BIN
php_exts/sqlsrv-5.12.0.tgz
LFS
Normal file
BIN
php_exts/sqlsrv-5.12.0.tgz
LFS
Normal file
Binary file not shown.
1
php_exts/sqlsrv-5.12.0.tgz.sha256
Normal file
1
php_exts/sqlsrv-5.12.0.tgz.sha256
Normal file
@@ -0,0 +1 @@
|
||||
a9ebb880b2a558d3d6684f6e6802c53c5bffa49e1ee60d1473a7124fc9cb72ad *sqlsrv-5.12.0.tgz
|
||||
89
php_exts/sqlsrv.sh
Normal file
89
php_exts/sqlsrv.sh
Normal file
@@ -0,0 +1,89 @@
|
||||
#!/bin/bash
|
||||
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:$PATH
|
||||
|
||||
source <(curl -f -s --connect-timeout 10 --retry 3 https://dl.acepanel.net/public.sh)
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Download public.sh failed, please check the network or try again later."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
action=${1}
|
||||
version=${2}
|
||||
php_path="${setup_path}/server/php/${version}"
|
||||
sqlsrv_version="5.12.0"
|
||||
|
||||
if [ ${version} -le "80" ]; then
|
||||
sqlsrv_version="5.11.1"
|
||||
fi
|
||||
if [ ${version} -le "74" ]; then
|
||||
sqlsrv_version="5.10.1"
|
||||
fi
|
||||
|
||||
Install() {
|
||||
# 检查是否已经安装
|
||||
is_install=$(cat ${php_path}/etc/php.ini | grep '^extension=sqlsrv')
|
||||
if [ "${is_install}" != "" ]; then
|
||||
error "PHP-${version} sqlsrv already installed"
|
||||
fi
|
||||
|
||||
# 安装依赖
|
||||
if [ ${OS} == "rhel" ]; then
|
||||
dnf install unixODBC-devel -y
|
||||
elif [ ${OS} == "debian" ] || [ ${OS} == "ubuntu" ]; then
|
||||
apt-get install unixodbc-dev -y
|
||||
else
|
||||
error "Unsupported operating system"
|
||||
fi
|
||||
|
||||
cd ${php_path}/src/ext
|
||||
rm -rf sqlsrv
|
||||
rm -rf sqlsrv-${sqlsrv_version}.tgz
|
||||
dl "${php_path}/src/ext" "/php_exts/sqlsrv-${sqlsrv_version}.tgz"
|
||||
|
||||
tar -xzf sqlsrv-${sqlsrv_version}.tgz
|
||||
mv sqlsrv-${sqlsrv_version} sqlsrv
|
||||
rm -f package.xml
|
||||
rm -f sqlsrv-${sqlsrv_version}.tgz
|
||||
cd sqlsrv
|
||||
${php_path}/bin/phpize
|
||||
./configure --with-php-config=${php_path}/bin/php-config
|
||||
make
|
||||
if [ "$?" != "0" ]; then
|
||||
rm -rf ${php_path}/src/ext/sqlsrv
|
||||
error "PHP-${version} sqlsrv compilation failed"
|
||||
fi
|
||||
make install
|
||||
if [ "$?" != "0" ]; then
|
||||
rm -rf ${php_path}/src/ext/sqlsrv
|
||||
error "PHP-${version} sqlsrv installation failed"
|
||||
fi
|
||||
|
||||
sed -i '/;panel/a\extension=sqlsrv' ${php_path}/etc/php.ini
|
||||
|
||||
# 重载PHP
|
||||
systemctl reload php-fpm-${version}.service
|
||||
echo -e $HR
|
||||
echo "PHP-${version} sqlsrv installation successful"
|
||||
}
|
||||
|
||||
Uninstall() {
|
||||
# 检查是否已经安装
|
||||
is_install=$(cat ${php_path}/etc/php.ini | grep '^extension=sqlsrv$')
|
||||
if [ "${is_install}" == "" ]; then
|
||||
error "PHP-${version} sqlsrv not installed"
|
||||
fi
|
||||
|
||||
sed -i '/extension=sqlsrv/d' ${php_path}/etc/php.ini
|
||||
|
||||
# 重载PHP
|
||||
systemctl reload php-fpm-${version}.service
|
||||
echo -e $HR
|
||||
echo "PHP-${version} sqlsrv uninstall successful"
|
||||
}
|
||||
|
||||
if [ "$action" == 'install' ]; then
|
||||
Install
|
||||
fi
|
||||
if [ "$action" == 'uninstall' ]; then
|
||||
Uninstall
|
||||
fi
|
||||
1
php_exts/sqlsrv.sh.sha256
Normal file
1
php_exts/sqlsrv.sh.sha256
Normal file
@@ -0,0 +1 @@
|
||||
e7661b564110a4da66840d59cb676b169ead19b59570ae5e7c7672138a140f7b *sqlsrv.sh
|
||||
BIN
php_exts/ssh2-1.4.1.tgz
LFS
Normal file
BIN
php_exts/ssh2-1.4.1.tgz
LFS
Normal file
Binary file not shown.
1
php_exts/ssh2-1.4.1.tgz.sha256
Normal file
1
php_exts/ssh2-1.4.1.tgz.sha256
Normal file
@@ -0,0 +1 @@
|
||||
7bca5b23f731db9d8ed0aea5db9bb15da8ff133b0fbba96102b82e95da4d8764 *ssh2-1.4.1.tgz
|
||||
82
php_exts/ssh2.sh
Normal file
82
php_exts/ssh2.sh
Normal file
@@ -0,0 +1,82 @@
|
||||
#!/bin/bash
|
||||
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:$PATH
|
||||
|
||||
source <(curl -f -s --connect-timeout 10 --retry 3 https://dl.acepanel.net/public.sh)
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Download public.sh failed, please check the network or try again later."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
action=${1}
|
||||
version=${2}
|
||||
php_path="${setup_path}/server/php/${version}"
|
||||
ssh2_version="1.4.1"
|
||||
|
||||
Install() {
|
||||
# 检查是否已经安装
|
||||
is_install=$(cat ${php_path}/etc/php.ini | grep '^extension=ssh2')
|
||||
if [ "${is_install}" != "" ]; then
|
||||
error "PHP-${version} ssh2 already installed"
|
||||
fi
|
||||
|
||||
# 安装依赖
|
||||
if [ ${OS} == "rhel" ]; then
|
||||
dnf install libssh2-devel -y
|
||||
elif [ ${OS} == "debian" ] || [ ${OS} == "ubuntu" ]; then
|
||||
apt-get install libssh2-1-dev -y
|
||||
else
|
||||
error "Unsupported operating system"
|
||||
fi
|
||||
|
||||
cd ${php_path}/src/ext
|
||||
rm -rf ssh2
|
||||
rm -rf ssh2-${ssh2_version}.tgz
|
||||
dl "${php_path}/src/ext" "/php_exts/ssh2-${ssh2_version}.tgz"
|
||||
|
||||
tar -xzf ssh2-${ssh2_version}.tgz
|
||||
mv ssh2-${ssh2_version} ssh2
|
||||
rm -f package.xml
|
||||
rm -f ssh2-${ssh2_version}.tgz
|
||||
cd ssh2
|
||||
${php_path}/bin/phpize
|
||||
./configure --with-php-config=${php_path}/bin/php-config
|
||||
make
|
||||
if [ "$?" != "0" ]; then
|
||||
rm -rf ${php_path}/src/ext/ssh2
|
||||
error "PHP-${version} ssh2 compilation failed"
|
||||
fi
|
||||
make install
|
||||
if [ "$?" != "0" ]; then
|
||||
rm -rf ${php_path}/src/ext/ssh2
|
||||
error "PHP-${version} ssh2 installation failed"
|
||||
fi
|
||||
|
||||
sed -i '/;panel/a\extension=ssh2' ${php_path}/etc/php.ini
|
||||
|
||||
# 重载PHP
|
||||
systemctl reload php-fpm-${version}.service
|
||||
echo -e $HR
|
||||
echo "PHP-${version} ssh2 installation successful"
|
||||
}
|
||||
|
||||
Uninstall() {
|
||||
# 检查是否已经安装
|
||||
is_install=$(cat ${php_path}/etc/php.ini | grep '^extension=ssh2$')
|
||||
if [ "${is_install}" == "" ]; then
|
||||
error "PHP-${version} ssh2 not installed"
|
||||
fi
|
||||
|
||||
sed -i '/extension=ssh2/d' ${php_path}/etc/php.ini
|
||||
|
||||
# 重载PHP
|
||||
systemctl reload php-fpm-${version}.service
|
||||
echo -e $HR
|
||||
echo "PHP-${version} ssh2 uninstall successful"
|
||||
}
|
||||
|
||||
if [ "$action" == 'install' ]; then
|
||||
Install
|
||||
fi
|
||||
if [ "$action" == 'uninstall' ]; then
|
||||
Uninstall
|
||||
fi
|
||||
1
php_exts/ssh2.sh.sha256
Normal file
1
php_exts/ssh2.sh.sha256
Normal file
@@ -0,0 +1 @@
|
||||
bec9a68f9eef06eb9d70a2c43f29c2d073492ceff25e6e025c06eb1058d5d2b4 *ssh2.sh
|
||||
BIN
php_exts/swoole-src-4.8.13.zip
LFS
Normal file
BIN
php_exts/swoole-src-4.8.13.zip
LFS
Normal file
Binary file not shown.
1
php_exts/swoole-src-4.8.13.zip.sha256
Normal file
1
php_exts/swoole-src-4.8.13.zip.sha256
Normal file
@@ -0,0 +1 @@
|
||||
31474a89ba6d84285ad1d68db1cc454fcd73dd69bc7843867de3c5a6fab4bcd1 *swoole-src-4.8.13.zip
|
||||
BIN
php_exts/swoole-src-5.1.8.zip
LFS
Normal file
BIN
php_exts/swoole-src-5.1.8.zip
LFS
Normal file
Binary file not shown.
1
php_exts/swoole-src-5.1.8.zip.sha256
Normal file
1
php_exts/swoole-src-5.1.8.zip.sha256
Normal file
@@ -0,0 +1 @@
|
||||
469579e6df58766cb0f5612a341e426cfeaa746fb7bf44f9b7ba2197e90606b4 *swoole-src-5.1.8.zip
|
||||
BIN
php_exts/swoole-src-6.1.6.zip
LFS
Normal file
BIN
php_exts/swoole-src-6.1.6.zip
LFS
Normal file
Binary file not shown.
1
php_exts/swoole-src-6.1.6.zip.sha256
Normal file
1
php_exts/swoole-src-6.1.6.zip.sha256
Normal file
@@ -0,0 +1 @@
|
||||
1c56b6687d3988f57acffb131e33c589211f764853e5c50b7442e9ba28e2de31 *swoole-src-6.1.6.zip
|
||||
79
php_exts/swoole.sh
Normal file
79
php_exts/swoole.sh
Normal file
@@ -0,0 +1,79 @@
|
||||
#!/bin/bash
|
||||
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:$PATH
|
||||
|
||||
source <(curl -f -s --connect-timeout 10 --retry 3 https://dl.acepanel.net/public.sh)
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Download public.sh failed, please check the network or try again later."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
action=${1}
|
||||
version=${2}
|
||||
php_path="${setup_path}/server/php/${version}"
|
||||
swoole_version="6.1.6"
|
||||
|
||||
if [ ${version} -le "81" ]; then
|
||||
swoole_version="5.1.8"
|
||||
fi
|
||||
if [ ${version} -le "74" ]; then
|
||||
swoole_version="4.8.13"
|
||||
fi
|
||||
|
||||
Install() {
|
||||
# 检查是否已经安装
|
||||
is_install=$(cat ${php_path}/etc/php.ini | grep '^extension=swoole')
|
||||
if [ "${is_install}" != "" ]; then
|
||||
error "PHP-${version} swoole already installed"
|
||||
fi
|
||||
|
||||
cd ${php_path}/src/ext
|
||||
rm -rf swoole
|
||||
rm -rf swoole-src-${swoole_version}.zip
|
||||
dl "${php_path}/src/ext" "/php_exts/swoole-src-${swoole_version}.zip"
|
||||
|
||||
unzip swoole-src-${swoole_version}.zip
|
||||
mv swoole-src-${swoole_version} swoole
|
||||
rm -f swoole-src-${swoole_version}.zip
|
||||
cd swoole
|
||||
${php_path}/bin/phpize
|
||||
./configure --with-php-config=${php_path}/bin/php-config --enable-openssl --enable-swoole-curl
|
||||
make
|
||||
if [ "$?" != "0" ]; then
|
||||
rm -rf ${php_path}/src/ext/swoole
|
||||
error "PHP-${version} swoole compilation failed"
|
||||
fi
|
||||
make install
|
||||
if [ "$?" != "0" ]; then
|
||||
rm -rf ${php_path}/src/ext/swoole
|
||||
error "PHP-${version} swoole installation failed"
|
||||
fi
|
||||
|
||||
sed -i '/;panel/a\extension=swoole' ${php_path}/etc/php.ini
|
||||
|
||||
# 重载PHP
|
||||
systemctl reload php-fpm-${version}.service
|
||||
echo -e $HR
|
||||
echo "PHP-${version} swoole installation successful"
|
||||
}
|
||||
|
||||
Uninstall() {
|
||||
# 检查是否已经安装
|
||||
is_install=$(cat ${php_path}/etc/php.ini | grep '^extension=swoole$')
|
||||
if [ "${is_install}" == "" ]; then
|
||||
error "PHP-${version} swoole not installed"
|
||||
fi
|
||||
|
||||
sed -i '/extension=swoole/d' ${php_path}/etc/php.ini
|
||||
|
||||
# 重载PHP
|
||||
systemctl reload php-fpm-${version}.service
|
||||
echo -e $HR
|
||||
echo "PHP-${version} swoole uninstall successful"
|
||||
}
|
||||
|
||||
if [ "$action" == 'install' ]; then
|
||||
Install
|
||||
fi
|
||||
if [ "$action" == 'uninstall' ]; then
|
||||
Uninstall
|
||||
fi
|
||||
1
php_exts/swoole.sh.sha256
Normal file
1
php_exts/swoole.sh.sha256
Normal file
@@ -0,0 +1 @@
|
||||
73c9a17e7fbda42b910386666ac10d15746ffbf66e8fb1e2528564225205112d *swoole.sh
|
||||
BIN
php_exts/swow-1.6.2.zip
LFS
Normal file
BIN
php_exts/swow-1.6.2.zip
LFS
Normal file
Binary file not shown.
1
php_exts/swow-1.6.2.zip.sha256
Normal file
1
php_exts/swow-1.6.2.zip.sha256
Normal file
@@ -0,0 +1 @@
|
||||
ac21c52b9b2f51e9bba8d89a9a65f4633a5a168ed7ad9ce9ef3b0154ed2bbcee *swow-1.6.2.zip
|
||||
BIN
php_exts/xdebug-3.1.6.tgz
LFS
Normal file
BIN
php_exts/xdebug-3.1.6.tgz
LFS
Normal file
Binary file not shown.
1
php_exts/xdebug-3.1.6.tgz.sha256
Normal file
1
php_exts/xdebug-3.1.6.tgz.sha256
Normal file
@@ -0,0 +1 @@
|
||||
554eca0b4d5b7b93cb2258fab0b0bd84cc8721e74322a2255c14e137cbcad5d2 *xdebug-3.1.6.tgz
|
||||
BIN
php_exts/xdebug-3.5.0.tgz
LFS
Normal file
BIN
php_exts/xdebug-3.5.0.tgz
LFS
Normal file
Binary file not shown.
1
php_exts/xdebug-3.5.0.tgz.sha256
Normal file
1
php_exts/xdebug-3.5.0.tgz.sha256
Normal file
@@ -0,0 +1 @@
|
||||
f6daf55a5c7adadb07dd2af25ff78b1cc9b1c58d6cc442a463eba015b678aabf *xdebug-3.5.0.tgz
|
||||
77
php_exts/xdebug.sh
Normal file
77
php_exts/xdebug.sh
Normal file
@@ -0,0 +1,77 @@
|
||||
#!/bin/bash
|
||||
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:$PATH
|
||||
|
||||
source <(curl -f -s --connect-timeout 10 --retry 3 https://dl.acepanel.net/public.sh)
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Download public.sh failed, please check the network or try again later."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
action=${1}
|
||||
version=${2}
|
||||
php_path="${setup_path}/server/php/${version}"
|
||||
xdebug_version="3.5.0"
|
||||
|
||||
if [ ${version} -le "74" ]; then
|
||||
xdebug_version="3.1.6"
|
||||
fi
|
||||
|
||||
Install() {
|
||||
# 检查是否已经安装
|
||||
is_install=$(cat ${php_path}/etc/php.ini | grep '^zend_extension=xdebug')
|
||||
if [ "${is_install}" != "" ]; then
|
||||
error "PHP-${version} xdebug already installed"
|
||||
fi
|
||||
|
||||
cd ${php_path}/src/ext
|
||||
rm -rf xdebug
|
||||
rm -rf xdebug-${xdebug_version}.tgz
|
||||
dl "${php_path}/src/ext" "/php_exts/xdebug-${xdebug_version}.tgz"
|
||||
|
||||
tar -xzf xdebug-${xdebug_version}.tgz
|
||||
mv xdebug-${xdebug_version} xdebug
|
||||
rm -f package.xml
|
||||
rm -f xdebug-${xdebug_version}.tgz
|
||||
cd xdebug
|
||||
${php_path}/bin/phpize
|
||||
./configure --with-php-config=${php_path}/bin/php-config
|
||||
make
|
||||
if [ "$?" != "0" ]; then
|
||||
rm -rf ${php_path}/src/ext/xdebug
|
||||
error "PHP-${version} xdebug compilation failed"
|
||||
fi
|
||||
make install
|
||||
if [ "$?" != "0" ]; then
|
||||
rm -rf ${php_path}/src/ext/xdebug
|
||||
error "PHP-${version} xdebug installation failed"
|
||||
fi
|
||||
|
||||
sed -i '/;panel/a\zend_extension=xdebug' ${php_path}/etc/php.ini
|
||||
|
||||
# 重载PHP
|
||||
systemctl reload php-fpm-${version}.service
|
||||
echo -e $HR
|
||||
echo "PHP-${version} xdebug installation successful"
|
||||
}
|
||||
|
||||
Uninstall() {
|
||||
# 检查是否已经安装
|
||||
is_install=$(cat ${php_path}/etc/php.ini | grep '^zend_extension=xdebug$')
|
||||
if [ "${is_install}" == "" ]; then
|
||||
error "PHP-${version} xdebug not installed"
|
||||
fi
|
||||
|
||||
sed -i '/zend_extension=xdebug/d' ${php_path}/etc/php.ini
|
||||
|
||||
# 重载PHP
|
||||
systemctl reload php-fpm-${version}.service
|
||||
echo -e $HR
|
||||
echo "PHP-${version} xdebug uninstall successful"
|
||||
}
|
||||
|
||||
if [ "$action" == 'install' ]; then
|
||||
Install
|
||||
fi
|
||||
if [ "$action" == 'uninstall' ]; then
|
||||
Uninstall
|
||||
fi
|
||||
1
php_exts/xdebug.sh.sha256
Normal file
1
php_exts/xdebug.sh.sha256
Normal file
@@ -0,0 +1 @@
|
||||
4138cc6395a0606397f19d29e640631f78e707d3d2f546a13171213dd41c59b4 *xdebug.sh
|
||||
BIN
php_exts/xhprof-2.3.10.tgz
LFS
Normal file
BIN
php_exts/xhprof-2.3.10.tgz
LFS
Normal file
Binary file not shown.
1
php_exts/xhprof-2.3.10.tgz.sha256
Normal file
1
php_exts/xhprof-2.3.10.tgz.sha256
Normal file
@@ -0,0 +1 @@
|
||||
251aee99c2726ebc6126e1ff0bb2db6e2d5fd22056aa335e84db9f1055d59d95 *xhprof-2.3.10.tgz
|
||||
73
php_exts/xhprof.sh
Normal file
73
php_exts/xhprof.sh
Normal file
@@ -0,0 +1,73 @@
|
||||
#!/bin/bash
|
||||
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:$PATH
|
||||
|
||||
source <(curl -f -s --connect-timeout 10 --retry 3 https://dl.acepanel.net/public.sh)
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Download public.sh failed, please check the network or try again later."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
action=${1}
|
||||
version=${2}
|
||||
php_path="${setup_path}/server/php/${version}"
|
||||
xhprof_version="2.3.10"
|
||||
|
||||
Install() {
|
||||
# 检查是否已经安装
|
||||
is_install=$(cat ${php_path}/etc/php.ini | grep '^extension=xhprof')
|
||||
if [ "${is_install}" != "" ]; then
|
||||
error "PHP-${version} xhprof already installed"
|
||||
fi
|
||||
|
||||
cd ${php_path}/src/ext
|
||||
rm -rf xhprof
|
||||
rm -rf xhprof-${xhprof_version}.tgz
|
||||
dl "${php_path}/src/ext" "/php_exts/xhprof-${xhprof_version}.tgz"
|
||||
|
||||
tar -xzf xhprof-${xhprof_version}.tgz
|
||||
mv xhprof-${xhprof_version} xhprof
|
||||
rm -f package.xml
|
||||
rm -f xhprof-${xhprof_version}.tgz
|
||||
cd xhprof/extension
|
||||
${php_path}/bin/phpize
|
||||
./configure --with-php-config=${php_path}/bin/php-config
|
||||
make
|
||||
if [ "$?" != "0" ]; then
|
||||
rm -rf ${php_path}/src/ext/xhprof
|
||||
error "PHP-${version} xhprof compilation failed"
|
||||
fi
|
||||
make install
|
||||
if [ "$?" != "0" ]; then
|
||||
rm -rf ${php_path}/src/ext/xhprof
|
||||
error "PHP-${version} xhprof installation failed"
|
||||
fi
|
||||
|
||||
sed -i '/;panel/a\extension=xhprof' ${php_path}/etc/php.ini
|
||||
|
||||
# 重载PHP
|
||||
systemctl reload php-fpm-${version}.service
|
||||
echo -e $HR
|
||||
echo "PHP-${version} xhprof installation successful"
|
||||
}
|
||||
|
||||
Uninstall() {
|
||||
# 检查是否已经安装
|
||||
is_install=$(cat ${php_path}/etc/php.ini | grep '^extension=xhprof$')
|
||||
if [ "${is_install}" == "" ]; then
|
||||
error "PHP-${version} xhprof not installed"
|
||||
fi
|
||||
|
||||
sed -i '/extension=xhprof/d' ${php_path}/etc/php.ini
|
||||
|
||||
# 重载PHP
|
||||
systemctl reload php-fpm-${version}.service
|
||||
echo -e $HR
|
||||
echo "PHP-${version} xhprof uninstall successful"
|
||||
}
|
||||
|
||||
if [ "$action" == 'install' ]; then
|
||||
Install
|
||||
fi
|
||||
if [ "$action" == 'uninstall' ]; then
|
||||
Uninstall
|
||||
fi
|
||||
1
php_exts/xhprof.sh.sha256
Normal file
1
php_exts/xhprof.sh.sha256
Normal file
@@ -0,0 +1 @@
|
||||
52517de97119ac13d65570a0a06fe53a07e7ed6a87dbcd14d2d349ef5bda5b36 *xhprof.sh
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user