Install

BBClone.Install History

Hide minor edits - Show changes to output

Changed lines 67-68 from:
%center%Attach:bbclonestats.bmp
to:
%center%Attach:bbclonestats.png
Changed lines 67-68 from:
%center%attach:bbclonestats.bmp
to:
%center%Attach:bbclonestats.bmp
Changed lines 1-83 from:
Instructions coming soon!!!
to:
Installing BBClone on i 6.1 is not too difficult.  For this guide, we will assume that you have already installed Zend Core and have it running.

*Go to the [[http://www.bbclone.de/ | BBClone Website]] and download the latest stable version.  For me this was 0.4.9c.

*Unzip the downloaded file to your local PC.  In my case, it created a folder named bbclone-0.4.9c

*Create a directory on the IFS under your Zend Core directory to install BBClone to.  In my case, it was "\www\zendcore\htdocs\bbclone".  I used iSeries Navigator to accomplish this, but it could be done using any other tool.

*FTP the unzipped contents of the bbclone-0.4.9c folder to the directory created on the IFS.  You can use any tool you wish to transfer the files (cut and paste to iSeries Navigator, CuteFTP, SmartFTP, FTP from the command line), but you must be sure to specify binary transfer mode.

*Next you will need to set some file permissions.  The following is a table of files and directories that need to be modified.  The files need the be changed using the "chmod 666" command.  Use the following commands and file table to accomplish this.

##CALL QP2TERM
##CD /path/to/your/htdocs/
##CHMOD 666 ''file-name''

|| Border=10 align=center
||  Files and/or Folders                        ||  CHMOD  ||
||/var                                          || -> 666 ||
||/var/.htalock                                || -> 666 ||
||/var/acess.php                                || -> 666 ||
||/var/last.php                                || -> 666 ||
||/var/counter0.inc                            || -> 666 ||
||/var/counter1.inc                            || -> 666 ||
||/var/counter2.inc                            || -> 666 ||
||/var/counter3.inc                            || -> 666 ||
||/var/counter4.inc                            || -> 666 ||
||/var/counter5.inc                            || -> 666 ||
||/var/counter6.inc                            || -> 666 ||
||/var/counter7.inc                            || -> 666 ||
||/var/counter8.inc                            || -> 666 ||
||/var/counter9.inc                            || -> 666 ||
||/var/counter10.inc                            || -> 666 ||
||/var/counter11.inc                            || -> 666 ||
||/var/counter12.inc                            || -> 666 ||
||/var/counter13.inc                            || -> 666 ||
||/var/counter14.inc                            || -> 666 ||
||/var/counter15.inc                            || -> 666 ||

*Create a new file in your bbclone directory called count.php.  This file should contain the following code:

[@
<?php 
define("_BBCLONE_DIR", "/the/path/that/leads/to/bbclone/"); 
define("COUNTER", _BBCLONE_DIR."mark_page.php"); 
if (is_readable(COUNTER)) include_once(COUNTER); 
?>
@]

The path in the first define should be the absolute path to your bbclone installation.  If you are using my nameing conventions it would be /www/zendcore/htdocs/bbclone/

*Add the following code to your .htaccess file for your zend installation, for me it was /www/zendcore/htdocs/.htaccess  The edtf included in the i operating system works great for this.  ( edtf '/www/zendcore/htdocs/.htaccess' )  This will cause the code in the count.php file to be appended to any .php file on the site automatically.

[@
<FilesMatch "\.(php)$">
php_value short_open_tag "Off"
php_value auto_append_file "/the/path/that/leads/to/count.php"
</FilesMatch>
@]

Once again, if you are using my naming conventions, your path for the second php_value would be /www/zendcore/htdocs/bbclone/

''Note: It is also possible to make BBClone automatically run the count.php script for all .html pages.  Once I work out the details, I will revise this wiki.''

*You should now be able to view statistics.  Go to a few of your .php pages in your web browser then navigate to the stats page at ''yoursite/installdirectory/'' where yoursite is your web address and installdirectory is the IFS folder you copied BBClone to.  You should see a page like this with your stats for the sites you visited:

%center%attach:bbclonestats.bmp

*BBClone is very configurable via the conf/config.php file.  Details are available at [[http://help.bbclone.de/index.php?n=Config.HomePage | BBClone Configuration ]]

----

''Note:''

This is specific to our environment because of the configuration of our multiple Apache Servers (See [[Main/PmWikiInfo]]).  I had to add a couple of entries to our httpd.conf file on our Port 80 Apache server to facilitate the proxy passthrough to our Port 89 Apache server where ZendCore PHP resides.  (I have not included actual directories to prevent unauthorized access to our stats.)

[@
Example additions of new PHP application to /www/seal1/conf/httpd.conf:
ProxyPass /XXXX http://127.0.0.1:8000/XXXX
ProxyPassReverse /XXXX http://127.0.0.1:8000/XXXX

@]

Added line 1:
Instructions coming soon!!!