This is for school use. There are about 30 students cPanel account under WHM.
I want to download "public_html" folder from all of them at one time to local machine.
Otherwise, I have to login each account to download it manually.
Is that possible to do that?
Related
I use a server with WHM. I created monthly backup, it makes full server backup to /backup folder. I can create targz file with SSH, I know how to download gziped file with pscp, but I don't know how to download it from server with link in browser. I think it's possible, because sysadmin before me did it.
Can anybody help me with that?
You want to generate a link that you can access through your browser and will be served up by the web server? (your question is a little vague)
These files are stored out of the standard web directories so you could create a symlink in the public_html folder of your website to /backups and call it something obscure so it can't be easily scraped.
So for example public_html/my-secure-backup-folder can be a symlink to /backups.
Guide on creating a symlink here: https://www.namecheap.com/support/knowledgebase/article.aspx/9561/29/how-to-create-a-symbolic-link-in-cpanel
Easiest way to proceed:
Ssh to your WHM server then decide which cpanel account you need to backup. Create a full backup for that cpanel:
cd /home/cpaneluser/public_html
/script/pkgacct cpaneluser /home/cpaneluser/public_html
chown cpaneluser:cpaneluser /home/cpaneluser/public_html/cpmove-cpaneluser.tar.gz*
Then you can download the backup using your web browser by accessing your cPanel user's domain -> http://domain.tld/cpmove-cpaneluser.tar.gz
If you don't know the actual domain for that cPanel user you can do a cat /etc/userdomains | grep cpaneluser. It will show the configure domain for that account.
That would be all.
Alternatively you can login to the cPanel account using your web browser -> http://domain.tld/cpanel using the user/password combination for that cPanel account. There is a full backup function there (in the cPanel web interface) that does pretty much what I have explained earlier.
I'm running into user group and permission issues restoring a site to Google Compute Engine from the VaultPress backup solution; I'm being told it's related to permissions and the SSH user not being able to write new files.
Can you suggest what permission/ownership change I should make so that my local user can write and edit file changes within a WordPress instance, by default all directories and files within the site belong to the www-data user and group. Thank you for your time :)
Hello I have root access to my server through whm and I am trying to change the folder for one of the account domains. I researched and I think I have to rearrange the account so I went to rearrange the account section for that domain but it is not editable at all, how do I change the folder?
I'm not sure I quite understand your request but in order to do a rearrange of a cPanel account you need to do that from the WHM interface. In WHM you got to List Accounts, extend the cPanel account you want to re-arrange using the [+] sign and click on Change Disk Partition then select the new home partition for that account (could be /home, /home2 etc).
I am currently setting up a dev environment with multiple subdomains dom1.domain.net, dom2.domain.net, dom3.domain.net etc. and I would like to give different users SSH access to the individual subdomain directories in the file system. Some instances may allow more than one user access to the subdomain directory and some instances may allow one user to have access to multiple subdomain directories.
So, the question is: Is there a way for me to give multiple cPanel users SSH access per subdomain dir?
I tried to add a 'subdomain' account through WHM's 'Create account' but as expected it failed since the base domain already exists on the same server.
Anyone have any ideas? Point me in the right direction?
EDIT:
The reason for this setup is that I want to setup git for different subdomain enviroments and want to give users access only to the server projects directories they are concerned with.
If you have access to WHM you could just create individual cPanel accounts for each subdomains.
If you give access via SSH to a cpanel user, that user will have access to the main domain setup on the cPanel account and on all the subdomains created in that account. So in the end if you will have a cPanel user that can access 1-5-10 or whatever is the total of subdomains.
You can create multiple FTP accounts and associate them with subdomains but you won't be able to login via SSH with a FTP account.
Please I had some issues with the party hosting my website, when i contacted another party they requested me to transfer my site to a folder "backup" in the root of my account so that they can see if they can deploy it or not. Which files should I put in this folder they said? please I need an answer it is very ugrent
Login your cPanel and create new backup of your account so that you will get your all files with the latest content to your new host.
You can generate backup with the following steps.
Login your cPanel >> Backup >> Download a full website backup >> and click on "Generate Backup"
Above steps will create the backup file in your root directory account. Then you will have to provide them your login details so that they will migrate your site.