一、配置服务端。
1.执行以下命令安装:
log_stderr=true
logfile=/var/log/shadowsocks.log
simple-local-avatars
domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init
action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /www/wwwroot/tangjiankang.top/wp-includes/functions.php on line 6114一、配置服务端。
1.执行以下命令安装:
cd /usr/local/directadmin/data/templates
cp virtual_host2*.conf custom
cd custom
添加下方代码至virtual_host2*.conf文件中的“<VirtualHost |IP|:|PORT_80| |MULTI_IP|>”类似这个下方即可
SetEnv PHP_INI_SCAN_DIR /usr/local/directadmin/data/users/|USER|/php/
vi /usr/local/directadmin/scripts/custom/user_create_post.sh
#!/bin/sh
HOME=/home/$username
OBD=”${HOME}/:/tmp:/var/tmp:/usr/local/lib/php/”
P=/usr/local/directadmin/data/users/$username
if [ ! -e ${P}/php ]; then
mkdir ${P}/php
fi
PI=${P}/php/php.ini
cp -f /usr/local/lib/php.ini.template ${PI}
TMP=”perl -pi -e ‘s#open_basedir = OBD#open_basedir = ${OBD}#’ ${PI}”
eval $TMP
TMP=”perl -pi -e ‘s#HOME#${HOME}#’ ${PI}”
eval $TMP
exit 0;
vi /usr/local/lib/php.ini.template
[PHP]
open_basedir = OBD
mail.log = HOME/.php/php-mail.log
vi add_php_ini.sh(任意位置)
#!/bin/sh
for i in `ls /usr/local/directadmin/data/users`; do
{
username=$i /usr/local/directadmin/scripts/custom/user_create_post.sh
};
done;
exit 0;
./user_create_post.sh
./add_php_ini.sh
此教程适用系统:Linux(CentOS,Debian,Ubuntu,Fedora)
通常新开通的Linux云服务器数据盘都未做分区和格式化。在进行数据盘挂载之前我们要先进行分区以及格式化操作。注意,挂载操作会清空数据,请确认挂载盘内无重要数据!
以下是分区、数据盘挂载详细步骤:
一、查看数据盘。
二、对数据盘进行分区
三、格式化新建的分区。
四、创建挂载目录,挂载新分区。
五、写入硬盘启动信息。
恭喜您,CentOS系统下的数据盘挂载完成。
前提:原有系统能正常开机操作。
下面我们以安装centos6.9为例(原系统也为centos)
cd /boot
wget http://mirror.centos.org/centos-6/6.9/os/x86_64/isolinux/vmlinuz
mv vmlinuz vmlinuz-c63
wget http://mirror.centos.org/centos-6/6.9/os/x86_64/isolinux/initrd.img
mv initrd.img initrd-c63.img
title CentOS 6.3 Install
root (hd0,0)
kernel /boot/vmlinuz-c63 ro method=http://mirror.centos.org/centos-6/6.9/os/x86_64
initrd /boot/initrd-c63.img
3. :wq保存退出重启开始安装