TinyPortal

Development => Support => Topic started by: Animal on August 30, 2009, 10:51:05 AM

Title: Problems accessing directories with SMF/TP in the root
Post by: Animal on August 30, 2009, 10:51:05 AM
I have installed SMF with TP in the public_html directory.  It has been a couple years since I built a new site around TP.  However I had a friend who needed something done, and TP was a perfect fit.

With SMF/TP in the public_html directory I am unable to directly access other directories in public_html.  Even directories that have nothing to do with the forum.  My mind tells me there was a way to make this work in the past, but I can't for the life of me remember how.

Is it possible to utilize other directories in public_html without moving SMF to another folder?

I hope this question makes sense.  It's nearly four in the morning here.   :idiot2:  Thanks for any help you can provide.

Using SMF 1.1.10 & TinyPortal v1.0 beta 4

-Marcus
Title: Re: Problems accessing directories with SMF/TP in the root
Post by: Zetan on August 30, 2009, 11:18:57 AM
Hi Marcus. There shouldn't be any problem by having SMF in the public_html folder among other folders. You probably know this already, but what are the permissions of the folder/directory you want to access? They need to be CHMOD to either 777 or more preferably, 755. Many hosts now restrict 777 access as a security precaution.

Did you have access before installing SMF? SMF does require that several folders have the permissions set at 755/777 and TP needs certain permissions to be able to install.
Title: Re: Problems accessing directories with SMF/TP in the root
Post by: G6Cad on August 30, 2009, 02:30:23 PM
As a small sidenote ( Sorry Zetan ) there are HTACCESS file to look at to. if this file is set wrongly in the root folder, you will have issues like described if you want to import pages etc to the SMF and TP folders.
SMF adds an htaccess file during the install, if you allready had one and it didnt got replaced, you should look at this and check so it is set to allow from all.
Title: Re: Problems accessing directories with SMF/TP in the root
Post by: Zetan on August 30, 2009, 02:45:05 PM
That was going to be my next suggestion ;)
Title: Re: Problems accessing directories with SMF/TP in the root
Post by: Animal on August 30, 2009, 07:49:12 PM
I do not see an htaccess file in public_html.  So that would probably be the cause.  I am not a web developer in any sense of the word.  Do you know what I would need to add in order to allow other directories to be accessed directly? 

I am trying to install a statistics tracking software for a game.  It is in a directory all its own in public_html/  When I try to access the directory via my browser it returns a 404 error.  But I know it is there.

Thank you for your help.
Title: Re: Problems accessing directories with SMF/TP in the root
Post by: G6Cad on August 30, 2009, 08:32:51 PM
Folders needs to be 755 and files needs to be 644
You change your files and folders permissions through FTP or Cpanel file manager.
But thats not our support to give, we support TP and tps content.
To learn the basics of how to use the tools on a server or FTP, you need to find a site with the info on that part through google.
Title: Re: Problems accessing directories with SMF/TP in the root
Post by: Animal on August 30, 2009, 09:14:20 PM
Hi G6,

I've made sure the file permissions are properly adjusted.  That part I knew how to handle.  I was just trying to figure out how to get SMF/TP to ignore a non SMT/TP directory rather than protecting it by keeping me from accessing it directly with a url in my browser.
Title: Re: Problems accessing directories with SMF/TP in the root
Post by: ZarPrime on September 01, 2009, 01:46:34 AM
Marcus,

Are you saying that the SMF install has been made directly to the /public_html/ folder without the benefit of having the install inside a folder of it's own, like /public_html/SMF/?

I don't know why anyone would ever do that, but if that's what you have done, the first thing I would do is create a new folder, like /public_html/SMF/ and move all the folders and files that are used by SMF and TP into it.  After that, you could run repairsettings.php to fix everything for the Forum so that it points to the right location.  This would leave the rest of the /public_html/ folder to place other stuff.  For instance, what if you want to setup an SMF test site for testing themes or Mods or anything else in the same folder.  That gives you the option.  If this is what you have done, that doesn't give you the option to do that.

Anyway, if that's not what you want to do to fix it, then perhaps Ichbin will be able to give you some more info about how to handle it, but I don't see how you could get anything else to work properly other than the Forum until you do it.

ZarPrime
Title: Re: Problems accessing directories with SMF/TP in the root
Post by: IchBin on September 01, 2009, 03:23:31 PM
If you are unable to access the directories in your root directory, and you do not have an htaccess file in there, you should probably seek help from your host to see why. As to my understanding, an htaccess file will only affect the folder it is in, and possibly any sub-folders. If you cannot access any other directory, then there is something else causing this I think.