| |||||||
| المدوّنات | البحث | مشاركات اليوم | اجعل كافة المشاركات مقروءة |
|
| | LinkBack | أدوات الموضوع |
| |||||
| واحد لغتة مية مية يشرح لنا تركيب 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 | |||||
|
| |||||
|
السلام عليكم انا بحاول بقدر المستطاع اشرحها لك انا ركبته قبل كدا وهوه وبرنامج 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: لا تنسانا من صالح دعائك اان كان كلامى صحيح
__________________ Mohamed Zaki http://ng4host.net ليس اليتيم الذى قد مات والدة .: :. ان اليتيم يتيم العـلـم والأدب | |||||
|
| |||||
| جزاك الله الف خير وخير
شكرا لك فعلا كفيت وفيت الشي اللى وقفة عندة هو ------ 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 | |||||
|
| |||||
|
دخل هذه ال "ثلاث" اوامر ورى بعضها .. بدون اي تعديل طبعاً انا جربت قبل لا احط لك شي هنا والتجربة كانت على سيرفر عليه Cpanel .export PHP_PREFIX="/usr/local" $PHP_PREFIX/bin/phpize ./configure --enable-mmcache=shared --with-php-config=$PHP_PREFIX/bin/php-config | |||||
|
| |||||
|
اه طلب ال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 ليس اليتيم الذى قد مات والدة .: :. ان اليتيم يتيم العـلـم والأدب | |||||
|
![]() |
| أدوات الموضوع | |
| |