necessary commands for reference

tac emaxme.com.access.log | grep magenta1.php | more
tail -f filename

mysqldump -hlocalhost -uusername -p dbname > dbfilename_1007.sql
mysql -hlocalhost -uusername-p dbname < dbfilename.sql

php -dmemory_limit=6G bin/magento


Log generate
$writer = new \Zend\Log\Writer\Stream(BP . '/var/log/test.log');
$logger = new \Zend\Log\Logger();
$logger->addWriter($writer);
$logger->info($quote);


connect SSH or move to another server
ssh root@127.0.0.1

Transfer file using SSH
scp testmagento2.zip root@127.0.0.1:/home/master/applications/public_html

Setup Cron

*/1 * * * * php -c /etc/php/7.0/cli/php.ini /home/master/applications/public_html/bin/magento cron:run
*/1 * * * * php -c /etc/php/7.0/cli/php.ini /home/master/applications/public_html/update/cron.php
*/1 * * * * php -c /etc/php/7.0/cli/php.ini /home/master/applications/public_html/bin/magento setup:cron:run

Check file and





Comments