Kayıtlar

2016 tarihine ait yayınlar gösteriliyor

Shrink Database Log files (Full recovery mode)

USE Database_name; GO – Truncate the log by changing the database recovery model to SIMPLE. ALTER DATABASE Database_name SET RECOVERY SIMPLE; GO – Shrink the truncated log file. DBCC SHRINKFILE (Database_name_log); GO – Reset the database recovery model. ALTER DATABASE Database_name SET RECOVERY FULL; GO

Ubuntu’da vsftpd Kurulumu ve Konfigürasyonu

Öncelikle IP’mizi kullanarak SSH kabuğuna erişim gerçekleştiriyoruz. İlk olarak FTP sunucumuzda birden fazla kullanıcı oluşturup bunlara şifreler ve dizinler oluşturacağımız için PAM ve Apache kurmalıyız.  Vsftpd, PAM ve Apache’yi indirmek için: apt-get install vsftpd libpam-pwdfile apache2-ultis Böylece Vsftpd, PAM ve Apache’yi sistemimize kuruyoruz. Vsftpd dosyasında değişiklikler yapacağımız için, ne olur ne olmaz diyerek config dosyamızın yedeğini alalım; mv /etc/vsftpd.conf /etc/vsftpd.conf.yedek Vsftp dosyamızın config dosyasının adını değiştirdikten sonra asıl üzerinde düzenlemeler yapacağımız config dosyasını oluşturuyoruz; nano /etc/vsftpd.conf Siz nano yerine vim gibi başka bir editörü kullanabilirsiniz. Gerekli dosyayı oluşturduktan sonra aşağıda ki komutları dosyaya yazıyoruz; listen=YES anonymous_enable=NO local_enable=YES write_enable=YES local_umask=022 nopriv_user=vsftpd virtual_use_local_privs=YES guest_enable=YES local_root=/home/$USER user_sub_token=

Microsoft Lync keychain password prompt on login

Resim
One of my users ran into an issue recently when launching Microsoft Lync. When the Lync application logged into the Lync server, a  Microsoft Lync wants to use OC_KeyContainer_username@company.com. Please enter the keychain password prompt appeared. The curious thing was that the keychain prompt would not accept the user’s current login password. When I checked, the user’s login keychain was unlocked and using the current password, so it didn’t appear to be caused by the login keychain password issues that I normally deal with. After some research, I was able to find the answer and get this issue fixed. See below the jump for the details. The fix: 1. Quit out of Microsoft Lync 2. Go to  /Users/username/Library/Keychains 3. Remove the  OC_KeyContainer__username@company.com  file from /Users/username/Library/Keychains . 4. Launch Microsoft Lync 5. On relaunch, the prompt no longer appeared. What caused the password prompt?: Microsoft Lync creates a keyc

IIS7 HTTP isteklerini HTTPS sayfasına Yönlendirmek

Resim
IIS7'de HTTP isteklerini HTTPS sayfasına Yönlendirmek IIS 7 de host ettiğiniz uygulamaya sadece https olarak erişilmesini istiyorsanız SSL sertifikanızı yükledikten sonra yapmanız gerekenler: 1. IIS Manager'dan ilgili uygulamayı çalıştıracağınız siteyi seçin , featureview de "SSL Settings" e çift tıklayıp "Require SSL" seçeneğini aktif hale getirin. 2. Feature view'e dönüp bu kez "Error Pages" seçeneğine çift tıklayıp açılan sayfada sağdan "Add" linkine tıklayın, gelen pencerede "Status Code" bölümüne 403.4 yazın ve en alttaki "Respond with a 302 redirect" seçeneğini seçip aktif olan bölüme sayfanızın yönlendirilmesini istediğiniz https sayfa linkini yazın ( örn:  https://aaa.bbb.com/ ) ve OK e basın.     

Automatically Redirect HTTP requests to HTTPS on IIS 7 using URL Rewrite 2.0

Resim
In a previous article I covered the installation URL Rewrite 2.0 for IIS 7. This is a plug-in for IIS 7 that allows you to manipulate URL’s. URL Rewrite has a GUI to allow you to enter rules within IIS 7; in the background all this does is edit the web.config file of the site. I will show you how to create a rule both ways. In the following example we will redirect HTTP to HTTPs using URL Rewrite. You will need the following items completed in order for this to work correctly. – SSL Certificate for site installed in IIS. – Site properly installed and configured for SSL (site set up and binding in IIS configured). – URL Rewrite 2.0 is installed on the sever. GUI Version – Select the website you wish to configure – In the “Features View” panel, double click URL Rewrite You will notice there are currently no rules configured for this site. Click “Add Rules…” in the Actions menu to the right of the “Features View” panel Use the default “Blank rule” and press “OK”. Wh