TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,913
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 580
  • Total: 581
  • @rjen

Problems accessing directories with SMF/TP in the root

Started by Animal, August 30, 2009, 10:51:05 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Animal

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

Zetan

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.

G6Cad

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.

Zetan


Animal

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.

G6Cad

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.

Animal

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.

ZarPrime

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

IchBin

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.

This website is proudly hosted on Crocweb Cloud Website Hosting.