03
09
2018

PHPMailer: SMTP Error: Could not connect to SMTP host

Kategorisi : Php

Self signed sertifika varsa; bu parametreyi ekleyin.

$phpmailer->SMTPOptions = array(
‘ssl’ => array(
‘verify_peer’ => false,
‘verify_peer_name’ => false,
‘allow_self_signed’ => true
)
);


07
06
2018

Empty all files of a directory

Kategorisi : Linux

Bir linux klasöründeki tüm dosyaların içini boşaltmak için :

find . -type f -exec sh -c ‘> {}’ \;


06
02
2018

Monit: Monitor BIND 9 (named) Name Server and Auto Restart

Kategorisi : Debian,Linux

apt-get install monit -y

vi /etc/monit/monitrc

## bind
check process named with pidfile /var/lib/named/var/run/bind/run/named.pid
 start program = "/etc/init.d/bind9 start"
 stop program = "/etc/init.d/bind9 stop"
 if failed host 127.0.0.1 port 53 type tcp protocol dns then restart
 if failed host 127.0.0.1 port 53 type udp protocol dns then restart
 if 5 restarts within 5 cycles then timeout

23
11
2017

Automatically restart MySQL

Kategorisi : Mysql

#!/bin/bash
PATH=/usr/sbin:/usr/bin:/sbin:/bin
if [[ ! “$(/usr/sbin/service mysql status)” =~ “start/running” ]]
then
echo ” The MySQL service on the server has been stopped. It has now been restarted.” | mail -s ” MySQL has been restarted” 111@111.com
sudo service mysql start
fi


27
09
2017

sql.gz dosyasını açmadan import etmek – konsol

Kategorisi : Mysql

gunzip < sql.gz | mysql -u  -p –default-character-set=utf8 dbname


29
06
2017

Plesk mailbox truncate

Kategorisi : Linux,Plesk
find /var/qmail/mailnames/$DOMAIN/$MAILBOX/Maildir/new/ -type f -exec rm -rf {} \;

rm -rf /var/qmail/mailnames/$DOMAIN/$MAILBOX/Maildir/cur/

rm -rf /var/qmail/mailnames/$DOMAIN/$MAILBOX/Maildir/new/

16
06
2017

Text dosyasının içini boşaltmak – Linux

Kategorisi : Linux
> hello.txt

13
10
2016

Recursive Gunzip

Kategorisi : Linux

gunzip -r /folder


20
06
2016

Woocommerce bulk price update

Kategorisi : Wordpress

update w_postmeta set meta_value = meta_value * 1.25 where meta_key=’_price’


30
05
2016

xmlrpc.php ataklarını bloke etmek

Kategorisi : Apache,Linux

# Beginn Protect xmlrpc

RedirectMatch 403 /xmlrpc.php
# Ende Protect xmlrpc.php


photo

Php, ajax, jquery, mootools web programlama. Linux, apache, lamp sunucu yönetimi. Cpanel, plesk, lxadmin panel kurulumlari.

15 / 11 / 2018, 08:42:56
Web yazilim, grafik
barbetto.com

Tunalioglu.org - 2015