Windows系统下Lucee/Boncode的BIN文件夹路径迁移方案咨询
Absolutely! You can easily reconfigure Lucee and Boncode to use a custom folder (like _BIN or BIN_Lucee) instead of the default BIN directory—this is a common fix for site code conflicts. Here's how to implement it step by step:
Step 1: Locate the Boncode Connector Configuration File
For each manually configured Lucee site, you'll find a BoncodeAJP13.settings file. This is typically stored in:
- The root directory of your IIS site, or
- The
inetpub\wwwroot\[your-site]folder (depending on your deployment setup)
Step 2: Modify the BinFolder Setting
Open the BoncodeAJP13.settings file with a text editor (like Notepad++), then look for the <setting name="BinFolder"> entry. By default, it will look like this:
<setting name="BinFolder" value="./BIN" />
Change the value attribute to your desired folder path. You can use either a relative path (relative to your site root) or an absolute path. For example:
<!-- Using a relative path to a custom folder --> <setting name="BinFolder" value="./_BIN" /> <!-- Or an absolute path if you prefer --> <setting name="BinFolder" value="C:\inetpub\wwwroot\your-site\BIN_Lucee" />
Step 3: Create the Custom Folder and Set Permissions
- Create the new folder (e.g.,
_BINorBIN_Lucee) in your site's root directory. - Ensure the IIS application pool user for your site has read and write permissions on this folder. Boncode uses this directory for temporary files, logs, and runtime resources, so proper permissions are critical for smooth operation.
Step 4: Restart the IIS Site/Application Pool
To apply the changes, restart your site's application pool in IIS Manager, or recycle the site itself.
Extra Notes
- If you have multiple Lucee sites needing this fix, repeat these steps for each site's individual
BoncodeAJP13.settingsfile (since you're manually configuring each one). - Pick a folder name that's unique to Lucee/Boncode to avoid future conflicts with your site's codebase—
BIN_Luceeis a clear, descriptive choice that's unlikely to clash with existing site files.
内容的提问来源于stack exchange,提问作者user1824596

