Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I want to migrate some websites (files and databases) from a server with cPanel accounts to a new server running on Ubuntu where is not cPanel.
Which would be the quickest and simple method?
Thank you in advance !
Since the server doesn't have any control panel, you have only manual migration option.
Setup a web server and add websites.
Assign separate home directory to each website.
Setup database server and migrate databases.
You can generate full cPanel backup and then extract it on new server. You will get web contents from homedir folder and MySQL.
The quickest way is to do a complete backup, and download the file. It should be in the root directory for that user.
The path and filename looks like:
/home/username/backup-todaysdate_username.tar.gz
Download that, and extract the files.
You'll want the /homedir (which is where the website is) and the /mysql folder contains a backup of the databse in .sql format.
Then copy everything up to your new server, and you'll have to extract the mysql database into mysql using the MYSQL CLI. Here's some instructions on that -> Importing large sql file to MySql via command line
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
I recently acquired a project from a former colleague, but the only information he gave me was the SSH key for a server and a bitbucket repository. I need to access the FTP of the server so I can change the files of the website.
I have zero experience with SSH or console commands. I have the repository but I don't know how to upload it. A friend of mine said that it's possible to pull a repo to the server, but I don't know how to even transcend in the folders of the server. I have just the console.
It says that the server's image is - ubuntu-1604-xenial-v20180127
And these are the only options I have - http://prntscr.com/p31inf
Also note that the website is running on Magento and I have no idea how it works. I'm a wordpress developer.
What you want is sftp: https://www.digitalocean.com/community/tutorials/how-to-use-sftp-to-securely-transfer-files-with-a-remote-server
So just use a ftp-client like filezilla and select sftp as protocol
Btw, magento is a little bit different than wordpress. Good luck ;)
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
The community reviewed whether to reopen this question 1 year ago and left it closed:
Original close reason(s) were not resolved
Improve this question
I would like to use FileZilla to automatically upload PDFs to my GoDaddy hosted site daily, replacing the previous day's sheets. Is there any way to do this? I read online that batch files might work, could someone post a sample version of a batch file that would do the trick?
FileZilla does not have any command line arguments (nor any other way) that allow an automatic transfer.
Some references:
FileZilla Client command-line arguments
https://trac.filezilla-project.org/ticket/2317
How do I send a file with FileZilla from the command line?
Though you can use any other client that allows automation.
You have not specified, what protocol you are using. FTP or SFTP? You will definitely be able to use WinSCP, as it supports all protocols that the free version of FileZilla does (and more).
Combine WinSCP scripting capabilities with Windows Scheduler:
Automate file transfers to FTP server or SFTP server;
Schedule file transfers to FTP/SFTP server
A typical WinSCP script for upload (with SFTP) looks like:
open sftp://user:password#example.com/ -hostkey="ssh-rsa 2048 xxxxxxxxxxx...="
put c:\mypdfs\*.pdf /home/user/
close
With FTP, just replace the sftp:// with the ftp:// and remove the -hostkey="..." switch.
Similarly for download: How to schedule an automatic FTP download on Windows?
WinSCP can even generate a script from an imported FileZilla session.
For details, see the guide to FileZilla automation.
(I'm the author of WinSCP)
Another option, if you are using SFTP, is the psftp.exe client from PuTTY suite.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
Over the last few weeks I have created a couple of databases and sometimes new servers using both the old and the new Azure Portals.
I have now deleted all the databases that I don't need.
How can I delete the servers that are now empty?
If you want to delete a server there are a couple of options.
One simple way is to use the Remove-AzureSQLDatabaseServer PowerShell cmdlet.
The following is an example:
Remove-AzureSQLDatabaseServer -ServerName 'MY SERVER NAME'
Just replace 'MY SERVER NAME' with the name of the server you want to delete.
If you haven't downloaded Azure PowerShell, you can find it here.
Hope this helps!
You should be creating only one DB server, then using that one server to create DB's for test/dev work. You can't create a DB server with name, when you create a DB server, the name is pretty random.
The following PS shows how to get the name of your DB Servers:
Get-AzureSqlDatabaseServer
Once you hit the max # of DB servers created (I think it's 8), you won't be able to create anymore DB's.
To delete on the portal, select DB's, then select the server tab.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I've been having problems with FileZilla a few days now. I have a server running on CentOS with Apache etc. And am uploading Wordpress to a new domain on my server. I've done this a million times before and am currently running 3 other properly working Wordpress sites on my server.
However, when I upload the files to the new domain folder all files receive a 000 permissions. Folders get a normal 755. Manually chmodding the files works but I'm not going to chmod 2000 files and figure out which ones need more permissions.
I have no idea why all of the sudden the files have no permissions, I've changed nothing in the way I connect to the server. I connect over SFTP with the same installation of FileZilla I always use.
I'm on OSX 10.10.1 with the most recent version of FileZilla. I have downloaded the most recent .zip with WordPress, have extracted it and am uploading the files by drag and drop.
This is a known bug in FileZilla 3.10.0-beta3 through 3.10.0.1.
https://forum.filezilla-project.org/viewtopic.php?t=34953
Either upgrade to 3.10.0.2 or later. Or use another SFTP client.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
Seems like something which should be easy to find but Googling brings up lots of unrelated tasks.
I have a deploy scipt which runs under the user "deploy" but my web server runs as "nginx" I want the web server to be able to write to the deployed files.
Ive added nginx to the deploy user group and I believe I can write files with deploy user with the ownership "nginx:deploy" easily now but by default it creates files as "deploy:deploy" obviously which nginx won't write too.
Is there anyway to change the user so that by default creates files as "nginx:deploy" to solve this problem?
The install command has options to control the owner and group of the files it creates. But in general, only root can create files as a different user. Maybe you can configure sudoers to let the deploy user run the commands it needs with sudo as the nginx user.