Satış ve Destek +90 (216) 521 78 00

Sepetim Giriş Yap | Kayıt Ol
Tenik Data
Installing eAccelerator - TeknikDATA Hosting Hizmetleri

Bilgi Merkezi

Ana sayfa > Bilgi Merkezi > English > Apache > Installing eAccelerator

Installing eAccelerator

Installing eAccelerator

eAccelerator is a PHP accelerator/encoder/caching utility that is based on the old mmcache (which is no longer being maintained). What Eaccelerator does is: it caches your PHP scripts so that the database is no longer being queried every time someone needs a script. This is particularly useful for large forums, but pretty much anyone can benefit from it. Since these scripts are cached, you’ll notice a decrease in the memory use and server load.
Now, getting into installing this!

Installing eAccelerator

1. First, you’ll want to SSH into your server as the root user. you should be in the default directory now. If you’re not, type in cd ~
Now we’ll make the eaccelerator directory:
mkdir /ea/
cd /ea/
2. Now we’ll grab the files, and untar them:
Notice that it’s a tar.bz2 file, so we need to decompress it twice.
wget http://heanet.dl.sourceforge.net/sourceforge/eaccelerator/eaccelerator-0.9.4-rc1.tar.bz2
bzip2 -d eaccelerator-0.9.4-rc1.tar.bz2
tar xvf eaccelerator-0.9.4-rc1.tar
3. Now that we’ve done that, let’s install Eaccelerator:
Note: in the following “export” command, you need to point that to where PHP is installed. For most, it’s usually either “usr/” or “usr/local”, but it may be something else.
cd eaccelerator-0.9.4-rc1/
export PHP_PREFIX=”/usr”
$PHP_PREFIX/bin/phpize
./configure –enable-eaccelerator=shared –with-php-config=$PHP_PREFIX/bin/php-config
make
make install
4. It’s basically installed, now we need to edit the php.ini files to include Eaccelerator. This is usually found in the /etc/ folder, but if you can’t find it, run a “locate php.ini” (without quotes) to find it. You can use pico or vi, it’s your choice:
cd ~
nano /etc/php.ini
—————————————————————————-
For a PHP extension install (most will probably want this)
—————————————————————————-
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″
—————————————————————————-
For a Zend Extension install (only if you have Zend Optimizer installed, or if you’re going to install it
—————————————————————————-
Note that the path maybe different. Paste the path you get after make install. For eg:
zend_extension=/usr/lib/php/extensions/no-debug-non-zts-20020429/eaccelerator.so
Replace the path above to the respective place.
zend_extension=”/usr/lib/php4/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″
cd ~
mkdir /tmp/eaccelerator/
chmod 0777 /tmp/eaccelerator/
5.After installed restart apache to check eaccelerator is installed.
/etc/rc.d/init.d/httpd restart
Open up your favorite FTP client and upload the eaccelerator.php and eaccelerator_password.php files to any directory on your website.
Once that’s done, you can go to http://www.your-domain.com/path_to_s…ccelerator.php (of course, replacing that with the path to the script) to see if it’s installed.
Now, we’ll probably want to add a password to prevent some mean user from clearing the cached scripts or causing other bad stuff to happen. Navigate to the eaccelerator_password file and set an administrator name and password.
This doesn’t set the password, but it gives you a line of code to place in your php.ini file (just below the eaccelerator part). Once you do this, you need to login to view the eaccelerator page.

cp /ea/eaccelerator-0.9.4-rc1/eaccelerator.php /usr/local/apache/htdocs/

Bulut Hosting Bireysel Hosting Kurumsal Hosting Bayi Hosting Uygulama Hosting Wordpress Hosting Joomla Hosting Drupal Hosting E-Ticaret Hosting Haber Hosting Veritabanı Hosting MySQL Hosting MongoDB Hosting PostgreSQL Hosting
Bulut Sunucu Bulut Sunucu Sunucu Barındırma Sunucu Kiralama Sunucu Yük Dengeleyici Bulut Sunucu Standart Bulut Sunucu Enterprise Bulut Sunucu SSD Premium Bulut Sunucu Sunucu Yük Dengeleyici Kiralama Güvenlik Duvarı Kiralama
Kurumsal Email Sunucu Standart Email Sunucu Professional Email Sunucu Enterprise Email Sunucu Bulut Email Bulut E-Posta Hosting Hosted Zimbra Spam/Virüs Gateway Mail Back Up Smart Host ETRN Hizmeti E-Posta Servisleri
Domain Alan Adı Tescil Alan Adı Transfer Alan Adı Yenileme TÜrkçe Alan Adı Kayıt Marka Tescil Marka Tescil Başvuru
CDN Çözümleri Statik Cache Hizmeti İçerik Hızlandırma Coğrafi İçerik Dağıtımı CDN Depolama SSL Sertifika Comodo SSL QuickSSL True BusinessID SSL

LiveZilla Live Help