Jump to content
thirty bees forum

DaoKakao

Members
  • Posts

    262
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by DaoKakao

  1. @nickon When i've made a choise between PS and Magento, there was one thing which lead to edge PS over Magento: it was noted everywhere, that ANY Magento installation NEED to get additional coding. So, as a lazy man, i've decided to value my time and not to dive deeply in the coding.

    Summarizing all that, i've chose TB/PS because it has not so high entrance price, having a lot of features at the same time.

  2. You have to examine your php and webserver config. .../fpm/php.ini maxexecutiontime = 600 maxinputtime = 600 defaultsockettimeout = 600

    nginx.conf: sendtimeout 600s; fastcgisendtimeout 600s; fastcgiread_timeout 600s;

    php-fpm.conf: server unix:/run/php/php7.0-fpm.sock weight=1 fail_timeout=600s;

  3. Pl, don't worry. Most of sentences are ok. I've been worrying more about some sentences which are same in english, but has different translations in Russian, depending on context. Fortunately, there's very few of such issues.

    What should i do in that cases? Open an issue in github?

  4. It's a pity that admins approved all unapproved sentences in one fell swoop... I hoped to go thru translation thorougly, because it has some stylistic, semantic and syntax mistakes.

    Will it be a great insolence to ask @mdekker to revert this?

  5. Perhaps this backup script could be useful for someone. It makes backup of /etc, root of /www, dumps all mysql databases as text and also mysql binary files within the mysql binary logs. ```

    !/bin/bash

    echo "========= !!! Should be ran manually as root !!! =========="

    BKDATE=date '+%F' BKTIME=date '+%Hh%Mm%Ss' BKTIME1=date '+%T'

    BKDIR="./backups/full"$BKDATE""$BKTIME.backup

    BKDIR="/var/backups/full"$BKDATE""$BKTIME.backup

    BKLOGFILE="/var/log/backup"$BKDATE""$BKTIME1".log"

    echo "Starting backup at date:" $BKDATE"; time:" $BKTIME1"; backup dir: "$BKDIR 2>&1 | tee -a $BKLOGFILE echo "==================================================================================================================" 2>&1 | tee -a $BKLOGFILE

    #######echo "Starting backup at "date '+%F %T' 2>&1 | tee /var/log/backup_date '+%F_%T'.log

    echo -n "Creating directory" $BKDIR 2>&1 | tee -a $BKLOGFILE mkdir -p $BKDIR if [ $? -ne 0 ]; then echo " ... FAIL! Error code:"$? 2>&1 | tee -a $BKLOGFILE exit 1; else echo " ... Ok" 2>&1 | tee -a $BKLOGFILE fi

    addin' self-copy of this script to backup

    cp ./backup-all.sh $BKDIR/backup-all.sh

    cd $BKDIR

    echo -n "Backing up /etc ... " 2>&1 | tee -a $BKLOGFILE

    #######read -rsp $'Press any key to start...\n' -n 1 key

    tar -cjvpf $BKDIR/etc.tbz2 /etc if [ $? -ne 0 ]; then echo "FAIL! Error code: "$? 2>&1 | tee -a $BKLOGFILE exit 1; fi echo "Ok" 2>&1 | tee -a $BKLOGFILE

    echo "Backing up webroot home dirs ... " 2>&1 | tee -a $BKLOGFILE

    ######read -rsp $'Press any key to start...\n' -n 1 key

    echo -n "Trying to stop NGINX ... " 2>&1 | tee -a $BKLOGFILE systemctl stop nginx if [ $? -ne 0 ]; then echo "FAIL! Error code: "$? 2>&1 | tee -a $BKLOGFILE exit 1; fi echo "Ok, NGINX stopped" 2>&1 | tee -a $BKLOGFILE

    echo -n "Compressing weboot dirs ... " 2>&1 | tee -a $BKLOGFILE tar -cjvpf $BKDIR/www.tbz2 /home-of-your-www if [ $? -ne 0 ]; then echo "FAIL! Error code: "$? 2>&1 | tee -a $BKLOGFILE systemctl start nginx if [ $? -ne 0 ]; then echo "\nFailed to start NGINX! Error code:"$? 2>&1 | tee -a $BKLOGFILE exit 2; fi exit 1; fi echo "Ok" 2>&1 | tee -a $BKLOGFILE

    echo -n "Backing up mysql/mariadb database as text ... "

    ######read -rsp $'Press any key to start...\n' -n 1 key

    here you can add specific mysql user who have enough rights to make database dumps

    mysqldump -uroot -pxxxxxxxxxx -A | bzip2 > $BKDIR/alldatabases.sql.bz2 if [ $? -ne 0 ]; then echo "FAIL! Error code: "$? 2>&1 | tee -a $BKLOGFILE systemctl start nginx if [ $? -ne 0 ]; then echo "\nFailed to start NGINX! Error code: "$? 2>&1 | tee -a $BKLOGFILE exit 2; fi exit 1; fi echo "Ok" 2>&1 | tee -a $BKLOGFILE

    echo "Backing up mysql binary files ... "

    This is redundant, but could be the last resort whel restoring

    #####read -rsp $'Press any key to start...\n' -n 1 key

    echo -n "Trying to stop Mysql/Mariadb ... " 2>&1 | tee -a $BKLOGFILE systemctl stop mariadb if [ $? -ne 0 ]; then echo "FAIL! Error code: "$? 2>&1 | tee -a $BKLOGFILE systemctl start nginx if [ $? -ne 0 ]; then echo "\nFailed to start NGINX! Error code:"$? 2>&1 | tee -a $BKLOGFILE exit 2; fi exit 1; fi echo "Ok" 2>&1 | tee -a $BKLOGFILE

    echo -n "Compressing binaries ... " 2>&1 | tee -a $BKLOGFILE tar -cjvpf $BKDIR/alldatabases-bin.tbz2 /var/lib/mysql /var/log/mysql if [ $? -ne 0 ]; then echo "FAIL! Error code: "$? 2>&1 | tee -a $BKLOGFILE systemctl start mariadb if [ $? -ne 0 ]; then echo "\nFailed to start mysql/mariadb! Error code: "$? 2>&1 | tee -a $BKLOGFILE fi systemctl start nginx if [ $? -ne 0 ]; then echo "\nFailed to start NGINX! Error code: "$? 2>&1 | tee -a $BKLOGFILE exit 2; fi exit 1; fi echo "Ok" 2>&1 | tee -a $BKLOGFILE

    echo -n "Trying to start Mysql/Mariadb ... " 2>&1 | tee -a $BKLOGFILE systemctl start mariadb if [ $? -ne 0 ]; then echo "FAIL! Error code: "$? 2>&1 | tee -a $BKLOGFILE systemctl start nginx if [ $? -ne 0 ]; then echo "\nFailed to start NGINX! Error code: "$? 2>&1 | tee -a $BKLOGFILE exit 2; fi exit 1; fi echo "Ok" 2>&1 | tee -a $BKLOGFILE

    echo -n "Trying to start NGINX ... " 2>&1 | tee -a $BKLOGFILE systemctl start nginx if [ $? -ne 0 ]; then echo "FAIL! Error code: "$? 2>&1 | tee -a $BKLOGFILE exit 1; fi echo "Ok" 2>&1 | tee -a $BKLOGFILE

    this for ease access from (s)ftp / scp

    change to whatever you want or remove if not necessary

    chown -R backupoperatorusername:backupoperatorgroup $BKDIR echo "======= !!!! ALL DONE !!!! =======" 2>&1 | tee -a $BKLOGFILE ```

  6. I just tried to hint one simple thing, such as metrology. When i studied in the university, yet from the very beginning all teachers just hammered this subject in student's heads.

  7. Hmmmm... it depends... 4 instance, i have a nginx installation, and it could differ from apache.

    General idea is to examine the current configuration. It could contain directives making implicit/explicit redirects for unknown/notfound/errorous pages. So, within configuration check it is also good idea to look into error/access logs for any kind of misbehavior.

×
×
  • Create New...