How to install bcompiler in centos

1.First install php-devel package using below command.

yum install php
yum install php-pear
yum install php-devel
yum install bzip2-devel

2.Now install bcompiler using below command

pecl install bcompiler

3.Now create /etc/php.d/bcompiler.ini file and add below lines.
vim /etc/php.d/bcompiler.ini

extension=bcompiler.so

4.Now download bencoder from this url http://bencoder.urdada.net/bencoder

5.Now  compile a test source folder using below command

bencoder -f -q -t -o destination_folder  -s source_folder -c -r

-o OUTDIR : the directory to write all encoded files
-s SRCDIR: the source directory
-f : force overwriting even if the target exists
-q : do not print the file name while encoding or copying
-t : truncate/keep only the basename of the file into the bytecode
-c : copy files those shouldn’t be encoded (no by default)
-r : encode directories recursively (no by default)

Advertisements
This entry was posted in Linux, PHP. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s