UPWORK/ODESK guru: Tips and Tricks for clients

skype: odesk.by / upwork.link , email: [email protected]/upwork.link

Archive for January, 2016

CentOS7: How do disable PrivateTmp for Apache with systemd?

without comments

Technically better to provide a small override of service file rather than copying the whole new version in /etc/systemd/system … (www.freedesktop.org/software/systemd/man/systemd.unit.html)

Read the rest of this entry »

Written by spectre

January 30th, 2016 at 3:53 pm

Posted in Apache2

php: save PHP variables to a text file

without comments

Writing $text to a file:

Read the rest of this entry »

Written by spectre

January 30th, 2016 at 3:38 pm

Posted in Php

Optimal size of innodb_log_file_size

without comments

As you know, during commit InnoDB writes the data at once into data files and records changes in the first innodb_log_file. The fact that write data directly to the table – a much more expensive operation than to record changes in the binary log.
Keeping innodb_log_file allows optimization of I/O: write data to successive large pieces, and more quickly serve customers (customer commits quickly made, and the data in the table space are recorded in the background). Therefore, the larger the file, the more opportunities to optimize InnoDB I/O. Currently, the total size of innodb_log_file limited to 4 GB, which is more than enough for most cases.

Read the rest of this entry »

Written by spectre

January 15th, 2016 at 4:16 pm

Posted in Mysql

Plesk FUCK: again bugs after install optional php packages

without comments

If after installation additional versions of php5.4 on Plesk you got such messages in pecl:

WARNING: php_bin /opt/plesk/php/5.4/bin appears to have a suffix /5.4/bin, but config variable php_suffix does not match ...

You need:

Read the rest of this entry »

Written by spectre

January 10th, 2016 at 12:42 am

Posted in Plesk FUCK