UPWORK/ODESK guru: Tips and Tricks for clients

skype: odesk.by / upwork.link , email: info@odesk.by/upwork.link

PHP(wordpress): testing wp_mail function

without comments

script in root of WP

Read the rest of this entry »

Written by spectre

February 7th, 2016 at 7:30 pm

Posted in Php

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

CSF: csf.allow – YAHOO IP range

without comments

List of rules:

# ——————————————
# YAHOO
Include /etc/csf/csf.allow-yahoo
# ——————————————

Read the rest of this entry »

Written by spectre

October 15th, 2015 at 6:11 pm

Posted in CSF

UTF8 – very good article for russian Internet in context of mod_security and its problems with utf8.

without comments

From where: http://softwaremaniacs.org/blog/2006/07/28/unicode-and-bytes:

Read the rest of this entry »

Written by spectre

July 24th, 2015 at 5:27 pm

Posted in Apache2

Vim: Vim Syntax highlighting for Apache – CentOS 6.*

without comments

I often have edit apache configuration files on servers. Syntax – Highlighting never ‘auto-starts’. I found out why in some cases. Of course – if place of files is non usually.

For example:

Read the rest of this entry »

Written by spectre

July 21st, 2015 at 8:57 pm

Posted in Vim

CSF: IP tracking of DNS name – perl tool

without comments

Simple code on perl for tracking of list of IP of DNS name:

Read the rest of this entry »

Written by spectre

July 21st, 2015 at 4:13 pm

Posted in Tips and Tricks

MosSecurity: ErrorDocument 403

without comments

Precon.:
ErrorDocument 403 http://servername.com/403.php
> apachectl -M | grep uniq
unique_id_module (shared)

file: 403.txt.tar

Written by spectre

July 20th, 2015 at 2:10 pm

Posted in Tips and Tricks