BBCLONE installation in Plesk (linux) – HOW TO

After you install BBCLONE from Plesk’s applications , its not working at all, you can navigate to its page but it doesnt count anything.

In order to make it start counting you have to do the following:

1)Add the following to your .htaccess :

AddType application/x-httpd-php .htm .html
php_value auto_append_file “/home/httpd/vhosts/domain.tld/httpdocs/count.php”

The path needs to be a local absolute path like the example above.

2)Create the file “count.php” and add the following:

<?php
define(“_BBCLONE_DIR”, “/home/httpd/vhosts/domain.tld/httpdocs/counter/”);
define(“COUNTER”, _BBCLONE_DIR.”mark_page.php”);
if (is_readable(COUNTER)) include_once(COUNTER);
?>

3)go to the directory that you did install bblcone and use chmod -R 777 counter/var/ to give it perms to be able for writing files.

4)now do  a random visit to your website (for e.g. www.domain.tld) and then check if the bbclone did count it via visiting your bbclone installation (for e.g. www.domain.tld/bbclone ).