- 13
- 10
- 2016
Recursive Gunzip
Kategorisi : Linuxgunzip -r /folder
update w_postmeta set meta_value = meta_value * 1.25 where meta_key=’_price’
# Beginn Protect xmlrpc
RedirectMatch 403 /xmlrpc.php
# Ende Protect xmlrpc.php
Bağlantı limiti koymak istediğimiz port :
iptables -A INPUT -p tcp –syn –dport $port -m connlimit –connlimit-above N -j REJECT –reject-with tcp-reset
Apache 80 için :
iptables -A INPUT -p tcp –syn –dport 80 -m connlimit –connlimit-above 20 -j REJECT –reject-with tcp-reset
SSH 22 için :
iptables -A INPUT -p tcp –syn –dport 22 -m connlimit –connlimit-above 3 -j REJECT
iptables-save > /etc/iptables.up.rules
nano /etc/network/if-pre-up.d/iptables
ile dosyayı açıp içine yazıyoruz :
#!/bin/bash
/sbin/iptables-restore < /etc/iptables.up.rules
İzinler :
chmod +x /etc/network/if-pre-up.d/iptables
find /var/www/siteadiornek.com/web/wp-content/uploads/ -type f -size +30k -exec cp {} /var/www/siteadiornek.com/web/resimler/ \;
apt-get install postfix libsasl2-2 sasl2-bin libsasl2-modules procmail
dpkg-reconfigure postfix
bunu internet olarak seçmemiz gerekiyor.
/etc/init.d/postfix reload
php -r “mail(‘test@test.com’,’test’,’test’);”
find /var/www/clients/ -type f -regex “.*\.gz$” -delete
SET FOREIGN_KEY_CHECKS=0;
TRUNCATE sales_flat_quote;
TRUNCATE sales_flat_quote_address;
TRUNCATE sales_flat_quote_shipping_rate;
TRUNCATE dataflow_batch_export;
TRUNCATE dataflow_batch_import;
TRUNCATE log_customer;
TRUNCATE log_quote;
TRUNCATE log_summary;
TRUNCATE log_summary_type;
TRUNCATE log_url;
TRUNCATE log_url_info;
TRUNCATE log_visitor;
TRUNCATE log_visitor_info;
TRUNCATE log_visitor_online;
TRUNCATE report_viewed_product_index;
TRUNCATE report_compared_product_index;
TRUNCATE report_event;
TRUNCATE index_event;
SET FOREIGN_KEY_CHECKS=1;
Php, ajax, jquery, mootools web programlama. Linux, apache, lamp sunucu yönetimi. Cpanel, plesk, lxadmin panel kurulumlari.
23 / 09 / 2023, 16:52:19
Web yazilim, grafik
barbetto.com