+ Reply to Thread
Results 1 to 4 of 4

Thread: Installing SMF to subdirectories

  1. #1
    sreknob is offline x10Hosting Member sreknob is an unknown quantity at this point
    Join Date
    Sep 2007
    Posts
    11

    Installing SMF to subdirectories

    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 :-)

  2. #2
    Corey's Avatar
    Corey is offline VPS Migration Professional Corey is a glorious beacon of lightCorey is a glorious beacon of light
    Join Date
    Dec 2004
    Location
    Northfield, NH
    Posts
    17,151

    Re: Installing SMF to subdirectories

    Moved to tutorials.

  3. #3
    infernus's Avatar
    infernus is offline x10Hosting Member infernus is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    Middle East, Lebanon
    Posts
    67

    Re: Installing SMF to subdirectories

    theres a better and easier way make a subdomain 2 the desired destination and select it in the place of domain then enter a forum directory

  4. #4
    Derek is offline Community Support Force Derek is a splendid one to beholdDerek is a splendid one to behold
    Join Date
    May 2005
    Location
    cossacks
    Posts
    6,354

    Re: Installing SMF to subdirectories

    Nice tut.

+ Reply to Thread

Similar Threads

  1. Installing a blog
    By sando in forum Free Hosting
    Replies: 5
    Last Post: 08-25-2007, 03:11 AM
  2. installing
    By Vietkid58 in forum Free Hosting
    Replies: 15
    Last Post: 04-22-2006, 10:29 PM
  3. Installing Help!!!!!!!!!!!
    By Matt122004 in forum Free Hosting
    Replies: 17
    Last Post: 03-31-2005, 08:19 PM
  4. Dummies guide for Installing PHP-Nuke
    By prasys in forum Free Hosting
    Replies: 2
    Last Post: 03-03-2005, 11:36 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers