Week worked on the magento, it is time to upload to LAN hosting, but I did not find the answer. The usual method here is tortured (I thought so), maybe there are some rules, easy ways?

PS On the hosting (Beget) there is an opportunity to install Magento, did you think there is a possibility (tools, rules) if you separately install and synchronize the hosting with a local computer?

  • haha, I have zero views in the hands))))) - bemulima

3 answers 3

We make a backup of the database and files:

tar -xvzf name.tar.gz

mysqldump -u USER -pPASSWORD DATABASE | gzip> /path/to/outputfile.sql.gz

Fill in live and unpack:

tar -cvzf name.tgz ./ --exclude = var

gunzip </path/to/outputfile.sql.gz | mysql -u USER -pPASSWORD DATABASE

setfacl -Rm u: www-data: rwx -dRm u: www-data: rwx ./

Do not forget to change web/unsecure/base_url in core_config_data to the local host URL

    Any database manager (mySQL) or what you have.
    + FTP
    Itself on the hosting runs, but not when, I do not put anything else.

    • Aha, now I’m doing it manually, I downloaded mysql separately, I downloaded the files via FTP separately, right now I’ll try to change the local.xml file and change the database in the core_config_data table to change it, bemulima
    • Oh, class, everything works fine - bemulima

    And what is special compared to other cms? You make a mysql database backup on the local host. Transfer the cms files to the hosting, the database backup file from the local host. You import the database file into the database on the hosting, set up file permissions. Probably the most dreary to configure authorization for access to the database on the hosting. You register in the CMS configuration file on the user's hosting, the password from the database on the hosting. It seems to be all.