This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Pages: [1]
1
CentOS-WebPanel Bugs / Re: cPanel Account Restore - subdomains directories
« on: August 30, 2019, 01:32:49 AM »
I have created simple script to fix that for me.
it will keep all user home directory files/directories and exclude not necessary directories of cpanel conf...
how to use :
it will keep all user home directory files/directories and exclude not necessary directories of cpanel conf...
how to use :
- restoration file should be exist in '/home' example: '/home/cpmove-testuser.tar.gz'.
- do cpanel restoration from cwp admin before run the script.
- and now place the script in new file in your server and run it example: '/cpanelfix testuser' username as argument.
Code: [Select]
#!/bin/bash
if [ -z "$1" ]
then
"username argument not exist"
else
USERNAME="$1"
file="/home/cpmove-$USERNAME.tar.gz"
if [ -f "$file" ]
then
mkdir /home/"$USERNAME"/tmp/bkup
tar -C /home/"$USERNAME"/tmp/bkup -xzf "$file" */homedir/ --exclude='*/homedir/.*' --exclude='*/homedir/bin' --exclude='*/homedir/cpanel3-skel' --exclude='*/homedir/cpanelbranding' --exclude='*/homedir/etc' --exclude='*/homedir/logs' --exclude='*/homedir/mail' --exclude='*/homedir/perl' --exclude='*/homedir/perl5' --exclude='*/homedir/public_ftp' --exclude='*/homedir/rvadmin' --exclude='*/homedir/ssl' --exclude='*/homedir/tmp'
cp -rlf /home/"$USERNAME"/tmp/bkup/*/homedir/* /home/"$USERNAME"/ && rm -r /home/"$USERNAME"/tmp/bkup/*
else
echo "restoration file not exist"
fi
fi
2
CentOS-WebPanel Bugs / cPanel Account Restore - subdomains directories
« on: August 29, 2019, 11:05:08 PM »
I have tried to restore cPanel account to cwp, and I have noticed that subdomains directories
ex:
ex:
Code: [Select]
/home/testacc/test.example.com/
has only default index page of cwp and not files from restoration file.
3
CentOS-WebPanel Bugs / Re: update 0.9.8.864 user file manager
« on: August 18, 2019, 10:44:29 PM »
fixed in update 0.9.8.866 thanks.
4
CentOS-WebPanel Bugs / update 0.9.8.864 user file manager
« on: August 18, 2019, 02:11:37 PM »
After update 0.9.8.864 can't access the file manager from the user panel where redirects to the login page every time
5
CentOS-WebPanel Bugs / Default Theme not applied
« on: August 02, 2019, 10:29:38 PM »
I added new theme for user panel and I chose it to be default theme from admin panel, when I create new user account and try login to him,the login page display login.html template from my default theme, but after login he use original theme,
even the option 'Allow users to change theme' disabled.
I found the problem exactly in /home/<username>/.conf/cwp.ini
even the option 'Allow users to change theme' disabled.
I found the problem exactly in /home/<username>/.conf/cwp.ini
Code: [Select]
LANG=en
THEME=original
EMAIL=
Parameter 'THEME' has value 'original', it need to be name of default theme. or ignore it if option 'Allow users to change theme' disabled.
Pages: [1]