宝塔php 7.2 安装 mcrypt 扩展
yum install libmcrypt libmcrypt-devel mcrypt mhash
wget http://pecl.php.net/get/mcrypt-1.0.2.tgz
tar xf mcrypt-1.0.2.tgz
cd mcrypt-1.0.2
/www/server/php/72/bin/phpize
./configure --with-php-config=/www/server/php/72/bin/php-config && make && make install
BT-Panel Linux自动磁盘挂载工具1.4
说明:
1:本工具默认将数据盘挂载到/www目录
2:若您的服务器之前安装过Windows系统,需要手动删除NTFS分区,挂载工具会直接跳过NTFS分区
3:若您的磁盘已分区,且未挂载,工具会自动将分区挂载到/www
4:若您的磁盘是新磁盘,工具会自动分区并格式化成ext4文件系统
5:本工具只自动挂载一个分区,若您有多块数据盘,请手动挂载未被自动挂载的磁盘
Centos/Fedora:
yum install wget -y && wget -O auto_disk.sh http://download.bt.cn/tools/auto_disk.sh && bash auto_disk.sh
Ubuntu:
wget -O auto_disk.sh http://download.bt.cn/tools/auto_disk.sh && sudo bash auto_disk.sh
Debian:
wget -O auto_disk.sh http://download.bt.cn/tools/auto_disk.sh && bash auto_disk.sh
更改目录:
1.如果已经挂载了,先umount
2.在下载这个自动挂载脚本的目录下找到脚本auto_diks.sh
修改下载的auto_disk.sh 脚本,找到 setup_path 这个变量的路径,原路径为 /www,这里我改成了/extendData
然后chmod +x ./auto_disk.sh,再重新执行
./auto_diks.sh
nodejs数据库连接错误
Access denied for user ‘xxx’@’localhost’ (using password: YES) 坑爹的nodejs连接,解决方法是在my.ini 中加入 skip-grant-tables 再重启
BT安装
1.Center6下安装Linux面板5.9 稳定版:yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh
2.Center7下安装 Linux面板6.9安装命令: yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && bash install.sh
SSL站点删除后重新申请Let’s Encrypt证书失败
出错信息:
Certificate not yet due for renewal; no action taken.——————————————————————————-
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Cert not yet due for renewal
Keeping the existing certificate
解决办法:删除 /etc/letsencrypt 目录下相应证书文件
ssh 修复宝塔面板
恢复到7.1.0:curl http://download.bt.cn/install/update6.sh|bash
宝塔安装php7.4时未安装 ZIP 出现Class ‘ZipArchive’ not found
安装zip以及依赖libzip
yum install openssl-devel bzip2 bzip2-devel
cmake 需要v3版本
直接安装
yum install -y cmake3
源码安装
wget https://github.com/Kitware/CMake/releases/download/v3.16.2/cmake-3.16.2.tar.gz
tar -zxf cmake-3.16.2.tar.gz
cd cmake-3.16.2
./bootstrap –prefix=/usr –datadir=share/cmake –docdir=doc/cmake && make
sudo make install
检查是否正确安装
cmake –version 或 cmake3 –version
安装 libzip 1.7.3
wget https://libzip.org/download/libzip-1.7.3.tar.gz
tar -xvf libzip-1.7.3.tar.gz
编译安装
mkdir build && cd build && cmake3 -DCMAKE_INSTALL_PREFIX=/usr .. && make && sudo make install
安装 zip-1.19.2
wget http://pecl.php.net/get/zip-1.19.2.tgz
cd zip-1.19.2
/www/server/php/74/bin/phpize
./configure –with-php-config=/www/server/php/74/bin/php-config
make && make install
配置
echo “extension = zip.so” >> /www/server/php/74/etc/php.ini
# Off 改为 On
zlib.output_compression = On
转载请注明:清韵逸-博客生活分享 » 宝塔问题集锦