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

الموضوع: واحد لغتة مية مية يشرح لنا تركيب MMCache

  1. #1
    عضو سوبر نشيط
    تاريخ التسجيل
    Sep 2003
    المشاركات
    696

    واحد لغتة مية مية يشرح لنا تركيب MMCache



    السلام عليكم

    حاولت اركب MMCache ولك ضعت في بعض الامور بسبب اللغة ممكن واحد متكمن او ركبة من قبل

    يشرح لنا الطريقة بسهوله وهذا طريقة التركيب


    ========================================

    1) Login as root in SSH

    2) Run the following commands in the following order:

    cd /

    mkdir mmcache

    cd mmcache

    wget http://unc.dl.sourceforge.net/source...e-2.4.6.tar.gz

    tar xvzf turck-mmcache-2.4.6.tar.gz

    cd turck-mmcache-2.4.6

    export PHP_PREFIX="/usr"
    Note: This could also be: export PHP_PREFIX="/usr/local"

    $PHP_PREFIX/bin/phpize

    ./configure --enable-mmcache=shared --with-php-config=$PHP_PREFIX/bin/php-config

    make

    make install

    3) Edit php.ini - usually it's /etc/php.ini or /usr/local/lib/php.ini

    Find this:

    ;Windows Extensions

    Above this, comment out the PHPA or ZEND lines if you have them. Replace them with this:

    To install as a ZEND extension:

    zend_extension="/mmcache/turck-mmcache-2.4.6/modules/mmcache.so"
    mmcache.shm_size="16"
    mmcache.cache_dir="/tmp/mmcache"
    mmcache.enable="1"
    mmcache.optimizer="1"
    mmcache.check_mtime="1"
    mmcache.debug="0"
    mmcache.filter=""
    mmcache.shm_max="0"
    mmcache.shm_ttl="0"
    mmcache.shm_prune_period="0"
    mmcache.shm_only="0"
    mmcache.compress="1"

    OR to install as a PHP extension:

    extension="/mmcache/turck-mmcache-2.4.6/modules/mmcache.so"
    mmcache.shm_size="16"
    mmcache.cache_dir="/tmp/mmcache"
    mmcache.enable="1"
    mmcache.optimizer="1"
    mmcache.check_mtime="1"
    mmcache.debug="0"
    mmcache.filter=""
    mmcache.shm_max="0"
    mmcache.shm_ttl="0"
    mmcache.shm_prune_period="0"
    mmcache.shm_only="0"
    mmcache.compress="1"

    4) Create the cache directory by doing the following at the command line

    mkdir /tmp/mmcache

    chmod 0777 /tmp/mmcache

    5) Restart Apache

    service httpd restart


    Done!


    Copy the mmcache.php file in the mmcache directory to a directory that is web-accessible, and run it.
    You should be able to see a list of cached scripts as well as the above information.

    Turck MMCache 2.4.6

    MMCache support enabled
    Caching Enabled true
    Optimizer Enabled true
    Memory Size 33,554,392 Bytes
    Memory Available 23,737,176 Bytes
    Memory Allocated 9,817,216 Bytes
    Cached Scripts 110
    Removed Scripts 0
    Cached Keys 0

    شكرا مقدما





    __________________
    email# mazaje@gmail.com
    مرعوب غير متواجد حالياً


  2. #2
    عضو فعال
    تاريخ التسجيل
    Jun 2003
    المشاركات
    1,175


    السلام عليكم


    انا بحاول بقدر المستطاع اشرحها لك انا ركبته قبل كدا وهوه وبرنامج suphp لتحديد اليوزر



    الطريقه بالبلدى كدا الاول تتدخل الشل بالروت وبعدين تعمل مجلد بأسم البرنامج وتتدخله وبعدين تنزله السورس فى الملف وتفكه وبعدين تنادى على مسار الphp تخليه مع مسارك وحته كونفج بالشروط المكتوبه وعمل وبعدين عمل تركيب ثم تروح لملف الphp.ini اللى عاده ما يكون هنا (/usr/local/lib/php.ini) وتبحث عن الكلمه دى (;Windows Extensions) وتمسحها وتتضيف الكلام ده (zend_extension="/mmcache/turck-mmcache-2.4.6/modules/mmcache.so"
    mmcache.shm_size="16"
    mmcache.cache_dir="/tmp/mmcache"
    mmcache.enable="1"
    mmcache.optimizer="1"
    mmcache.check_mtime="1"
    mmcache.debug="0"
    mmcache.filter=""
    mmcache.shm_max="0"
    mmcache.shm_ttl="0"
    mmcache.shm_prune_period="0"
    mmcache.shm_only="0"
    mmcache.compress="1"
    ) ده لو انت مركب زيند لو مش مركبه تبدله بالكلام ده (extension="/mmcache/turck-mmcache-2.4.6/modules/mmcache.so"
    mmcache.shm_size="16"
    mmcache.cache_dir="/tmp/mmcache"
    mmcache.enable="1"
    mmcache.optimizer="1"
    mmcache.check_mtime="1"
    mmcache.debug="0"
    mmcache.filter=""
    mmcache.shm_max="0"
    mmcache.shm_ttl="0"
    mmcache.shm_prune_period="0"
    mmcache.shm_only="0"
    mmcache.compress="1")
    وبعدين تروح الtmp وتعمله مجلد وتعطيه ترخيص 777 وحته ريسارت اباتشى والف مبرووووووووك

    علشان تشوف انك بروف تاخد ملف (mmcache.php ) وتروح بيه فى اى حته عندك فى السرفر ممكن تتقرا من الويب فى موقعك مثلا (/home/userpublic_html) لما تتطلبه المفروض ده اللى يظهر
    (Turck MMCache 2.4.6

    MMCache support enabled
    Caching Enabled true
    Optimizer Enabled true
    Memory Size 33,554,392 Bytes
    Memory Available 23,737,176 Bytes
    Memory Allocated 9,817,216 Bytes
    Cached Scripts 110
    Removed Scripts 0
    Cached Keys 0
    )

    بس وكدا خلص

    الكلام بطريقه فنيه بئا
    كود PHP:
    cd /
    mkdir mmcache
    cd mmcache
    wget 
    [url]http://unc.dl.sourceforge.net/sourceforge/turck-mmcache/turck-mmcache-2.4.6.tar.gz[/url]
    tar xvzf turck-mmcache-2.4.6.tar.gz
    cd turck
    -mmcache-2.4.6
    export PHP_PREFIX
    ="/usr/local"
    $PHP_PREFIX/bin/phpize
    ./configure --enable-mmcache=shared --with-php-config=$PHP_PREFIX/bin/php-config
    make
    make install
    pico 
    /usr/local/lib/php.ini    
    then press Ctrl 
    W to find and tpye  (;Windows Extensions then replace it with that lines zend_extension="/mmcache/turck-mmcache-2.4.6/modules/mmcache.so"
    mmcache.shm_size="16"
    mmcache.cache_dir="/tmp/mmcache"
    mmcache.enable="1"
    mmcache.optimizer="1"
    mmcache.check_mtime="1"
    mmcache.debug="0"
    mmcache.filter=""
    mmcache.shm_max="0"
    mmcache.shm_ttl="0"
    mmcache.shm_prune_period="0"
    mmcache.shm_only="0"
    mmcache.compress="1" )

    if 
    u have zend installed in no replace it with extension="/mmcache/turck-mmcache-2.4.6/modules/mmcache.so"
    mmcache.shm_size="16"
    mmcache.cache_dir="/tmp/mmcache"
    mmcache.enable="1"
    mmcache.optimizer="1"
    mmcache.check_mtime="1"
    mmcache.debug="0"
    mmcache.filter=""
    mmcache.shm_max="0"
    mmcache.shm_ttl="0"
    mmcache.shm_prune_period="0"
    mmcache.shm_only="0"
    mmcache.compress="1" )

    mkdir /tmp/mmcache
    chmod 0777 
    /tmp/mmcache
    /sbin/service httpd restart
    cp 
    -/mmcache/mmcache.php /home/user/public_html
    chmod 755 
    /home/user/public_html/mmcache.php

    u should be able to see ur work result 
    وسلام عليكم


    لا تنسانا من صالح دعائك اان كان كلامى صحيح





    __________________
    Mohamed Zaki

    http://ng4host.net

    ليس اليتيم الذى قد مات والدة .: :. ان اليتيم يتيم العـلـم والأدب
    Mohamed Zaki غير متواجد حالياً

  3. #3
    عضو جديد
    تاريخ التسجيل
    Jul 2004
    المشاركات
    11


    حتى لو ماكان صحيح
    يكفي تعبك
    الله يجعل لك الاجر في كل جزء ثانية فكرت فيه بالترجمه





    __________________
    www.naaaa.net
    أبو هشام غير متواجد حالياً

  4. #4
    عضو سوبر نشيط
    تاريخ التسجيل
    Sep 2003
    المشاركات
    696

    جزاك الله الف خير وخير



    شكرا لك فعلا كفيت وفيت

    الشي اللى وقفة عندة هو
    ------
    export PHP_PREFIX="/usr/local"
    $PHP_PREFIX/bin/phpize
    ./configure --enable-mmcache=shared
    --with-php-config=$PHP_PREFIX/bin/php-config
    make

    شنو المطلوب بالضبط

    ادش على المسار

    /usr/local

    وبعدين هنا النقط اللى مافهمتها فقط

    عمومن شكرا لك وجزاك الله الف خير وخير





    __________________
    email# mazaje@gmail.com
    مرعوب غير متواجد حالياً

  5. #5
    Banned
    تاريخ التسجيل
    Oct 2003
    المشاركات
    364


    دخل هذه ال "ثلاث" اوامر ورى بعضها .. بدون اي تعديل طبعاً انا جربت قبل لا احط لك شي هنا والتجربة كانت على سيرفر عليه Cpanel .
    export PHP_PREFIX="/usr/local"
    $PHP_PREFIX/bin/phpize
    ./configure --enable-mmcache=shared --with-php-config=$PHP_PREFIX/bin/php-config





    Moh@med غير متواجد حالياً

  6. #6
    عضو فعال
    تاريخ التسجيل
    Jun 2003
    المشاركات
    1,175


    اه طلب الphp من /usr/local



    export PHP_PREFIX="/usr/local" && $PHP_PREFIX/bin/phpize && ./configure --enable-mmcache=shared --with-php-config=$PHP_PREFIX/bin/php-config && make && make install


    سطر واحد

    سلام عليكم





    __________________
    Mohamed Zaki

    http://ng4host.net

    ليس اليتيم الذى قد مات والدة .: :. ان اليتيم يتيم العـلـم والأدب
    Mohamed Zaki غير متواجد حالياً





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

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

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