Install XCache PHP Accelerator in Linux by Compiling from Source بي. اتش. بى تثبيت xcache مسرع في لينكس عن طريق تجميع من المصدر

XCache is an alternative yet fast and stable PHP accelerator and opcode cacher that is similar to the famous eAccelerator and APC (Alternative PHP Cache). Xcache بديل حتى الآن مستقرة وسريعه وعملية برمجيه بي. اتش. بى مسرع cacher وهذا هو مماثل لeaccelerator الشهيرة والجيش الشعبى الكونغولى (بي. اتش. بى البديله ذاكرة التخزين المؤقت). XCache extension works by caching the compiled bytecode (opcode or intermediate code) form of PHP scripts to avoid the overhead to parse and compile PHP source code on every page request, and thus reduces server loads, boosts the performance of PHP scripts and increases the speed of PHP code from 2-10 times. Xcache تمديد اعمال المجمعه bytecode التخزين المؤقت (قانون عملية برمجيه أو وسيطة (بي. اتش. بى شكل مخطوطات لتجنب النفقات العامة لتجميع وتحليل شفره المصدر بي. اتش. بى في كل صفحة الطلب ، وبالتالي يقلل من خادم الاحمال ، ويعزز اداء بي. اتش. بى مخطوطات ويزيد من سرعة بي. اتش. بى للقانون من 2-10 مرات.

XCache supports all of the latest PHP cvs branches such as PHP 4.3, PHP 4.4, PHP 5.1 and PHP 5.2 on Linux server including CentOS which common used on cPanel and Plesk based web hosting server, and ThreadSafe/Windows web server. Xcache تدعم كل من أحدث فروع بي. اتش. بى السير الذاتية مثل بي. اتش. بى 4،3 ، 4،4 بي. اتش. بى ، بي. اتش. بى بى. اتش. بى 5،2 و 5،1 على خادم لينكس centos بما المشتركة التي تستخدم على cpanel وplesk استضافة خادم الويب ، وthreadsafe / ويندوز خادم الويب. XCache overcomes a lot of problems that exist on opcachers or accelerators such as unable to work with new PHP versions. Xcache يتغلب الكثير من المشاكل التي توجد على opcachers مثل المعجلات او غير قادر على العمل مع الاصدارات الجديدة بي. اتش. بى. Beside, XCache also been الى جانب ، كما تم xcache benchmarked to be faster وقيم لتكون أسرع than other opcode cachers. من cachers عملية برمجيه اخرى.

This is a simple tutorial and guide on how to install XCache PHP cacher by manually compiling from source code package. هذا هو البرنامج التعليمي ودليل بسيط على كيفية تثبيت xcache بي. اتش. بى cacher يدويا عن طريق تجميع مجموعة من شفره المصدر. If you’re using Wordpress or using XCache to speed up and improve Wordpress blog performance, you should first ensure that PHP is upgraded to latest version (PHP 5.2.1), as PHP 4 may cause some instability issue such as unable to post comment, partial page loading and etc. Anyway, PHP5 is always recommended if possible. اذا كنت تستخدم WordPress او استخدام xcache لتسريع وتحسين الاداء بلوق WordPress ، فيجب عليك اولا ان بي. اتش. بى هو ضمان ورفع مستواها لآخر اصدار (بي. اتش. بى 5.2.1) ، بي. اتش. بى فى 4 ايار / مايو يسبب بعض الاستقرار مثل مسألة غير قادرة على نشر التعليق الجزءيه وما الى صفحة التحميل وعلى أي حال ، php5 دائما اوصى اذا امكن ذلك. And as with all PHP accelerator, XCache won’t work with PHP suEXEC turns on. وكما هو الحال مع جميع مسرع بي. اتش. بي ، لن xcache العمل مع بي. اتش. بى على suexec وينتقل. PHP suEXEC must be disabled for XCache to work properly. بي. اتش. بى suexec يجب ان يتم تعطيلها لxcache العمل بشكل صحيح.

Currently, XCache maintains 2 branches, ie version 1.0.3 and version 1.2.0. وفي الوقت الراهن ، xcache تحتفظ 2 الفروع ، اي الاصدار 1.0.3 والاصدار 1.2.0. Both version is now stable release, with version 1.0.x recommended for PHP 4.3.x and 4.4.x, and version 1.2.x recommended for most version of PHP including 5.1.x and 5.2.x, except PHP 5.0.x series. كل من النسخه الآن اصدار مستقر ، مع نسخة 1.0.x اوصت لبي. اتش. بى 4.3.x و4.4.x ، واوصت لنسخة 1.2.x اكثر من النسخه 5.1.x بي. اتش. بى وبما 5.2.x ، 5.0.x سلسلة الا بي. اتش. بى. If you’re using PHP4, try both version of XCache to pick the one most suitable for your application. اذا كنت تستخدم php4 ، حاول كل من الصيغة xcache لاختيار انسبها لطلبك. To check which version of PHP you’re usinng, issue command php -v or setup a PHP file with the following content, then call the file from web browser: للتأكد من النسخه التي كنت usinng بي. اتش. بى ، ومسألة القيادة فى بي. اتش. بى - بي. اتش. بي آ او الاعداد التالية مع الملف ، وبعد ذلك الدعوة الى الملف من متصفح الانترنت :

<?php <؟ بي. اتش. بى
phpinfo(); phpinfo () ؛
?> ؟>

  1. Change to user local source directory such as /usr/local/src by using following command: لتغيير مصدر محلي دليل المستخدم مثل / usr / المحلية / src باستخدام الأمر التالي :

    cd /usr/local/src مؤتمر نزع السلاح / usr / المحلية / src

  2. Retrieve and download the source package of the version of XCache you choose to install. استرجاع وتحميل المصدر مجموعة من نسخة xcache اخترت لتثبيت.

    wget http://210.51.190.228/pub/XCache/Releases/xcache-1.0.3.tar.gz (for XCache 1.0.3) wget http://210.51.190.228/pub/xcache/releases/xcache-1.0.3.tar.gz (لxcache 1.0.3)

    or او

    wget http://210.51.190.228/pub/XCache/Releases/xcache-1.2.0.tar.gz (for XCache 1.2.0) wget http://210.51.190.228/pub/xcache/releases/xcache-1.2.0.tar.gz (لxcache 1.2.0)

  3. Untar, unzip, unpack or extract the archive with one of the following commands: Untar ، unzip ، افتح او استخراج ارشيف مع واحد من الاوامر التالية :

    tar -zxf xcache-*.tar.gz القطران - zxf xcache - *. tar.gz
    gzip -dc xcache-*.tar.gz | tar -x gzip - العاصمة - xcache *. tar.gz | تقرير التقييم الثالث الى العاشر

  4. Go into the xcache directory with source content: اذهب الى دليل xcache مع مضمون المصدر :

    cd xcache مؤتمر نزع السلاح xcache

  5. Trigger PHP building environment: بي. اتش. بى تحريك الدعوى بناء البيئة :

    phpize

  6. Optional but recommended practice is to build XCache outside of source directory: ولكنها اوصت الممارسه الاختياري هو بناء xcache خارج دليل المصدر :

    mkdir ../xcache-build mkdir.. / - بناء xcache
    cd ../xcache-build مؤتمر نزع السلاح.. / - بناء xcache

  7. Run the configure with the option that you want, the basic is as below which will enable the XCache by default: تشغيل تهيئة مع الخيار الذي تريد ، هي الاساسية على النحو المبين ادناه ، مما سيمكن xcache افتراضي :

    ../xcache/configure –enable-xcache .. / xcache / - تكوين - تمكين xcache

    You can list out all available options by using ../xcache/configure –help command, which will display the following: يمكنك قائمة بها جميع الخيارات المتاحة من خلال استخدام.. / xcache / تكوين المساعدة للقيادة ، الذي سيحتوي على ما يلي :

    –enable-xcache Include XCACHE support. - تمكين - xcache تشمل xcache الدعم.
    –enable-xcache-optimizer XCACHE: (N/A) - تمكين - xcache - محسن xcache : (ن / أ)
    –enable-xcache-coverager XCACHE: Enable code coverage dumper - تمكين - xcache - coverager xcache : تمكين مدونة التغطيه عربة النقل
    –enable-xcache-assembler XCACHE: (N/A) - تمكين - xcache - جامع xcache : (ن / أ)
    –enable-xcache-disassembler XCACHE: Enable opcode to php variable dumper - تمكين - xcache - مجمع xcache : تمكين عملية برمجيه لبي. اتش. بى متغير عربة النقل
    –enable-xcache-encoder XCACHE: (N/A) - تمكين - xcache آلة التشفير - xcache : (ن / أ)
    –enable-xcache-decoder XCACHE: (N/A) - تمكين - xcache - فك الترميز xcache : (ن / أ)
    –enable-xcache-test XCACHE: Enable self test - FOR DEVELOPERS ONLY!! - تمكين - xcache تجارب xcache : تمكين اختبار الذات -- للمطورين فقط!

  8. Compile the source with following command: تجميع مصدر الأمر التالي :

    make يصنع

    Ensure that no error occurred. ضمان ان لم يحدث اي خطأ.

  9. If you haven’t already using root account, su to root user. اذا كنت لم تستخدم بالفعل لحساب الجذر ، سو من اجل القضاء على المستخدم.
  10. Install XCache binary with the following command: تثبيت ثنائي مع xcache التالي :

    make install جعل تركيب

    Ensure that no error occurred, and note down the extension installation path of the xcache.so. ضمان ان لم يحدث اي خطأ ، وتمديد مذكرة الى اسفل الطريق من تركيب xcache.so.

  11. Next, XCache need to be configured and enabled in PHP.INI file. وبعد ذلك ، xcache تحتاج الى تهيئتها ومكن في ملف php.ini. Locate the correct location of php.ini configuration file by using العثور على الموقع الصحيح للملف التهيءه php.ini عن طريق إستخدام phpinfo() phpinfo () function (see sample listed above to check version of PHP). وظيفة (انظر العينه المذكورة اعلاه للتحقق من صيغة بي. اتش. بى). In web hosting environment, normally it’s located in /etc or /usr/local/lib. في استضافة المواقع والبيئة ، وانها تقع عادة في / أو الخ / usr / المحلية / مكتبة. If the install of PHP parses the /etc/php.d/ folder, then simply create a file in that folder named “xcache.ini” or copy over the sample xcache.ini came with source package. واذا كان تثبيت يعرب بي. اتش. بى / الخ / php.d / مجلد ، ثم ببساطة انشاء ملف في هذا مجلد باسم "xcache.ini" نسخة او اكثر من العينه xcache.ini جاء مع مجموعة المصدر.

    Change back to xcache source unpack directory, and run the following command with root user: عودة الى تغيير مصدر xcache افتح دليل ، وتشغيل الامر التالي مع الجذر المستخدم :

    cat xcache.ini >> /etc/php.ini القط xcache.ini>> / الخ / php.ini
    $EDITOR /etc/php.ini دولار محرر / الخ / php.ini

    Note: change to the path of php.ini accordingly ملاحظه : لتغيير مسار php.ini وبناء عليه

    This will append the default XCache configuration to the end of php.ini. هذا مع ارفاق الافتراضي xcache التكوين الى نهاية php.ini. Alternatively, you can copy and paste the following text into the php.ini file yourself too: وبدلا من ذلك ، يمكنك نسخ ولصق النص التالي الى ملف php.ini نفسك ايضا :


    [xcache-common] [xcache المشتركة -]
    ;; install as zend extension (recommended) ؛ ؛ تثبيت لغة فارسيه قديمة كما التمديد (مستحسن)
    zend_extension = /usr/local/lib/php/extensions/no-debug-non-zts-xxx/xcache.so zend_extension = / usr / المحلية / ليب / بي. اتش. بى / التمديدات / لا - التصحيح - عدم zts - '30/ xcache.so
    ;; install as zend extension with thread-safe ؛ ؛ تثبيت لغة فارسيه قديمة كما التمديد مع الخيوط الامنه -
    ; zend_extension_ts = /usr/local/lib/php/extensions/non-debug-zts-xxx/xcache.so ؛ Zend_extension_ts = / usr / المحلية / ليب / بي. اتش. بى / التمديدات / عدم التصحيح - zts - '30/ xcache.so
    ;; install as PHP extension (extension_dir must be set to the full path to xcache.so) ؛ ؛ تثبيت ما بي. اتش. بى التمديد (extension_dir يجب ان يوضع على كامل الطريق الى xcache.so)
    ; extension = xcache.so تمديد = xcache.so

    [xcache.admin]
    xcache.admin.user = “admin” xcache.admin.user = "الادارة"
    xcache.admin.pass = md5($your_password) xcache.admin.pass = md5 ($ your_password)

    [xcache]
    xcache.shm_scheme = “mmap” xcache.shm_scheme = "mmap"
    xcache.size = 16M xcache.size = 16m
    xcache.count = 1 xcache.count = 1
    xcache.slots = 8K xcache.slots = 8k
    xcache.ttl = 0 xcache.ttl = 0
    xcache.gc_interval = 0 xcache.gc_interval = 0

    xcache.var_size = 0M xcache.var_size = 0m
    xcache.var_count = 1 xcache.var_count = 1
    xcache.var_slots = 8K xcache.var_slots = 8k
    xcache.var_ttl = 0 xcache.var_ttl = 0
    xcache.var_maxttl = 0 xcache.var_maxttl = 0
    xcache.var_gc_interval = 300 xcache.var_gc_interval = 300

    xcache.test = Off من xcache.test =
    xcache.readonly_protection = Off من xcache.readonly_protection =
    xcache.mmap_path = “/dev/zero” xcache.mmap_path = "/ ديف / صفر"
    xcache.coredump_directory = “” xcache.coredump_directory = ""
    xcache.cacher = On = على xcache.cacher
    xcache.stat = On = على xcache.stat
    xcache.optimizer = Off من xcache.optimizer =

    [xcache.coverager]
    xcache.coverager = Off من xcache.coverager =
    xcache.coveragedump_directory = “” xcache.coveragedump_directory = ""

  12. You can configure XCache to your preference. يمكنك xcache الى المفضل لديك. One setting that must be changed is under the [xcache-common], where you must specify the correct installation path of the XCache extension module. ان تحديد واحد ولا بد من تغيير واقعه تحت [xcache - مشتركة] ، حيث يجب ان تحدد المسار الصحيح للتركيب xcache التمديد وحده. You can also opt to run XCache as PHP extension instead of extension for Zend module. يمكنك ايضا ان تختار لتشغيل xcache كما تمديد بي. اتش. بى بدلا من التمديد للغة فارسيه قديمة وحده. In this case, comment and uncomment the line accordingly. وفي هذه الحاله ، التعليق غير تعليق والخط وفقا لذلك. Other important options include “xcache.size” which specify amount the memory allocated to XCache, “xcache.count” to take advantage of multi-core processors or multiple processors. وتشمل الخيارات الاخرى الهامة "xcache.size" التي تحدد المبلغ الذي خصص لذكرى xcache ، "xcache.count" للاستفادة من المعالجات متعددة النواه او تعدد المعالجات. And if you plan to use XCache web administration interface, input the “xcache.admin.user” and md5 checksum value of “xcache.admin.pass”. واذا كنت تخطط لاستخدام شبكة xcache واجهة الادارة ، ومساهمه "xcache.admin.user" md5 اختباري وقيمه "xcache.admin.pass". Try يحاول MD5 tools أدوات md5 to generate the correct value, or use the following command to generate the MD5 for your password: لتوليد القيمه الصحيحه ، او استخدم الأمر التالي لتوليد md5 لكلمة السر الخاصة بك :

    echo -n “password” | md5sum صدى - نون "كلمة السر" | md5sum

    Note: Explanation and definition of all XCache INI settings can be found ملاحظه : شرح وتعريف جميع xcache ini اعدادات ويمكن الاطلاع على here هنا .

  13. Restart the Apache httpd web server. اعادة تشغيل خادم الويب اباتشي httpd. The following commands should work: الاوامر التالية يجب ان تعمل :

    /etc/init.d/apache* restart / الخ / init.d / اباتشى * اعادة

    or او

    /etc/init.d/httpd* restart / الخ / init.d / httpd * اعادة

  14. Ensure the XCache is running by calling PHP file with phpinfo() (see sample above). ضمان xcache يركض بي. اتش. بى عن طريق الاتصال بالهاتف مع ملف phpinfo () (انظر اعلاه عينه). You should see a new XCache Support block with opcode cache enabled. يجب ان تتمكن من رؤية جديدة لدعم الكتلة xcache مع تمكين عملية برمجيه مخبأ.
  15. If you wish to set up XCache administration page, configure an alias in httpd.conf of Apache to point to the admin subdirectory within XCache. اذا كنت ترغب في انشاء صفحة xcache الادارة ، وهو الاسم المستعار في تكوين httpd.conf اباتشي من ان نشير الى دليل فرعي داخل الادارة xcache. To do so, add the following line to httpd.conf (assuming your xcache source is extracted at /usr/local/src/, and you want to access admin page from /xcache-admin/ URL): على ان تفعل ذلك ، اضافة السطر التالي الى httpd.conf (على افتراض المصدر الخاص بك xcache تستخرج فى / usr / المحلية / src / ، وتريد الوصول اليها من الصفحه الادارة / xcache - الادارة / العنوان) :

    Alias /xcache-admin/ /usr/local/src/xcache/admin/ الاسم المستعار / xcache - الادارة / / usr / المحلية / src / xcache / ادارة /

    Then restart Apache web server. ثم قم باعادة تشغيل خادم الويب اباتشي. For lighttpd, add the following line instead: لlighttpd ، اضافة السطر التالي بدلا من :

    alias.url += (”/xcache-admin/” => “/usr/share/xcache/admin/”) alias.url + = ( "/ xcache - الادارة /" => "/ usr / حصة / xcache / الادارة /")

    Alternatively, you can also copy the whole “admin” directory from the “xcache” source folder to web document-root or sub-directory of your domain which is web accessible. وبدلا من ذلك ، يمكنك أيضا أن نسخة الجامع "الادارة" من دليل "xcache" المصدر الى وثيقة الانترنت مجلد الجذر ، او دون دليل نطاقك التي يمكن الوصول اليها على الشبكه العالمية. However, this method is not recommended as you may forget to update the admin page when XCache package is updated. بيد ان هذه الطريقة لا يوصي كما يمكنك أن ننسى لتحديث الصفحه ادارة مجموعة xcache عندما يتم تحديث.

    Note: Ensure that ملاحظه : ضمان open_basedir protection حمايه open_basedir , if enabled, is excluded for the directory contains admin-page. ، إذا مكن ، لاستبعاد هذا الدليل من صفحة ويحتوي على الادارة.

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. هام : هذا هو الاله الذي ترجم صفحة مقدمة "كما هى" دون ضمان. Machine translation may be difficult to understand. الترجمة الاليه قد يكون من الصعب ان نفهم. Please refer to يرجى الرجوع الى original English article المادة الاصليه English whenever possible. كلما كان ذلك ممكنا.

Share and contribute or get technical support and help at والمساهمة في حصة او الحصول على الدعم التقني والمساعدة فى My Digital Life Forums بلدي الرقميه الحياة المنتديات .



Leave a Reply ترك الرد

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> يمكنك استخدام هذه العلامات : <ahref="" title=""> <abbrtitle=""> <acronymtitle=""> <b><blockquotecite=""> <cite><code><دل datetime = ""> <em><i><qCite=""> <strike><strong>

Subscribe without commenting اشترك بدون تعليق


Custom Search

New Articles المواد الجديدة

Incoming Search Terms for the Article الوافدة من حيث البحث عن المادة

Thread Safety must be disbaled in php.ini خيط الامان يجب ان يكون disbaled في php.ini - -- how to install php accelerator كيفية تثبيت بي. اتش. بى مسرع - -- suse php accelerator بي. اتش. بى سوسا مسرع - -- "Thread Safety must be disabled in php.ini" "يجب ان يكون الخيط سلامة المعوقين في php.ini" - -- accelerator x for linux مسرع العاشر في لينكس - -- linux php accelerator بي. اتش. بى مسرع لينكس - -- php accelerator wordpress بي. اتش. بى مسرع WordPress - -- install xCache تثبيت xcache - -- linux compiling php extensions بي. اتش. بى تجميع التمديدات لينكس - -- compiling anastasia source code جمع شفره المصدر اناستازيا - -- how to install php accelerator on Linux server كيفية تثبيت بي. اتش. بى مسرع على خادم لينكس - -- compile form of PHP بي. اتش. بى شكل من اشكال تجميع - -- compile my sources linux تجميع مصادري لينكس - -- php extention .so location inlinux بي. اتش. بى extention. المتعلقة Linux لينكس ذلك المكان - -- php accelerator ubuntu بي. اتش. بى مسرع اوبونتو - -- akcelerator apache akcelerator اباتشي - -- XCache installation تركيب xcache - -- APC php plesk الجيش الشعبى الكونغولى بي. اتش. بى plesk - -- disabilitare Thread Safety in php.ini disabilitare خيط الامان في php.ini - -- linux apache accelerator لينكس واباتشي ومسرع - -- php gzip plesk بي. اتش. بى gzip plesk - -- php Zend Core 2.5 no command line بي. اتش. بى اى لغة فارسيه قديمة الاساسية 2،5 سطر الاوامر - -- plesk php accelerator بي. اتش. بى plesk مسرع - -- XCache XCache-Optimizer Configure Command PHP Xcache xcache محسن - تكوين قيادة بي. اتش. بى - -- check apc centos التحقق من الجيش الشعبى الكونغولى centos - -- enable gzip in php.ini file تمكين gzip في ملف php.ini - -- php العربي بي. اتش. بى العربي - -- +"Threadsafe PHP" +SuSe + "بي. اتش. بى threadsafe" + سوسا - -- centos worker php thread safe بي. اتش. بى centos عامل الخيوط الامنه - -- centos upgrade php source "thread-safe" بي. اتش. بى centos ترقية المصدر "الخيط - امنة" - -- compiling php 5.2 suse plesk بي. اتش. بى تجميع 5،2 سوسا plesk - -- install apc on plesk الجيش الشعبى الكونغولى على تثبيت plesk - -- php accelerator tutorial بي. اتش. بى البرنامج التعليمي المسرع - -- php apc 5.0.x بي. اتش. بى الرابطه 5.0.x - -- PHP fastest source code بي. اتش. بى اسرع شفره المصدر - -- XCache "php.ini" Xcache "php.ini" - -- apc accelerator phpsuexec الجيش الشعبى الكونغولى مسرع phpsuexec - -- how to enable suexec+plesk+centos suexec كيفية تمكين plesk + + centos - -- install accelerator apche php بي. اتش. بى تثبيت مسرع apche - -- phpsuexec opcode phpsuexec عملية برمجيه - -- php accelerator linux بي. اتش. بى مسرع لينكس - -- check content tar.gz inlinux التحقق من محتوى tar.gz المتعلقة Linux لينكس - -- enable thread safety php centos بي. اتش. بى السلامة تمكين الخيط centos - -- php+recompile+on+plesk+linux+centos بي. اتش. بى + + اعد تجميع على plesk + + + لينكس centos - -- php accelator بي. اتش. بى accelator - -- plesk php extensions بي. اتش. بى تمديدات plesk - -- XCache wordpress multiple Xcache WordPress متعددة - -- php Thread Safety linux' بي. اتش. بى خيط الامان لينكس ' - -- linux accelerators المعجلات لينكس - -- php compile thread safe بي. اتش. بى تجميع الخيوط الامنه - --