Introduction
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
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
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
Open upindex.phpand 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
You will have to make sure that theRewriteBasedirective 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
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';