PHP.ph

25 Jul, 2008

Fedora 9: Eaccelerator Installation

Posted by: php In: Fedora Core

eAccelerator is a free open-source PHP accelerator. It increases the performance of PHP scripts by caching them in their compiled state.

In this Fedora eaccelerator installation, /var/www/html is the main html folder for http://server.domain.com.

Through SSH

yum -y install php-eaccelerator

View phpinfo() to verify if eAccelerator is enabled

echo "<?php phpinfo(); ?>" > /var/www/html/phpinfo.php

Then point your browser to http://server.domain.com/phpinfo.php

or

Open a text editor and type:
<?php phpinfo(); ?>
Save as phpinfo.php and upload it to /var/www/html/
Point your browser to http://server.domain.com/phpinfo.php

Control Panel

Copy control.php to your main html folder.

cp /usr/share/doc/php-eaccelerator-0.9.5.2/control.php /var/www/html

Edit control.php. Change $user and $pw to your desired username and password.

$user = "admin";
$pw = "eAccelerator";

Edit the file /etc/php.d/eaccelerator.ini

vi /etc/php.d/eaccelerator.ini

Find eaccelerator.allowed_admin_path and enter “/var/www/html/control.php”

eaccelerator.allowed_admin_path = “/var/www/html/control.php”

Save and exit.

Restart Apache.

/etc/init.d/httpd restart

View your eAccelerator control panel at http://server.domain.com/control.php

vi Basics

press i = to insert
press Esc = return to command
type :wq press Enter = save file and quit
type :q! press Enter = quit without saving

Files and Directories

eaccelerator cache = /var/cache/php-eaccelerator
eaccelerator.ini = /etc/php.d/eaccelerator.ini
control.php = /usr/share/doc/php-eaccelerator-0.9.5.2

Tags: , ,

1 Response to "Fedora 9: Eaccelerator Installation"

1 | Saging Lang ang may Puso - May Dede Ako, Pare! | Dakkel, dakkel naman

August 3rd, 2008 at 8:27 pm

Avatar

[...] Tapos iyon nga lang itutuloy ko na lang ang kuwento next time. Dahil nag-iinstall pa ako ng iba’t ibang kalokohan sa server tulad ng eaccelerator. [...]

Comment Form

Categories

Links

PHP.ph is owned and managed, since 2002 by:
Dr. Jesus Lecitona
Visit his blogs about dentistry:
Denture
Dentures
Dental Implants Cost

About PHP.ph

Linux Apache MySQL PHP