Bcompiler GUI - Free PHP bytecode compiler
Bcompiler GUI encodes and obfuscates your PHP code to make the output difficult to reverse engineer, using bcompiler as compiler. With this method you can distribute your software applications made in PHP without any worries at all.
Requirements and first installation :
1) A webserver.
An easy solution is to use Xampp or Lampp
Now start apache and MySQL and test them by opening the browser at the address :
http://localhost/xampp
Hit the phpinfo() link in order to get important informations like the PHP version or just go with your browser at the address :
http://localhost/xampp/phpinfo.php
2) You have to enable bcompiler on your webserver.
By default is not enabled
3) Firefox 3.
Is needed for launching the script CompileScript.php under Linux.
Under Windows Firefox is not needed but it is always recommended to have it.
How to use :
1) Start apache and MySQL
2) Select your webserver root . Must be something like
/opt/lampp/htdocs/ (under Linux)
c:\xampp\htdocs\ (under Windows)
3) Select your PHP project to compile (website root).
This must be under the webserver root for example :
/opt/lampp/htdocs/mysite (under Linux)
c:\xampp\htdocs\mysite (under Windows)
4) Select your PHP files that you want to compile.
By default they are all selected.
Note that the Compiled project will be generated at :
/opt/lampp/htdocs/mysiteCompiled (under Linux)
c:\xampp\htdocs\mysiteCompiled (under Windows)
Notice that under Linux you have to CHMOD 777 the /opt/lampp/htdocs/mysiteCompiled directory and all the underneath subirectories too.
5) Press the Compile button.
6) You are almost done.
If you get a series of warnings like :
Warning: fopen(index.php).
Just make sure that /opt/lampp/htdocs/mysiteCompiled is CHMOD 777 and then just reload the webpage with firefox.
The url should be something like that :
http://localhost/mysiteCompiled/CompileScript.php
7) If you got a successfull compilation it is time to test your compiled site by going at :
http://localhost/mysiteCompiled/
(or just hit the link at the 'all done' page.)
8) If it everything alright then you must delete the CompileScript.php script.
9) All done !
Important Notes : :
The compiled version of your PHP product needs a webserver with bcompiler enabled.
Based On :
Bcompiler - A PHP bytecode Compiler
Whats new v.1.1 :
Problems with subpaths solved.
Now for example you can use as webpage root :
/opt/lampp/htdocs/test/mysiteCompiled (under Linux)
c:\xampp\htdocs\test\mysiteCompiled (under Windows)
Better interface (more intuitive)
Fixed some smaller Bugs
Whats new v.1.0 :
First official and public release.
Download: Bcompiler GUI v. 1.1
Bcompiler GUI encodes and obfuscates your PHP code to make the output difficult to reverse engineer, using bcompiler as compiler. With this method you can distribute your software applications made in PHP without any worries at all.
Requirements and first installation :
1) A webserver.
An easy solution is to use Xampp or Lampp
| a)Windows : Just download and install xampp (the installer). When the installation is done, you will find XAMPP under Start - Programs - XAMPP. You can use the XAMPP Control Panel(xampp-control.exe) to start/stop all server and also install/uninstall services. |
| b) Linux : Download the tar.gz file. Now run the command from the console : sudo tar xvfz xampp-linux-1.7.tar.gz -C /opt Start lampp with : sudo /opt/lampp/lampp start Stop lampp with : sudo /opt/lampp/lampp stop |
http://localhost/xampp
Hit the phpinfo() link in order to get important informations like the PHP version or just go with your browser at the address :
http://localhost/xampp/phpinfo.php
2) You have to enable bcompiler on your webserver.
By default is not enabled
a)Windows :
|
| b)Linux (Tested on Kubuntu) : -Download and install these packets : sudo apt-get install php5-dev sudo apt-get install automake m4 sudo apt-get install libbz2-dev sudo apt-get install re2c sudo apt-get install php-pear -Then do : sudo pecl install bcompiler-0.8 bcompiler with this command should be compiled and inserted at this folder : /usr/lib/php5/20060613+lfs -Open the file /etc/php5/cli/php.ini and write extension=bcompiler.so in order to activate bcompiler -Copy the /usr/lib/php5/20060613+lfs/bcompiler.so into the folder /opt/lampp/lib/php/extensions/no-debug-non-zts-20060613/bcompiler.so -Open the file /opt/lampp/etc/php.ini and write extension="bcompiler.so" in order to activate bcompiler -Now stop the server sudo /opt/lampp/lampp stop -Now start the server sudo /opt/lampp/lampp start -Under http://localhost/xampp/phpinfo.php you should now find the bcompiler. |
Is needed for launching the script CompileScript.php under Linux.
Under Windows Firefox is not needed but it is always recommended to have it.
How to use :
1) Start apache and MySQL
2) Select your webserver root . Must be something like
/opt/lampp/htdocs/ (under Linux)
c:\xampp\htdocs\ (under Windows)
3) Select your PHP project to compile (website root).
This must be under the webserver root for example :
/opt/lampp/htdocs/mysite (under Linux)
c:\xampp\htdocs\mysite (under Windows)
4) Select your PHP files that you want to compile.
By default they are all selected.
Note that the Compiled project will be generated at :
/opt/lampp/htdocs/mysiteCompiled (under Linux)
c:\xampp\htdocs\mysiteCompiled (under Windows)
Notice that under Linux you have to CHMOD 777 the /opt/lampp/htdocs/mysiteCompiled directory and all the underneath subirectories too.
5) Press the Compile button.
6) You are almost done.
If you get a series of warnings like :
Warning: fopen(index.php).
Just make sure that /opt/lampp/htdocs/mysiteCompiled is CHMOD 777 and then just reload the webpage with firefox.
The url should be something like that :
http://localhost/mysiteCompiled/CompileScript.php
7) If you got a successfull compilation it is time to test your compiled site by going at :
http://localhost/mysiteCompiled/
(or just hit the link at the 'all done' page.)
8) If it everything alright then you must delete the CompileScript.php script.
9) All done !
Important Notes : :
The compiled version of your PHP product needs a webserver with bcompiler enabled.
Based On :
Bcompiler - A PHP bytecode Compiler
Whats new v.1.1 :
Problems with subpaths solved.
Now for example you can use as webpage root :
/opt/lampp/htdocs/test/mysiteCompiled (under Linux)
c:\xampp\htdocs\test\mysiteCompiled (under Windows)
Better interface (more intuitive)
Fixed some smaller Bugs
Whats new v.1.0 :
First official and public release.
| Trustfm.Net Win32 Version (Windows) | |
| Trustfm.Net GTK 2 Version (Linux) |
No comments:
Post a Comment