...
1. Navigate to the HostBill install directory.2. Move the attachments, downloads, and templates_c folders outside of the public directory. The /home/hostbill path is a great location.3. We're using /hostbill as our example. Your new hierarchy should be /home/hostbill/ for the above mentioned folders.4. Go back to your HostBill install directory and head to the /includes/ directory.5. Add the following to your config.php file so HostBill can locate them on the server.
Code Block | ||
---|---|---|
| ||
$hb_downloads_dir = "/home/hostbill/downloads";
$hb_attachments_dir = "/home/hostbill/attachments";
$hb_templates_c_dir = "/home/hostbill/templates_c"; |
...
You'll notice that these values are already available, but with different location entries. You just need to replace / edit the current entries.
To sum it up, your new folder layout should look similar to this.
Code Block | ||
---|---|---|
| ||
/home/username/public/hostbill-install-directory/
/home/username/public/hostbill-install-directory/includes/config.php
/home/username/hostbill/attachments/
/home/username/hostbill/downloads/
/home/username/hostbill/templates_c/ |
...
You can now safely CHMOD all directories in the /home/hostbill directory to 777.
...
1. Navigate to your HostBill install directory and edit the /admin folder's name. Change it to something uncommon. We'll use new-folder-name as an example.2. Navigate to /includes/config.php and make the following changes.
Change
Code Block | ||
---|---|---|
| ||
$hb_admin_folder='admin'; |
...
To
...
Code Block | ||
---|---|---|
| ||
$hb_admin_folder='new-folder-name'; |
...
Now you can navigate to your HostBill's new admin URL, replacing /admin with /new-folder-name to access the administrative control panel.
...
The following is just an example, you may add it in your .htaccess file and configure as needed.
...
Code Block | ||
---|---|---|
| ||
# Sets the IP deny / allow rule order. order deny,allow |
...
Code Block | ||
---|---|---|
| ||
|
# Denies IP access from all IPs.
deny from all
#
Code Block | ||
---|---|---|
| ||
# Denies 111.111.111.0 - 111.111.112. |
...
255 : 512 IPs Blocked (Range) deny from 111.111.111.0/23 |
...
Code Block | ||
---|---|---|
| ||
# Denies 111.111.111.0 - 111.111.112. |
...
255 : 512 IPs Blocked (Subnet) deny from 111.111.111.0/255.255.254.0 |
...
Code Block | ||
---|---|---|
| ||
# Allows single IP address. allow from 111.111.111.111 |
...
Note: Paths may vary depending on server software you're using
...