Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

.htaccess files not allowed on web host

edited August 2010 in Vanilla 2.0 - 2.8
So, I wanted to install Vanilla forums on my web host, Yahoo, and I got the following message:

"You are missing Vanilla's .htaccess file. Sometimes this file isn't copied if you are using ftp to upload your files because this file is hidden. Make sure you've copy the .htaccess file before continuing."

My Web host does not allow that type of file naming.
"The files that you upload to your Files area must be assigned names that consist only of letters, numbers, hyphens, and periods. Other characters (such as a space or underscore) are not allowed in the file name you assign when you upload a file to your Files area. The file name you assign must also begin and end with either a letter or a number. It's not possible to assign a file name that begins or ends with a hyphen or period."

is there any type of bypass for this?
«1

Comments

  • Options
    What web server is this? No Apache? Contact your hosting tech support; they should have the IIS (or whatever other web server is being used) equivalent of .htaccess available.
  • Options
    I have a similar problem, my web host doesn't allow htaccess files either. They said there should be a way to trick the installation routine or use a different url or something like that. htaccess files simply cannot be run on my web space, so I am pretty much stuck on the installation screen. As said as it is, for me it's now either someone has a solution to this isseu or I'll have to go with a different software.
  • Options
    TimTim Operations Vanilla Staff
    You don't need .htaccess for Vanilla to work. You simply wont have nicely rewritten URLs.

    Vanilla Forums COO [GitHub, Twitter, About.me]

  • Options
    Thanks a lot for this info Tim. But could you also tell me how to proceed with the installation? Like seigaku I am stuck on the installation screen where Vanilla checks for the htaccess files. I am not experienced enough to know how to continue from here, since the htaccess files aren't available. I can just click on try again, not able to proceed. How can I skip this check for the htaccess files?
  • Options
    Thanks, everyone, but is there no solution? I cannot proceed with the installation because when I hit "try again" the same message appears. Is there a bypass for those of us who's web servers will not allow .htaccess files?

    My Web host is Yahoo! I do not know what apache is.

    Is this what you mean sottwell: http://www.php.net/manual/en/ref.iisfunc.php

    http://help.yahoo.com/l/us/att/smallbusiness/webhosting/php/php-33.html
  • Options
    TimTim Operations Vanilla Staff
    We'll be adding a fix for this.

    Vanilla Forums COO [GitHub, Twitter, About.me]

  • Options
    Thank you Tim. Can we be notified when the fix has been released?
  • Options
    TimTim Operations Vanilla Staff
    Yes, I'll post in this thread, but I'm aiming for 2.0.4

    Vanilla Forums COO [GitHub, Twitter, About.me]

  • Options
    hey guys, I also have the same problem,

    I uploaded the vanilla files onto the server using a FTP and now I get "You are missing Vanilla's .htaccess file. Sometimes this file isn't copied if you are using ftp to upload your files because this file is hidden. Make sure you've copy the .htaccess file before continuing."

    I'm not very experience either so I was wondering if anybody can tell me the next step to getting that .htaccess file properly uploaded?

    thanks!
  • Options
    RaizeRaize vancouver ✭✭
    the best thing to do in this situation is to contact your hosting provider
  • Options
    hey guys, i just downloaded 2.0.6 and i'm having the same problem.

    "You are missing Vanilla's .htaccess file. Sometimes this file isn't copied if you are using ftp to upload your files because this file is hidden. Make sure you've copy the .htaccess file before continuing."

    thought you all said you were going to fix this?
  • Options
    TimTim Operations Vanilla Staff
    This slipped through the cracks. I'll do it now. Sorry!

    Vanilla Forums COO [GitHub, Twitter, About.me]

  • Options
    TimTim Operations Vanilla Staff
    edited September 2010
    @seigaku Hi. @Todd is implementing a sweet fix for this right now (literally, right now), but if you want to get going immediately, you can comment out lines 243-245 of applications/dashboard/controllers/class.setupcontroller.php:

    if (!file_exists(PATH_ROOT.'/.htaccess')) { $this->Form->AddError(...); }

    Vanilla Forums COO [GitHub, Twitter, About.me]

  • Options
    @seigaku Hi. @Todd is implementing a sweet fix for this right now (literally, right now), but if you want to get going immediately, you can comment out lines 243-245 of applications/dashboard/controllers/class.setupcontroller.php:

    if (!file_exists(PATH_ROOT.'/.htaccess')) { $this->Form->AddError(...); }
    Wow, thanks, much appreciated!
    comment out? Does that mean to replace the current code of line 243-245 with that you have posted?
  • Options
    edited September 2010
    Got an error
    Parse error: syntax error, unexpected '.', expecting ')' in /JAPC/vanillaforums/applications/dashboard/controllers/class.setupcontroller.php on line 244

    Was i supposed to replace the code?
  • Options
    TimTim Operations Vanilla Staff
    Comment out means "put // in front of each line".

    I abbreviated the contents of the call to AddError() with '...' to make the example more clear. At this point its probably best to just delete those 3 lines altogether.

    Vanilla Forums COO [GitHub, Twitter, About.me]

  • Options
    excellent, thank you. I will try this and see what happens. Deleting this line will not effect functionality?

    Sorry i'm a novice at this kind of coding.
  • Options
    TimTim Operations Vanilla Staff
    It won't affect functionality. It is simply a check to make sure .htaccess was copied to your host. We were having questions from people who WANTED to use RewriteUrls, but were claiming we didn't include an .htaccess file. Turns out, their retardo FTP clients were ignoring the file and not sending it up to the web server. So we added this 'helpful note' to cut down on those questions.

    Vanilla Forums COO [GitHub, Twitter, About.me]

  • Options
    Its not helpful if it breaks the install and forcing some, possibly newbies without confidence or cocky ones with too much confidence, to edit and possibly right royally screwup php files.
    If the check is there it should merely comment that no .htaccess file is present unless the app won't work without one. If its going to stop, the installer should to ask to continue or not.
    You should NOT halt the install irrevocably. This erm! feature is still present in v.209
    It may not be a retarded ftp client, but settings in the unarchiver or the unarchiver itself being totally retarded.
    What about other hidden files, there should be a list of hidden files included in an archive (possibly in the readme) when hidden/system files are present.

    Sorry I may be a newbie to vanilla but not to WordPress, other apps, and php.
  • Options
    TimTim Operations Vanilla Staff
    edited September 2010
    @DavyB
    @seigaku Hi. @Todd is implementing a sweet fix for this right now (literally, right now), but if you want to get going immediately, you can comment out lines 243-245 of applications/dashboard/controllers/class.setupcontroller.php:
    As you can see, I was not suggesting that the current functionality was ideal. I just said that we were working on a fix and identified the problem code for people that wanted a solution immediately.

    2.0.9 was primarily a bugfix release and this change did not make it in. I just personally committed the userfriendly fix to 2.0.10a and it will be available in the next release.

    I hope this works for you.

    Vanilla Forums COO [GitHub, Twitter, About.me]

Sign In or Register to comment.