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

Cannot install, always redirects to 404 /vanilla/dashboard/setup was not found on this server

pruserpruser Behind your Mom New
edited January 2017 in Vanilla 2.0 - 2.8

I have been unable to install v2.3 on a regularly used in-house development LAMP server that meets all requirements including mod_rewrite. I regularly develop WP, joomla, et; al: with this server and have had no issues with other scripts or .htaccess files that make "prettified" i.e. SEF URLs work.

Vanilla was copied to a subfolder of document root: /vanilla and I have updated the # RewriteBase directive in .htaccess to reflect the subfolder, e.g.:

# RewriteBase /vanilla

Having followed all other installation instructions:

  • Upload Vanilla's pre-built version to your server.
  • Confirm the cache, conf, and uploads folders are writable by PHP.
  • Navigate to that folder in your web browser.
  • Follow the instructions on screen.

when I access the site: http://192.168.0.10/vanilla/ a 404 error is returned:

/vanilla/dashboard/setup was not found on this server.

After reading some suggestions here, I instead tried: http://192.168.0.10/index.php?p=/dashboard/setup and a DB setup/config page was returned. After filling-out all items and clicking [Continue ->], I am redirected to: http://192.168.0.10/dashboard/setup? and another 404 error.

/vanilla/dashboard/setup was not found on this server.

I have no conf/config.php to share, and there is not one in the .ZIP archive I downloaded. I assume the file gets created only if you get past this point.

Any available guidance is welcome, I have not had any problems like this installing other apps on this server in 3 years, and there are no errors in the error_log, error reporting is turned-up all the way, as I mentioned this is a development server.

PHP v5.6, mySQL 5.6.34. relevant section of phpinfo() follows.

edit: Also, the same problems exist if I remove the .htacccess file and check the "Install Vanilla without a .htaccess file." option on the DB/Config page.

Tagged:

Best Answers

Answers

  • Options
    vrijvlindervrijvlinder Papillon-Sauvage MVP
    edited January 2017

    # RewriteBase /vanilla

    That is wrong, it should be RewriteBase /vanilla without the hash, the hash disables the module...

  • Options
    pruserpruser Behind your Mom New

    I suspected as much, even though proposed solutions I have seen include the hash, but removing it makes no difference, and that unfortunately does not explain why the "Install Vanilla without a .htaccess file." option does not work either and always redirects to a URL that obviously requires the rewrite rules in the .htaccess file.

    Is there simply no real option to install this without using rewritten URLs and without having the .htaccess file present?

  • Options
    vrijvlindervrijvlinder Papillon-Sauvage MVP

    Rewrite URLS are a requirement. Most plugins will not work properly without it. You cant use the utility/update link or utility/structure.

    Try replacing the content of the htaccess file for your forum with this

    # Modified
    # If you modify this file then change the above line to: # Modified
    <IfModule mod_rewrite.c>
       RewriteEngine On
       # Certain hosts may require the following line.
       # If vanilla is in a subfolder then you need to specify it after the /. 
       # (ex. You put Vanilla in /forum so change the next line to: RewriteBase /forum)
       RewriteBase /vanilla
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteRule ^(.*)$ index.php\?p=$1 [QSA,L]
    </IfModule>
    

    Make sure you have these in the config.php

    $Configuration['EnabledApplications']['Vanilla'] = 'vanilla';
    $Configuration['Garden']['Installed'] = true;
    $Configuration['Garden']['RewriteUrls'] = true;
    $Configuration['Garden']['WebRoot'] = true;
    
  • Options
    vrijvlindervrijvlinder Papillon-Sauvage MVP

    After you do this, delete the .ini files from the cache of the forum , carefully not to delete Smarty folder.

  • Options
    pruserpruser Behind your Mom New

    Understood re: plugins, my question was specifically regarding installation.

    Unless I am looking in the wrong place, as I mentioned previously there is no config.php file present, so I cannot make your suggested additions, there are just three files in the conf folder:

    config-defaults.php
    constants.php
    readme.txt

    I have otherwise applied your suggested .htaccess directives and cleared the .ini files from cache, no change. Accessing the subfolder where this is installed gives a 404 error the same as previously reported and substituting 'index.php?p=/dashboard/setup' fails exactly the same way as before immediately after the form is submitted.

    I have also tried installing this from scratch on a production server in the document root instead of a sub-folder per the docs, and have exactly the same problems. None of the other apps on that server have any issues using mod_rewrite, so I am inclined to suspect the installer for this app is simply broken.

    Has anyone successfully installed this recently?

  • Options
    vrijvlindervrijvlinder Papillon-Sauvage MVP

    @pruser said:
    Understood re: plugins, my question was specifically regarding installation.

    Unless I am looking in the wrong place, as I mentioned previously there is no config.php file present, so I cannot make your suggested additions, there are just three files in the conf folder:

    config-defaults.php
    constants.php
    readme.txt

    I have otherwise applied your suggested .htaccess directives and cleared the .ini files from cache, no change. Accessing the subfolder where this is installed gives a 404 error the same as previously reported and substituting 'index.php?p=/dashboard/setup' fails exactly the same way as before immediately after the form is submitted.

    I have also tried installing this from scratch on a production server in the document root instead of a sub-folder per the docs, and have exactly the same problems. None of the other apps on that server have any issues using mod_rewrite, so I am inclined to suspect the installer for this app is simply broken.

    Has anyone successfully installed this recently?

    Ok that means you did not go through the setup process... The config.php gets generated after setup. You need to go through the setup process.

  • Options
    pruserpruser Behind your Mom New
    edited February 2017

    Using the v2.2.1 .htaccess made this work. Thanks for the responses.

    Requiring pretty URLs for installation of a PHP app is a terrible idea IMHO, but ¯_(ツ)_/¯

    I wound up using a different solution that installed and worked on the first try, just wanted to confirm the solution for the benefit of others who may have the same problem..

  • Options
    vrijvlindervrijvlinder Papillon-Sauvage MVP

    @pruser said:
    Using the v2.2.1 .htaccess made this work. Thanks for the responses.

    It is the same as the one I posted above...

    Requiring pretty URLs for installation of a PHP app is a terrible idea IMHO, but ¯_(ツ)_/¯

    No it is not. People don't want to see links that are unreadable. The problem you are having is rare. All PHP software uses rewriteurl, such as Wordpress..Makes it easier for search engines and search results.

    I wound up using a different solution that installed and worked on the first try, just wanted to confirm the solution for the benefit of others who may have the same problem..

    The solution was given to you from the start.

    https://open.vanillaforums.com/discussion/comment/245509/#Comment_245509

  • Options
    jeongweejeongwee Vanilla version 2.6 ✭✭
    edited July 2018

    This also happened to me LAMP vanilla 2.6. Using the v2.2 .htaccess fixed this.
    https://open.vanillaforums.com/addon/vanilla-core-2.2

Sign In or Register to comment.