-
15
-
09
-
2014
Kategorisi : Plesk
587 portta TLS’yi iptal etmek için .
vi /etc/postfix/master.cf
içindeki encrypt değerini may olarak değiştiriyoruz.
submission inet n – n – – smtpd -o smtpd_enforce_tls=yes -o smtpd_tls_security_level=encrypt -o smtpd_sasl_auth_enable=yes -o smtpd_client_restrictions=permit_sasl_authenticated,reject -o smtpd_sender_restrictions=
submission inet n – n – – smtpd -o smtpd_enforce_tls=yes -o smtpd_tls_security_level=may -o smtpd_sasl_auth_enable=yes -o smtpd_client_restrictions=permit_sasl_authenticated,reject -o smtpd_sender_restrictions=
-
06
-
09
-
2014
Kategorisi : Debian,Linux
Debian üzerinde :
cd ~
export PHANTOM_JS="phantomjs-1.9.2-linux-x86_64"
wget https://phantomjs.googlecode.com/files/$PHANTOM_JS.tar.bz2
sudo mv $PHANTOM_JS.tar.bz2 /usr/local/share/
cd /usr/local/share/
tar xvjf phantomjs-1.9.2-linux-x86_64.tar.bz2
ln -sf /usr/local/share/$PHANTOM_JS/bin/phantomjs /usr/local/share/phantomjs
ln -sf /usr/local/share/$PHANTOM_JS/bin/phantomjs /usr/local/bin/phantomjs
ln -sf /usr/local/share/$PHANTOM_JS/bin/phantomjs /usr/bin/phantomjs
phantomjs --version
git clone git://github.com/n1k0/casperjs.git
$ cd casperjs
$ git checkout tags/1.0.0-RC4
$ ln -sf `pwd`/bin/casperjs /usr/bin/casperjs
-
21
-
08
-
2014
Kategorisi : Cpanel,Linux
Cpanel üzerinde suphp kullanıyorsanız. Uygun olmayan okuma / yazma izinleri 500 veya 404 hatalarına sebep olabiliyor. Yazma izinlerini düzeltmek için :
find /home/*/public_html/* -type f -exec chmod 644 {} \;
find /home/*/public_html/* -type d -exec chmod 755 {} \;
Tüm web siteleri için ise :
for i in `ls /var/cpanel/users` ; do chown -R $i.$i /home/$i/public_html/* ; done
-
19
-
08
-
2014
Kategorisi : Linux
Sunucumuzu yavaşlatan apache isteklerini tespit etmek ve banlamak için :
tail -50000 access_log | awk '{print $1}' | sort | uniq -c | sort -n | tail
netstat -a -n | grep :80 | cut -d : -f2 | awk '{print $2}' | sort | uniq -c | sort
iptables -A INPUT -s 141.105.xx.xx -j DROP
iptables -A INPUT -s 141.105.xx.xx -j REJECT
-
14
-
07
-
2014
Kategorisi : Centos,Debian,Linux,Ubuntu
Yalnızca seçilen klasörleri tar biçiminde sıkıştırmak için :
tar -czvf yedekle.tar klasör1 klasör2 klasör3
-
12
-
07
-
2014
Kategorisi : Kloxo
Lxadmin backup alma ve geri yükleme işlemleri için :
Backup
/script/backup --class=client --name=admin
Geri Yükleme
/script/restore --restore --accounts=all <backup-file-path>
Listelemek için :
/script/restore --list <backup-file-path>
Belli bir hesabı geri yüklemek için :
cd /usr/local/lxlabs/kloxo/httpdocs/
lphp.exe ../bin/common/restore.php --restore --accounts=domain:domain.com,client:clientname <backup-file-path>
-
03
-
07
-
2014
Kategorisi : Centos,Debian,Linux,Php,Ubuntu
SQLSTATE[HY000]: General error: 14 unable to open database file hatasının çözümü için :
sqlite dosyamız ve onun bir üst klasörünün Linux kullanıcısının : www-data ya da apache olması gerekiyor. İki klasör eşleştiğinde çalıştığını gördüm. Diğer durumlarda select yapabilirken, insert ve update komutlarını gerçekleştiremedi.
-
02
-
07
-
2014
Kategorisi : Kloxo
mailaccount_add_failed hatası – kloxo : düzeltmek için :
/home/lxadmin/mail/bin/vdeldomain ‘ornek.com’
/home/lxadmin/mail/bin/vadddomain ‘ornek.com’
-
25
-
06
-
2014
Kategorisi : Centos,Debian,Linux,Ubuntu
Eklemek için :
Fedora
# chkconfig httpd --add
Fedora
# chkconfig httpd on --level 2,3,5
Debian/Ubuntu
# update-rc.d apache2 defaults
Debian/Ubuntu
# update-rc.d apache2 start 20 2 3 4 5 . stop 80 0 1 6 .
Listeleme :
Fedora
# chkconfig --list httpd
Silme :
Fedora
# chkconfig httpd off
Fedora
# chkconfig httpd --del
Debian/Ubuntu
# update-rc.d -f apache2 remove
-
08
-
05
-
2014
Kategorisi : Apache,Centos,Kloxo,Linux,Php
Öncelikle, Epel and IUS repolarını kuruyoruz.
rpm -Uvh http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/epel-release-5-4.noarch.rpm
rpm -Uvh http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/ius-release-1.0-8.ius.el5.noarch.rpm
GPG anahtarlarını ekliyoruz.
rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
rpm –import /etc/pki/rpm-gpg/IUS-COMMUNITY-GPG-KEY
Yum ayarları
yum install yum-plugin-replace
yum replace php –replace-with php53u
yum install php53u-pear php53u php53u-cli php53u-common php53u-devel php53u-gd php53u-mbstring php53u-mcrypt php53u-mysql php53u-pdo php53u-soap php53u-xml php53u-xmlrpc php53u-bcmath php53u-pecl-apc php53u-pecl-memcache php53u-snmp
Apache’yi baştan başlatıyoruz.
/etc/init.d/httpd restart