النتائج 1 إلى 7 من 7

الموضوع: لمن ركب الـ WordPress Multi User و خبراء الـ mod rewrite

  1. #1
    عضو نشيط
    تاريخ التسجيل
    Feb 2004
    المشاركات
    134

    لمن ركب الـ WordPress Multi User و خبراء الـ mod rewrite



    الإخوة الأعزاء

    السلام عليكم

    تحية طيبة و بعد

    قمت بحاولة تركيب سكربت Word Press Multi User الذي يسمح لي بإستضافة المدونات على موقعي ...

    قمت بكل الخطوات بنجاح و بقيت مشكلة تفعيل الـ Subdomains و في ملف الـ Readme جدت الطريقة المطلوبة و لكن لم أفهمها و لم أعرف كيف أنفذها و هي :

    كود:
    Apache must be configured so that mod_rewrite works. Here are 
    instructions for Apache 2. Apache 1.3 is very similar.
    
    1. Make sure a line like the following appears in your httpd.conf
    LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so
    
    2. In the <Directory> directive of your virtual host, look for this
    line
    "AllowOverride None"
    and change it to
    "AllowOverride FileInfo Options"
    
    3. In the <VirtualHost> section of the config file for your host there
    will be a line defining the hostname. You need to add the following 
    if you want virtual hosts to work properly:
    "ServerAlias *.domain.tld"
    Replace domain.tld with whatever your one is, and remove the quotes.
    
    
    DNS
    ===
    If you want to host blogs of the form http://blog.domain.tld/ where 
    domain.tld is the domain name of your machine then you must add a 
    wildcard record to your DNS records.
    This usually means adding a "*" hostname record pointing at your 
    webserver in your DNS configuration tool.
    Matt has a more detailed explanation:
    http://photomatt.net/2003/10/10/wildcard-dns-and-sub-domains/
    
    
    PHP
    ===
    For security reasons, it's very important that PHP be configured as follows:
    
    1. Don't display error messages to the browser. This is almost always
    turned off but sometimes when you're testing you turn this on and forget
    to reset it.
    
    2. GLOBAL variables must be turned off. This is one of the first things
    any security aware admin will do. These days the default is for it to
    be off!
    
    3. If you want to restrict blog signups, set the restrict domain email 
    setting in the admin.
    
    The easiest way of configuring it is via the .htaccess file that is
    created during the install. If you haven't installed WPMU yet then edit
    the file htaccess.dist in this directory and add these two lines at the
    top:
    
    php_flag register_globals 0
    php_flag display_errors 0
    
    This is NOT included in that file by default because it doesn't work on
    all machines. If it doesn't work on your machine, you'll get a cryptic
    "500 internal error" after you install WPMU. To remove the offending lines
    just edit the file ".htaccess" in your install directory and you'll see
    them at the top. Delete and save the file again.
    Read here for how to enable this: http://ie.php.net/configuration.changes
    
    If you don't want to edit your .htaccess file then you need to change your
    php.ini. It's beyond the scope of this README to know exactly where it is
    on your machine, but if you're on a shared hosted server you probably
    don't have access to it as it requires root or administrator privileges
    to change.
    
    If you do have root access, try "locate php.ini" or check in:
    
    /etc/php4/apache2/php.ini
    /usr/local/lib/php.ini
    
    Once you have opened your php.ini, look for the sections related to 
    register_globals and display_errors. Make sure both are Off like so:
    
    display_errors = Off
    register_globals = Off
    
    You'll have to restart Apache after you modify your php.ini for the 
    settings to be updated.
    هل ممكن أحد يفهمني كيفية عمل ما سبق و كيفية تفعيل خاصية الـ subdomains علماً أن لدي إستضافة VPS ...

    أيضاً هل يمكن أن تدلوني على أماكن الملفات الخاصة باللغة حتى يمكنني تعريبها ؟؟؟

    بإنتظار ردكم ...

    تحياتي





    __________________
    إستخدم ملفك الخاص لكتابة توقيعك


  2. #2
    عضو نشيط
    تاريخ التسجيل
    May 2006
    المشاركات
    229


    اقتباس المشاركة الأصلية كتبت بواسطة الكنج
    الإخوة الأعزاء

    السلام عليكم

    تحية طيبة و بعد

    قمت بحاولة تركيب سكربت Word Press Multi User الذي يسمح لي بإستضافة المدونات على موقعي ...

    قمت بكل الخطوات بنجاح و بقيت مشكلة تفعيل الـ Subdomains و في ملف الـ Readme جدت الطريقة المطلوبة و لكن لم أفهمها و لم أعرف كيف أنفذها و هي :

    كود:
    Apache must be configured so that mod_rewrite works. Here are 
    instructions for Apache 2. Apache 1.3 is very similar.
    
    1. Make sure a line like the following appears in your httpd.conf
    LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so
    
    2. In the <Directory> directive of your virtual host, look for this
    line
    "AllowOverride None"
    and change it to
    "AllowOverride FileInfo Options"
    
    3. In the <VirtualHost> section of the config file for your host there
    will be a line defining the hostname. You need to add the following 
    if you want virtual hosts to work properly:
    "ServerAlias *.domain.tld"
    Replace domain.tld with whatever your one is, and remove the quotes.
    
    
    DNS
    ===
    If you want to host blogs of the form http://blog.domain.tld/ where 
    domain.tld is the domain name of your machine then you must add a 
    wildcard record to your DNS records.
    This usually means adding a "*" hostname record pointing at your 
    webserver in your DNS configuration tool.
    Matt has a more detailed explanation:
    http://photomatt.net/2003/10/10/wildcard-dns-and-sub-domains/
    
    
    PHP
    ===
    For security reasons, it's very important that PHP be configured as follows:
    
    1. Don't display error messages to the browser. This is almost always
    turned off but sometimes when you're testing you turn this on and forget
    to reset it.
    
    2. GLOBAL variables must be turned off. This is one of the first things
    any security aware admin will do. These days the default is for it to
    be off!
    
    3. If you want to restrict blog signups, set the restrict domain email 
    setting in the admin.
    
    The easiest way of configuring it is via the .htaccess file that is
    created during the install. If you haven't installed WPMU yet then edit
    the file htaccess.dist in this directory and add these two lines at the
    top:
    
    php_flag register_globals 0
    php_flag display_errors 0
    
    This is NOT included in that file by default because it doesn't work on
    all machines. If it doesn't work on your machine, you'll get a cryptic
    "500 internal error" after you install WPMU. To remove the offending lines
    just edit the file ".htaccess" in your install directory and you'll see
    them at the top. Delete and save the file again.
    Read here for how to enable this: http://ie.php.net/configuration.changes
    
    If you don't want to edit your .htaccess file then you need to change your
    php.ini. It's beyond the scope of this README to know exactly where it is
    on your machine, but if you're on a shared hosted server you probably
    don't have access to it as it requires root or administrator privileges
    to change.
    
    If you do have root access, try "locate php.ini" or check in:
    
    /etc/php4/apache2/php.ini
    /usr/local/lib/php.ini
    
    Once you have opened your php.ini, look for the sections related to 
    register_globals and display_errors. Make sure both are Off like so:
    
    display_errors = Off
    register_globals = Off
    
    You'll have to restart Apache after you modify your php.ini for the 
    settings to be updated.
    هل ممكن أحد يفهمني كيفية عمل ما سبق و كيفية تفعيل خاصية الـ subdomains علماً أن لدي إستضافة VPS ...

    أيضاً هل يمكن أن تدلوني على أماكن الملفات الخاصة باللغة حتى يمكنني تعريبها ؟؟؟

    بإنتظار ردكم ...

    تحياتي
    بكل سهوله اضف ال wildcard record to your DNS records

    هذا يعنى اضافه dns خاص للنطاق
    على الشكل التالى

    *.yourdomain.com

    تحياتى






  3. #3
    عضو نشيط
    تاريخ التسجيل
    Feb 2004
    المشاركات
    134


    آسف أخي الكريم

    هل ممكن تشرحها لي بشكل أكبر لأني بصراحة لا أعرف كيفية عملها ...

    تحياتي





    __________________
    إستخدم ملفك الخاص لكتابة توقيعك

  4. #4
    عضو سوبر نشيط
    تاريخ التسجيل
    Nov 2005
    المشاركات
    894


    السلام عليكم ..

    مشكلة تفعيل الSub Domain اوتوماتيكياً عند إستضافة ورد بريس ..

    اولاً يجب ان تكون انت مالك السيرفر ..

    ان كنت مالك السيرفر فهذه هى الخطوات كما وردت فى ملف readme ..

    تأكد تماماً ان السطر التالى او مايشابهه بنسبة 99% موجود داخل ملف httpd.conf
    كود:
    LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so
    وللتأكد ... ادخل على الشل .. واكتب الأمر التالى :
    كود:
    pico /etc/httpd/conf/httpd.conf
    بعدها ابحث عن السطر الموجود بالأعلى عن طريق ضغط ctrl+W

    الخطوة الثانية : ابحث عن السطر التالى
    كود:
    "AllowOverride None"
    واستبدله ليصبح
    كود:
    "AllowOverride FileInfo Options"
    الخطوة الثالثة : اضف هذا السطر
    كود:
    "ServerAlias *.domain.tld"
    مع تغيير domain.tld فقط الى عنوان موقعك الذى تستضيف عليه المدونات ..

    بالنسبة للDNS

    يمكنك الدخول هنا لمزيد من الشرح http://photomatt.net/2003/10/10/wild...d-sub-domains/


    لقد قمت بتجربة الأمر بنفسى سابقاً وكانت تعمل معى بشكل جيد ..
    ولا اعلم ان كانت ستفلح معك او لا ..

    لذا قبل كل شئ .. لا تنس ان تأخذ نسخة احتياطية من ملف httpd.conf حتى اذا حدث اى خطأ تسترجع الأساسيات ..

    وانا عن نفسى اخلو مسؤليتى من اية اخطاء

    بالتوفيق ,,

    السلام عليكم ,,





    __________________
    موقعي الشخصي | MRadwan.net
    تابعني على تويتر | Mohrad

  5. #5
    عضو نشيط
    تاريخ التسجيل
    Sep 2006
    المشاركات
    227


    الطريقة سهلة

    اول شيء تاكد انة المود ري رايت متفعل اذا متفعل نروح للخطوة الثانية

    ادخل على ملف dns للدومين الي بتركب علية السكربت وغالبا بتحصلها تحت اسم Zone files او شيء من كذا مااذكر طريقة تعديلها في السي بانل


    اضف السطر هذا مع التغيير للدومين تبعك

    كود:
    *.google.com.    IN    CNAME google.com.
    سوي ريلود ل dns بالامر

    service named reload

    بس الحين امورك طيبة






  6. #6
    عضو نشيط
    تاريخ التسجيل
    Feb 2004
    المشاركات
    134


    شكراً لكم إخواني الكرام على المساعدة ...

    لي بعض الإستفسارات :

    - أنا عندي سيرفر VPS , هل أستطيع التعديل في ملف الـ httpd.conf ؟

    إذا يمكن فكيف يمكنني الوصول إليه و تعديله ؟

    - بالنسبة لأوامر الشل , فكيف يمكنني الدخول لموقعي عبر الشل و إذا كا غير مفعلاً فكيف يمكنني تفعيله ؟؟؟

    آسف في الإثقال عليكم بالأسئلة ...

    تحياتي





    __________________
    إستخدم ملفك الخاص لكتابة توقيعك

  7. #7
    عضو نشيط
    تاريخ التسجيل
    Feb 2004
    المشاركات
    134


    يا جماعة ما في أي مساعدة ؟؟؟





    __________________
    إستخدم ملفك الخاص لكتابة توقيعك





ضوابط المشاركة

  • لا تستطيع إضافة مواضيع جديدة
  • لا تستطيع الرد على المواضيع
  • لا تستطيع إرفاق ملفات
  • لا تستطيع تعديل مشاركاتك
  •  

أضف موقعك هنا| اخبار السيارات | حراج | شقق للايجار في الكويت | بيوت للبيع في الكويت | دليل الكويت العقاري | مقروء | شركة كشف تسربات المياه | شركة عزل اسطح بالرياض | عزل فوم بالرياض| عزل اسطح بالرياض | كشف تسربات المياة بالرياض | شركة عزل اسطح بالرياض