PDA

توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : مشکل در نصب xcache



mehotkhan
August 1st, 2011, 16:32
سلام ؛
موقع نصب xcache طبق آموزش سایت خودش ، هنگامی که phpize رو میزنم ، ارور میآد :



/usr/local/bin/phpize: /tmp/xcache-1.3.2/build/shtool: /bin/sh: bad interpreter: Permission denied
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.



آموزش نصب :


~/src $ wget http://... (the release url)
~/src $ tar -zxf xcache-*.tar.gz
~/src $ cd xcache
~/src/xcache $ phpize
~/src/xcache $ ./configure --enable-xcache
~/src/xcache $ make
~/src/xcache $ su
~/src/xcache # make install
~/src/xcache # cat xcache.ini >> /etc/php.ini
(it's two > not one)

(now edit /etc/php.ini with your favorite editor)
~/src/xcache # $EDITOR /etc/php.ini
(make sure zend_extension=../../xcache.so is the first before any other zend_extension=***)


بچه ها کسی میتونه بهم کمک کنه؟

mojiz
August 1st, 2011, 22:28
این centos هست؟
من تابحال این ارور رو نخوردم ولی فکر میکنم Autoconf نصب نیست
بی ربط: APC بهتر از xcache هست اگه نصب کنی

mehotkhan
August 1st, 2011, 22:38
سلام ، آره ، sent os هست ، مشکلش رو حل کردم ،
این کد رو زدم ،


export PHP_AUTOCONF=/usr/local/bin/autoconf

الان نصب کردمش ، تغییری تو سرعت ندیدم فعلا ، تو بیوش نوشته بود ، نویسندش یکی از نویسنده های لایت اسپید بوده ؛ من الان سرور رو با fastcgi کانفیگ کردم ، تو آموزشش تو سایت directadmin هم این رو توصیه کرده بود ، فکر کنم یه جا هم نوشته بود بهتر کار میکنه ، دوباره یه نفر دیگه هم گفت سرورت رو بر اساس زیر کانفیگ کن


Apache2 mpm event w/ mod_fcgid PHP-CGI w/XCache opcode cacher.

البته همین سوال رو از نویسندش پرسیده بودن گفته بود :



Do you (the author of XCache) know apc, eaccelerator, phpa, truck-mmcache ?
Yeah, i know them very well.

I noticed phpa (PHP Accelerator) long ago, and looked at truck-mmcache around the time it was still being actively maintained. Sadly phpa's project died and never updated its code to support newly released versions of PHP. So I used truck-mmcache for a period of time, but... it hanged or crashed continously after being under high load. I noticed APC later, but I've been reading both APC/truck-mmcache source for a long time (I couldn't have writen XCache if I hadn't read them), discovering that APC code is simpler and more beautiful than mmcache's. Features are good, but I believe that stability is more important. So I finally turned to run APC online -- simpler often means more stable. mmcache forked eaccelerator later and they setup www.eaccelerator.net, running trac.

But why do you write XCache after that? Why not contribute to ea/apc?
I DID filing bug report, submiting patches to both http://pecl.php.net/bugs/search.php?cmd=display&package_name[=APC&status=All apc bug report system] and truck-mmcache on sf.net and interactive with communicate with zoeloelip, one of the main developer of eaccelerator. He's the first one read my XCache source, long before XCache is published online. I'm not sure, but i guess the idea he rewrite ea_dasm.c is base on my Disassembler idea in XCache :)

There are many reasons for me to write XCache instead of using APC or EA:

Something too big to be made into them (ea/apc).
I have many new ideas on opcode cacher, but I just can't break their cacher to prove my ideas.
To prove my programming skills? Making project oneself isn't that simple. With only programming skill is far insufficient, you need to become project admin, designing how the project will be, foresee the cost and benefits ... blah blah
To conclude, I've finished writting XCache for quite a long time, before then I had used APC. Although it was quite stable for a php4 with flock() configuration it had become unstable once I upgraded my server to a dual cpu (4 threaded cpu) because it flock()ed badly so XCache was used instead and seems to have solved the problem.

ea/apc is still good opcode cacher, as long as it's maintained actively, and if it's stable for you.

What's special in XCache?
see FeatureList.

btw. I myself, focus XCache on study for stable, for code generating.


دلیلتون رو میگید؟

mojiz
August 2nd, 2011, 00:13
apc توسط تیم خود Php پشتیبانی میشه و قراره تو ورژن 6 جزئی از Php بشه.
من خودم هم قبلا از xcache استفاده میکردم اما الان چون جزئ خود Php شده (تو ورژن 5.3 جزئی از pecl هست) راحت نصب میشه.
حالا اگه نصب کردی دیگه مهم نیست! اونقدر فرقی ندارن

mehotkhan
August 2nd, 2011, 00:58
تو کانفیگش موندم ، الان 1 صدم ثانیه سرعت لود رو کم کرده ، کانفیگش رو بلدی؟

mojiz
August 2nd, 2011, 10:34
کانفیگش رو یادم نیست دقیقا
سروری که داری چند تا سایت رو هاست میکنه؟ هاستت خصوصیه یا داری میفروشی چون این APC و Xcache وقتی فایده دارن که تعداد سایتها محدود باشه و بازدید بالا

mehotkhan
August 2nd, 2011, 11:07
یه vps دارم خصوصیه ، 3 تا سایت بیشتر روش نیست ،

mojiz
August 2nd, 2011, 13:57
آره اینطوری جواب میده، باید لود سرورت رو نیگاه کنی ببینی کم شده یا نه.
تو زمان پاسخگویی خیلی تاثیر نداره
وقتی تعداد بازدید کننده ها زیاد میشه باعث میشه سرور قدرت پاسخگوییش بیشتر بشه.