The Bug Genie
The Bug Genie
star_faded.png
Please log in to subscribe to updates for this article
The Bug Genie:How To:Root Directory Installation
Last updated at Mon Aug 12 12:10, by kanto501

Introduction  ⇑ top

DISCLAIMER: When possible, you should try and set up a virtual host for The Bug Genie, pointing its webroot to the folder:
 thebuggenie/


In some setups it is not possible to add a separate virtual host setup for The Bug Genie, and using a "thebuggenie" subfolder is also not desirable. This howto will explain what needs to be done for The Bug Genie to operate in this setup.

Configuration  ⇑ top

No special configuration is necessary to install The Bug Genie in this mode. You can perform these changes either before installation, or on an already installed version of The Bug Genie.

File changes  ⇑ top

You need to copy the entire contents of the "thebuggenie" subfolder into the root directory where you want The Bug Genie installed. The index.php file that comes with the default distribution sets up several path constants which The Bug Genie needs to operate properly. You will need to modify these so it can find the correct information in the correct locations.

index.php  ⇑ top

Open up
 index.php
and change the following lines:
defined('THEBUGGENIE_PATH') || define('THEBUGGENIE_PATH', realpath(getcwd() . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR);
into
// Don't look one directory up to find the core directory
defined('THEBUGGENIE_PATH') || define('THEBUGGENIE_PATH', realpath(getcwd() . DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR);


and
defined('THEBUGGENIE_PUBLIC_FOLDER_NAME') || define('THEBUGGENIE_PUBLIC_FOLDER_NAME', substr($path, strrpos($path, DIRECTORY_SEPARATOR) + 1));
into
// Don't autodetect the subfolder, but use "" instead, since there is none
defined('THEBUGGENIE_PUBLIC_FOLDER_NAME') || define('THEBUGGENIE_PUBLIC_FOLDER_NAME', '');


.htaccess  ⇑ top

You will have to make sure that the
 RewriteBase
directive is correctly configured after the installation is completed. This is usually properly configured in the installation, but if the rewrite doesn't work after the installation is complete, check this.

After making these changes, you should be good to go.

Database changes  ⇑ top

If you've set up file storage, you may need to change the local path.
# remember to match the prefix to your settings if different
UPDATE `databasenamehere`.`tbg3_settings` SET `value` = '/location/to/TBG/installation/files/' WHERE `tbg3_settings`.`name` ='upload_localpath';


Notes  ⇑ top

This setup is not distribution compatible. This mean that whenever you update The Bug Genie, you will have to re-apply the patches and changes mentioned above. Different versions of The Bug Genie may behave in different ways, so check back with this document regularly for updated information.


Article attachments

There are no file attached to this article

Article comments (1)