Hello All,
This is a quick tutorial for all (any?) of you attempting to install SMF to a directoy more than one folder beyond root.
I was attempting to install SMF using Fantastico do a subdirectory of my site http://domain/subdir/forumdir/ and quickly found out that Fantastico only allows you to install your forum only a single directory beyond root (http://domain/forumdir/). When you attempt to enter anything into the "Install in directory" other than a single directory name, you get the error:
The installation can not be completed:
- No valid directory name provided.
For example, subdir/forumdir will not work.
There is a relatively simple workaround for anyone like me who would like to put their forum in a subdirectory. Here goes:
1) Using Fantastico, install SMF to a directory in "/public_html/" by entering the desired forum directory into the "Install in directory" field (ex: "forumdir")
2) Using FTP, move your "forumdir" to the appropriate subfolder that you would like "/public_html/subdir/" so you end up with "/public_html/subdir/forumdir/"
3) Upload the SMF repair setting tool (from SMF) to your forumdir and then navigate to it using your favourite browser http://domain/subdir/forumdir/repair_settings.php (it won't look pretty, but should work)
4) The bottom half of the page has a listing of all the directories that SMF uses, simply update the pathways and URLs to reflect the changes that you've made (i.e. change http://domain/forumdir to http://domain/subdir/forumdir and /home/username/public_html/forumdir to /home/username/public_html/subdir/forumdir ) Please don't change and of the MySQL Database settings! Hit save and everything should look much more pretty!
5) Delete repair_settings.php from your forum directory.
6) Enjoy your forum in a subdirectory!
Hope this helps someone
This is a quick tutorial for all (any?) of you attempting to install SMF to a directoy more than one folder beyond root.
I was attempting to install SMF using Fantastico do a subdirectory of my site http://domain/subdir/forumdir/ and quickly found out that Fantastico only allows you to install your forum only a single directory beyond root (http://domain/forumdir/). When you attempt to enter anything into the "Install in directory" other than a single directory name, you get the error:
The installation can not be completed:
- No valid directory name provided.
For example, subdir/forumdir will not work.
There is a relatively simple workaround for anyone like me who would like to put their forum in a subdirectory. Here goes:
1) Using Fantastico, install SMF to a directory in "/public_html/" by entering the desired forum directory into the "Install in directory" field (ex: "forumdir")
2) Using FTP, move your "forumdir" to the appropriate subfolder that you would like "/public_html/subdir/" so you end up with "/public_html/subdir/forumdir/"
3) Upload the SMF repair setting tool (from SMF) to your forumdir and then navigate to it using your favourite browser http://domain/subdir/forumdir/repair_settings.php (it won't look pretty, but should work)
4) The bottom half of the page has a listing of all the directories that SMF uses, simply update the pathways and URLs to reflect the changes that you've made (i.e. change http://domain/forumdir to http://domain/subdir/forumdir and /home/username/public_html/forumdir to /home/username/public_html/subdir/forumdir ) Please don't change and of the MySQL Database settings! Hit save and everything should look much more pretty!
5) Delete repair_settings.php from your forum directory.
6) Enjoy your forum in a subdirectory!
Hope this helps someone