FORUMS


The Form Tools forums are no longer active, but the old posts have been archived here. Please see the Help page on how to get help / report issues.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Change Installation Folder or Location to Website Root
#1
Hello.
I want to set up a stand alone website for Form Tools and install the files into the root of the website instead of a subfolder - ../formtools. I have problems when I try this. It works if I put it in the default subfolder but not when I install files into root of website. I am on a Windows server and I do not have permission issues. Thanks for your help.
Reply
#2
While I haven't tried that (or remember hearing about anyone trying that), it seems like it should work without a hitch. What problems exactly, are you having?
Not a FT employee, just a FT user lending a hand. If I've been helpful, please rate.

[Image: giraffe_long_85.gif]
Reply
#3
It gives an error that seems to be common for people. Let me premise this by saying I really don't think it is a permissions issue. This is my server and for the sake of testing and set up I have given the "Everyone" group read & write permissions on all folders in this site. I think the problem has to do with the root directory value. This is the error when I do not have the files in a subfolder (/formtools). As I mentioned, I don't get this error when I put the files in a subfolder using the same permissions across the board.

Either the theme cache folder doesn't have write-permissions, or your $g_root_dir value is invalid. Please update the /themes//cache to have full read-write permissions

(Jun 7th, 2012, 11:12 AM)michatmaster7 Wrote: While I haven't tried that (or remember hearing about anyone trying that), it seems like it should work without a hitch. What problems exactly, are you having?

Reply
#4
You need to update the \global\config.php file with the appropriate information. I hope that helps! It probably got confused when you tried to put the installation at the root.
PS - the config.php file I mentioned is one of very few that NEVER get overwritten during updates. Ben leaves that file alone, so you don't have to keep changing it.
Not a FT employee, just a FT user lending a hand. If I've been helpful, please rate.

[Image: giraffe_long_85.gif]
Reply
#5
No such file in that folder. I am using the newest version. I just downloaded again, unzipped and there is no file by that name in the "global" folder.
Maybe it's been moved or renamed?

(Jun 7th, 2012, 11:50 AM)michatmaster7 Wrote: You need to update the \global\config.php file with the appropriate information. I hope that helps! It probably got confused when you tried to put the installation at the root.
PS - the config.php file I mentioned is one of very few that NEVER get overwritten during updates. Ben leaves that file alone, so you don't have to keep changing it.

Reply
#6
Um.....
Ah ha, here's more info about it: http://docs.formtools.org/userdoc2_1/?page=config_file
(Jun 7th, 2012, 11:25 AM)seph Wrote: Either the theme cache folder doesn't have write-permissions, or your $g_root_dir value is invalid. Please update the /themes//cache to have full read-write permissions

Are you using a Windows Server? Something about that error message doesn't settle well. Why are there two backslashes there? Was that you mistyping it or??
Not a FT employee, just a FT user lending a hand. If I've been helpful, please rate.

[Image: giraffe_long_85.gif]
Reply
#7
Awesome! Thanks! I started the setup process so that it would create the config.php file, I then moved all of the files into the root of the website and made changes to the config.php file to show updated paths for root of website. 5 Stars for you!
Also, to answer the add-on questions... Yes I am using a Windows server and no, there were no typos. Here is what my config file looks like with updated (but privacy adjusted) paths...
$g_root_url = "http://forms.com";
$g_root_dir = "C:\\wwwroot\\forms.com\\";


(Jun 7th, 2012, 12:11 PM)michatmaster7 Wrote: Um.....
Ah ha, here's more info about it: http://docs.formtools.org/userdoc2_1/?page=config_file
(Jun 7th, 2012, 11:25 AM)seph Wrote: Either the theme cache folder doesn't have write-permissions, or your $g_root_dir value is invalid. Please update the /themes//cache to have full read-write permissions

Are you using a Windows Server? Something about that error message doesn't settle well. Why are there two backslashes there? Was that you mistyping it or??

Reply
#8
YAY! I'm so glad it works! So the trick that worked was:

1) install normally in some folder of the website
2) go through the initial installation process
3) move the installation back to the root of the web
4) edit the \global\config.php file

Yes? I'm so happy it worked out!
Not a FT employee, just a FT user lending a hand. If I've been helpful, please rate.

[Image: giraffe_long_85.gif]
Reply
#9
Yes, that's it!
I just did a small edit to your steps to show the default folder for initial installation.

(Jun 7th, 2012, 12:42 PM)michatmaster7 Wrote: YAY! I'm so glad it works! So the trick that worked was:

1) install normally in "/formtools" folder of the website
2) go through the initial installation process
3) move the installation back to the root of the web
4) edit the \global\config.php file

Yes? I'm so happy it worked out!

Reply
#10
I've been using formtools without issue for years, and this morning I tried to log in, and received the following message:

"Either the theme cache folder doesn't have write-permissions, or your $g_root_dir value is invalid. Please update the /nfs/.../formtools/themes/default/cache to have full read-write permissions (777 on unix)."

(The ellipsis are taking the place of part of the path.) I've not made any changes recently; in fact I haven't even logged into the database for weeks. I checked the permissions on the cache folder... they're set correctly. I think the directory is correct, since I've never messed with that file.

I'm not an expert in programming... at all.

I was considering re-installing, but I was concerned that I might lose the database.

Any help would be appreciated.

Thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)