2014/03/31

Clear Your DNS Cache

How To Clear Your DNS Cache




  • How to clear your DNS cache

    • Windows® 8

    • Windows 7

    • Windows XP, 2000, or Vista®

    • MacOS® 10.7 and 10.8

    • MacOS 10.5 and 10.6





Overview


Your DNS cache stores the locations (IP addresses) of webservers that contain pages which you have recently viewed. If the location of the web server changes before the entry in your DNS cache updates, you will be unable to access the site.


If you encounter a large number of HTML 404 error codes, you may need to clear your DNS cache. Once you clear your DNS cache, your computer will query nameservers for the new DNS information.



How to clear your DNS cache


The following methods allow you to remove old and inaccurate DNS information that may result in 404 errors.



Windows® 8



  1. Press Win+X to open the WinX Menu.

  2. Right-click on Command Prompt and select Run as Administrator.

  3. Type the following command and press Enter: ipconfig /flushdns

  4. If the command was successful, you will see the following message:
    Windows IP configuration successfully flushed the DNS Resolver Cache.



Windows 7



  1. Click the Start button.

  2. Enter cmd in the Start menu search field.

  3. Right-click on Command Prompt and select Run as Administrator.

  4. Type the following command and press Enter: ipconfig /flushdns

  5. If the command was successful, you will see the following message:
    Windows IP configuration successfully flushed the DNS Resolver Cache.



Windows XP, 2000, or Vista®



  1. Click the Start button.

  2. On the Start menu, click Run....

    • If you do not see the Run command in Vista, enter run in the Search bar.



  3. Type the following command in the Run text box: ipconfig /flushdns


MacOS® 10.7 and 10.8



  1. Click Applications.

  2. Click Utilities.

  3. Double-click the Terminal application.

  4. Type the following command:
    sudo killall -HUP mDNSResponder

    ALERT! Warning: To run this command, you will need to know the computer's Admin account password.


MacOS 10.5 and 10.6



  1. Click Applications.

  2. Click Utilities.

  3. Double-click the Terminal application.

  4. Type the following command: sudo dscacheutil -flushcache

2014/03/16

حل لمشكله HTTP 500 Internal Server Error

حل لمشكله HTTP 500 Internal Server Error

فى أحد مجلدات موقعك أو فى مجلد موقعك الرئيسى
إفتح المجلد الذى تظهر به رسالة الخطأ , بواسطة الإف تى بى
ثم قم بتعديل الملف المسمى .htaccess

إبحث عن السطر التالى وإحذفه:


Options -Indexes
ثم إبحث عن السطر التالى وإحذفه:


Options +FollowSymlinks
وإذا كان السطر بهذا الشكل إحذفه أيضا


Options +FollowSymlinks -Multiviews
ثم إحفظ التعديلات وسوف يبدأ موقعك بالظهور بشكل صحيح


الحل الثاني

يحدث هذا الخطا لتعارض مع قوانين الأباتشي لمحاولة تخطي اليوزر لصلاحياته

هذا أمر يريحك من عناء التعديل على ملفات كل المواقع فقط طبقه و سيعدل السطل في كل ملفات التكسس



find /home/ -name .htaccess > /root/htaccess.txt


for i in `cat /root/htaccess.txt` ; do replace "Options" "#Options" -- $i ; done

حل مشكلة MySQL ERROR .The server quit without updating the PID file

اسهل حل يتم تجربته لحل المشكلة هو نقل ملف my.cnf الى مكان اخر او تغيير اسمه والتجربة مرة اخرى
لكن الافضل لو نفهم المشكلة من اساسها لتجنبها

مبدئيا الخطأ يظهر عند عمل ريستارت للخدمة او تشغيلها

/etc/init.d/mysql start
لانكتفى بالايرور الظاهر امامنا وهو اصل المشكلة .. لابد من مراجعة Error_Log ( الخاص ب MySQL )
يوجد اكثر من سبب يتم العثور عليه فى ملف الوج

1- "Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist."

هذا الخطأ نتيجة ترقية خاطئة ل MySQL فى 95% من هذه الحالات نتجنب هذا الخطأ الغاء شىء اسمه grants
هكذا ننفذ الامر

/etc/init.d/mysql start --skip-grant
ولكن ايضا علينا اصﻻح الجداول الخاصة بال grants

mysql_install_db
2- InnoDB: Error: data file /var/lib/mysql/ibdata1 is of a different size
دا بيكون نتيجة ان ملف الاعدادات تغير به قيمة حجم innodb_data_file_path
لذلك الحل اما ارجاع القيمة الاصلية او حذف الملفات الخاصة ibdata حتى يتم اعادة انشاءها بالقيم الجديدة

** تغيير مكان ملف الاعدادات ليس هو الحل ... عليك دائما بقراءة MySQL Error Log وحل المشكلة مباشرة وليس التغاضى عنها مؤقتا

بعض أوامر الهامة لأصحاب السيرفرات

أقدم لكم اليوم بعض الأوامر الهامة والتى يحتاجها أصحاب السيرفرات (الأوامر صالحة لمن يستخدم لوحة تحكم cPanel/WHM)
الأمر التالي يقوم بأخذ باك اب لجميع المواقع:


for i in `ls /var/cpanel/users`; do /scripts/pkgacct $i ; done

عند أخذ الباك اب لكافة المواقع يتم وضعها فى مجلد home

الأمر التالي يقوم بإستعادة الباك اب لجميع المواقع (يجب أن تكون الباك ابات موجوده فى المجلدات التالية /home, /home2, /home3, /root, /usr, /usr/home, /web):


for i in `ls /home/*.tar.gz`;do /scripts/restorepkg $i;done


الأمر التالي يقوم بعمل سسبند Suspend لجميع المواقع:


for i in `ls /var/cpanel/users`;do /scripts/suspendacct $i;done


الأمر التالي يقوم بفتح جميع المواقع أو إلغاء السسبند Suspend:


for i in `ls /var/cpanel/users`;do /scripts/suspendacct $i;done


الأمر التالي يقوم بحذف كافة المواقع (يجب إتخاذ الحذر عند إستخدام هذا الأمر):


for i in `ls /var/cpanel/users`; /scripts/killacct $i --force --killdns y; done


الأمر التالي يقوم بتعديل النيم سيرفر Nameserver بداخل كافة المواقع (هام لمن يريد تغيير الـNameserver الرئيسي للسيرفر):


replace -s 'ns1.firstdns.com' 'ns1.seconddns.com' -- /var/named/*.db;

يتم إستبدال ns1.firstdns.com بالنيم سيرفر الأول القديم و ns1.seconddns.com بالنيم سيرفر الأول الجديد ثم يتم تكرار الأمر مع النيم سيرفر الثاني

DOMAIN CONFLICT: owned by - the copy failed! Home » حل لمشكلة

This issue was due to this option in Tweak Settings being disabled (it is by default off):

Allow domain parking across accounts

or

WHM >> Account Information >> List Parked Domains:
Click UnPark to un-park a domain.