نظرة سريعة على مجريات يوم سوالف
الفائزون في المسابقة الأصغر لسوالف كاست

 

العودة   سوالف سوفت > قسم الشبكات والخوادم وقواعد البيانات > قسم تبادل خبرات الاستضافة
المدوّنات البحث مشاركات اليوم اجعل كافة المشاركات مقروءة

موضوع مغلق
 
LinkBack أدوات الموضوع
عضو سوبر نشيط
تاريخ التسجيل: Sep 2003-
#1 (permalink)  
واحد لغتة مية مية يشرح لنا تركيب 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
مرعوب غير متواجد حالياً   قديم 27-09-2004, 12:00 AM
عضو فعال
تاريخ التسجيل: Jun 2003-
#2 (permalink)  

السلام عليكم


انا بحاول بقدر المستطاع اشرحها لك انا ركبته قبل كدا وهوه وبرنامج 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

ليس اليتيم الذى قد مات والدة .: :. ان اليتيم يتيم العـلـم والأدب
ng4host غير متواجد حالياً   قديم 27-09-2004, 01:32 AM
عضو جديد
تاريخ التسجيل: Jul 2004-
#3 (permalink)  

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






__________________
www.naaaa.net
أبو هشام غير متواجد حالياً   قديم 27-09-2004, 10:35 AM
عضو سوبر نشيط
تاريخ التسجيل: Sep 2003-
#4 (permalink)  
جزاك الله الف خير وخير

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

الشي اللى وقفة عندة هو
------
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
مرعوب غير متواجد حالياً   قديم 27-09-2004, 02:08 PM
Banned
تاريخ التسجيل: Oct 2003-
#5 (permalink)  

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






Moh@med غير متواجد حالياً   قديم 27-09-2004, 04:17 PM
عضو فعال
تاريخ التسجيل: Jun 2003-
#6 (permalink)  

اه طلب ال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

ليس اليتيم الذى قد مات والدة .: :. ان اليتيم يتيم العـلـم والأدب
ng4host غير متواجد حالياً   قديم 27-09-2004, 04:33 PM
موضوع مغلق


أدوات الموضوع

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

كود [IMG] متاحة
كود HTML معطلة
Trackbacks are متاحة
Pingbacks are متاحة
Refbacks are متاحة



الساعة الآن: 06:51 AM بتوقيت المملكة العربية السعودية