Please log in to subscribe to updates for this article
Last updated at Mon Aug 12 12:10, by kanto501
Introduction ⇑ topDISCLAIMER: When possible, you should try and set up a virtual host for The Bug Genie, pointing its webroot to the folder:
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 ⇑ topNo 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 ⇑ topYou 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 ⇑ topOpen up
index.phpand change the following lines:
defined('THEBUGGENIE_PATH') || define('THEBUGGENIE_PATH', realpath(getcwd() . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR);
// Don't look one directory up to find the core directory defined('THEBUGGENIE_PATH') || define('THEBUGGENIE_PATH', realpath(getcwd() . DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR);
defined('THEBUGGENIE_PUBLIC_FOLDER_NAME') || define('THEBUGGENIE_PUBLIC_FOLDER_NAME', substr($path, strrpos($path, DIRECTORY_SEPARATOR) + 1));
// Don't autodetect the subfolder, but use "" instead, since there is none defined('THEBUGGENIE_PUBLIC_FOLDER_NAME') || define('THEBUGGENIE_PUBLIC_FOLDER_NAME', '');
.htaccess ⇑ topYou will have to make sure that the
RewriteBasedirective 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 ⇑ topIf 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';