Cauta


Baga mailu`:


Si vezi ca mailu` e ala cu @ si fara www in fatza, da ?

-

eAccelerator Quick and Dirty

June 21, 2006 , 5:00 pm

Nu raspund daca nu va iese, daca ceva o sa vi se strice, nu explic de ce si cum f amanuntit, pt asta exista documentatie. Pt lene si noroc, exista cate un tutorial ad labam ca asta

eAccelerator is a free open-source PHP accelerator, optimizer, encoder and dynamic content cache. It increases the performance of PHP scripts by caching them in their compiled state, so that the overhead of compiling is almost completely eliminated. It also optimizes scripts to speed up their execution. eAccelerator typically reduces server load and increases the speed of your PHP code by 1-10 times.
eAccelerator stores compiled PHP scripts in shared memory and executes code directly from it. It creates locks only for a short time, while searching for a compiled PHP script in the cache, so one script can be executed simultaneously by several engines. Files that can’t fit in shared memory are cached on disk only.
eAccelerator also contains a PHP encoder and loader. You can encode PHP scripts using encoder.php in order to distribute them without sources. Encoded files can be run on any site which runs PHP with eAccelerator. The sources of encoded scripts can’t be restored because they are stored in a compiled form and the encoded version doesn’t contain the source. Of course, some internals of the scripts can be restored with different reverse engineering tools (disassemblers, debuggers, etc.), but it is not trivial.

Distro: Slackware 10.2
Apache: 1.3.35
php: 4.4.2

Detalii si documentatie, la http://eaccelerator.net/

Instalam din sursa ca doar suntem cu Slack`.
#descarcam si dezarhivam
wget *eaccelerator-0.9.4.tar.bz2
tar jxvf eaccelerator-0.9.4.tar.bz2
cd eaccelerator-0.9.4

#Aici e musai sa fie prefixu real al PHP-ului, in cazu de fata, e ok.
export PHP_PREFIX="/usr"
$PHP_PREFIX/bin/phpize
./configure --enable-eaccelerator=shared --with-php-config=$PHP_PREFIX/bin/php-config
make

#instalam
make install

#Bagam in php.ini; se poate baga si in confu lu` Zend Accelerator dar aici nu ma intereseaza.
extension="eaccelerator.so"
eaccelerator.shm_size="16"
eaccelerator.cache_dir="/tmp/eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"
eaccelerator.log_file = "/var/log/apache/eaccelerator_log"

#facem director de cache
mkdir /tmp/eaccelerator
chmod 0777 /tmp/eaccelerator

#Restart la apache si gata
apachectl stop
apachectl start

#Nota
#Asta are si o interfata web de unde se poate activa sau dezactiva.
mkdir /http/root/folder/eaccelerator
cp eaccelerator*.php /http/root/folder/eaccelerator

#si s`au copiat eaccelerator.php si eaccelerator_password.php
#rulam in browser eaccelerator_password.php ca sa ne setam o parola, bagam ce zice el acolo in php.ini adica ceva de genul:
eaccelerator.admin.name="user"
eaccelerator.admin.password="$1$KB6AP07csY8ohiFPRUtzSF."

#restart la apache. Stergem eaccelerator_password.php, ne ducem la eaccelerator.php si ne dam cu eacceleratoru.

Personal, numai de bine din ce am testat.


Scris de admin in How-To,Linux | (1) Comentariu

Articole asemanatoare:

  • Oda somnului…degeaba
  • ...
  • “pure-ftpd 1.0.20 exploit”
  • ...
  • AC-DC – The Furor – the mp3 of the day
  • ...
  • Adsense Payment Holds Western Union Quick Cash
  • ...
  • Pure-FTPD Quick & Dirty
  • ...

  • 1 Comentariu »

    1. I’ve had good experiences with APC.

      Comment by Marc — June 21, 2006 @ 6:07 pm

    RSS feed for comments on this post. | Trackback

    Comenteaza!

    XHTML ( Poti sa folosesti tagurile): <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> .

    Sorry, nexam post-uri.

    Comentarii recente:

    Ultimele mesaje

    -
    Link Exchange - Directory - Windows Hosting

    Stiri IT & C Politica Financiar Muzica Sport Sanatate Monden Cultura