Topic: config.php in safe directory
I want to place config.php in a safe directory (preferably my cgi-bin)
Will I have to modify all files that call for config.php and enter the new path?
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 troubleshooting → config.php in safe directory
I want to place config.php in a safe directory (preferably my cgi-bin)
Will I have to modify all files that call for config.php and enter the new path?
Yes, unfortunately. In version 1.1 of PunBB (which is in the works), the inclusion of config.php is done from include/common.php, so it will get easier in the next version :)
Edit: Could you perhaps solve it with a symlink?
I actually wrote like this on one of my forums (think it was a 1.0RC2 , but I guess it shouldn't matter which version it is)
<?php
include "/cgi-bin/config.php";
in a new file that I saved as forumroot/config.php
and moved the real config.php to /cgi-bin/
(I used another directory, but just for illustration)
so then it was possible to hide it from the masses ...
Ah, of course. That's a brilliant solution to the problem :)
Thanks for that. It works a treat.
PunBB Forums → PunBB 1.2 troubleshooting → config.php in safe directory
Powered by PunBB, supported by Informer Technologies, Inc.