Answer the question
In order to leave comments, you need to log in
How to move website from linux server to hosting?
Good afternoon.
There is a website with a database on a local linux server.
From which there is only a login and password to connect via SSH.
Didn't deal with linux. Please tell me how you can upload the site files and database to your computer. So that in the future I can upload it to the hosting.
ps. Unfortunately, there is no connection with the programmer who made the site.
Answer the question
In order to leave comments, you need to log in
1. there is a console navigator in Linux, install mc
it
2. go to the folder with the site
3. open the configuration file, copy the connection parameters to the database
4. being in the site folder, write in the console
mysqldump -uпользователь -p'тут_пароль' имяБД > имяБД.sql
(there is no space between -p and the login, as well as in the password) zip -r0 archive.zip .
Hire someone who can do it. By God, it will be:
- faster
- more reliable
(especially if this is the thousand-first online store that didn’t bother anyone to steal it)
Find the directory where the site is located.
Find the login and password from the database in the code.
Copy just in case the settings of the webserver, database, php.ini, and exhaust from php -i
.
Dump and archive
mysqldump -u USER -pPASSWD DBNAME | gzip > myDump.sql.gz
(or whatever database you have) zip -r foldername.zip foldername
mysql -u username -p database_name < file.sql
In theory: find the www folder and transfer it to the hosting. with the base it will be difficult to copy it and transfer it to the hosting too. And then you will need to tweak the site configs a bit so that it takes data not from the localhost, but from the new hosting.
Is the site self-written? or some kind of engine?
Take CityCat4's
advice It's
better to hire a specialist. With a high degree of probability, at best, you will not cope, and at worst, you will lose the site / database.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question