HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

How to run Vanilla on IIS?

This discussion was created from comments split from: Vanilla 2021.003 RC2 is now available.

Comments

  • Hi, has anyone tried installing vanilla 4.x on IIS 10 (if so, if theree are any tips and tricks, please do tell). I plan on giving it a go later today, running windows 2016 Server along with PHP 8.x and MYSQL 8.x. I had success running 3.x on 2008RS, via IIS 7.5.

  • @selfaware doesnt run on php 8

  • Thanks - recently learned that Microsoft dropped support for PHP 8 moving forward, so I'm running PHP 7.4.16 and mysql 8.x.

    When I executed: example.com/forum, I receive the following error:


    Something has gone wrong.

    We've run into a problem and are unable to handle this request right now.

    Please check back in a little while.


    I'm running wordpress in the root directory and everything works

    Per the vanilla readme, file:

    I've enabled php extensions: curl, fileinfo, GD, intl and pdo_mysql.

    It appears that dom, json and libxml don't have extensions and are simply part of 7.4.16 core

    and are enabled by default, according to php info .

    Any thoughts, why I many be getting error?

  • selfawareselfaware New
    edited March 30

    Does config-default.php need to be copied and renamed to: config.php?


    Hi, I had actually done this, see below:

    Do I need to specify a file name for the LogFile?

    I assume, I won't see errors on screen.


    // Developer stuff.

    $Configuration['Garden']['Debug'] = true;

    $Configuration['Garden']['Errors']['LogFile'] = '';

    $Configuration['Garden']['FolderBlacklist'] = ['.', '..', '_svn', '.git']; // Folders we should never search for classes.

  • selfawareselfaware New
    edited March 30

    Pro tip for those who come across this thread - in order

    to generate a log file:

    copy and rename conf/config-defaults.php to config.php

    modify config.php and add:

    $Configuration['Garden']['Debug'] = true;

    you also need to specify the name of your log file, e.g.,

    output.txt - you will find this file in the root directory where

    vanilla files are located!

    add under:

    // Developer stuff.

    $Configuration['Garden']['Debug'] = true;

    $Configuration['Garden']['Errors']['LogFile'] = 'output.txt';

  • error output below:


    [30-Mar-2021 18:58:03 UTC] PHP Warning: No custom theme provider found! in D:\www\brightonspeaks.com\forum\library\Vanilla\Theme\ThemeService.php on line 476

    [30-Mar-2021 18:58:03 UTC] PHP Warning: Theme not found. in D:\www\brightonspeaks.com\forum\library\Vanilla\Theme\ThemeService.php on line 419

    [30-Mar-2021 18:58:03 UTC] PHP Warning: No custom theme provider found! in D:\www\brightonspeaks.com\forum\library\Vanilla\Theme\ThemeService.php on line 476

    [30-Mar-2021 18:58:03 UTC] PHP Fatal error: Uncaught Garden\Web\Exception\NotFoundException: Theme not found. in D:\www\brightonspeaks.com\forum\library\Vanilla\Theme\FsThemeProvider.php:100

    Stack trace:

    #0 D:\www\brightonspeaks.com\forum\library\Vanilla\Theme\FsThemeProvider.php(68): Vanilla\Theme\FsThemeProvider->getThemeAddon('theme-foundatio...')

    #1 D:\www\brightonspeaks.com\forum\library\Vanilla\Theme\ThemeService.php(157): Vanilla\Theme\FsThemeProvider->getTheme('theme-foundatio...', Array)

    #2 D:\www\brightonspeaks.com\forum\library\Vanilla\Theme\ThemeService.php(421): Vanilla\Theme\ThemeService->getTheme('theme-foundatio...')

    #3 D:\www\brightonspeaks.com\forum\library\Vanilla\Theme\ThemeService.php(326): Vanilla\Theme\ThemeService->getCurrentTheme('prioritizeAddon')

    #4 D:\www\brightonspeaks.com\forum\library\Vanilla\Utility\ContainerUtils.php(58): Vanilla\Theme\ThemeService->getCurrentThemeAddon()

    #5 [internal function]: Vanilla\Utility\ContainerUtils::Vanilla\Utility\{closure}(Object(Garden\Container\Container), NULL)

    #6 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Callback.php(32): call_user_func(Object(Closure), Object(Garden\Container\Container), NULL)

    #7 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(723): Garden\Container\Callback->resolve(Object(Garden\Container\Container), NULL)

    #8 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(549): Garden\Container\Container->resolveArgs(Array, Array)

    #9 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(750): Garden\Container\Container->createSharedInstance('Vanilla\\Theme\\T...', Array, Array)

    #10 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(361): Garden\Container\Container->createInstance('Vanilla\\Theme\\T...', Array)

    #11 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(829): Garden\Container\Container->getArgs('Vanilla\\Theme\\T...')

    #12 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Reference.php(64): Garden\Container\Container->get('Vanilla\\Theme\\T...')

    #13 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(723): Garden\Container\Reference->resolve(Object(Garden\Container\Container), Object(Garden\Web\ResourceRoute))

    #14 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(488): Garden\Container\Container->resolveArgs(Array, Array, Object(Garden\Web\ResourceRoute))

    #15 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(747): Garden\Container\Container->Garden\Container\{closure}(Array)

    #16 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(361): Garden\Container\Container->createInstance('@new-search-rou...', Array)

    #17 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Reference.php(60): Garden\Container\Container->getArgs('@new-search-rou...', Array)

    #18 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(723): Garden\Container\Reference->resolve(Object(Garden\Container\Container), Object(Garden\Web\Dispatcher))

    #19 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(569): Garden\Container\Container->resolveArgs(Array, Array, Object(Garden\Web\Dispatcher))

    #20 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(750): Garden\Container\Container->createSharedInstance('Garden\\Web\\Disp...', Array, Array)

    #21 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(361): Garden\Container\Container->createInstance('Garden\\Web\\Disp...', Array)

    #22 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(829): Garden\Container\Container->getArgs('Garden\\Web\\Disp...')

    #23 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\DefaultReference.php(51): Garden\Container\Container->get('Garden\\Web\\Disp...')

    #24 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(723): Garden\Container\DefaultReference->resolve(Object(Garden\Container\Container), NULL)

    #25 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(549): Garden\Container\Container->resolveArgs(Array, Array)

    #26 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(750): Garden\Container\Container->createSharedInstance('Gdn_Dispatcher', Array, Array)

    #27 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(361): Garden\Container\Container->createInstance('Gdn_Dispatcher', Array)

    #28 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(356): Garden\Container\Container->getArgs('Gdn_Dispatcher', Array)

    #29 D:\www\brightonspeaks.com\forum\library\core\class.gdn.php(251): Garden\Container\Container->getArgs('Dispatcher', Array)

    #30 D:\www\brightonspeaks.com\forum\library\core\class.gdn.php(210): Gdn::factory('Dispatcher')

    #31 D:\www\brightonspeaks.com\forum\index.php(25): Gdn::dispatcher()

    #32 {main}

     thrown in D:\www\brightonspeaks.com\forum\library\Vanilla\Theme\FsThemeProvider.php on line 100

    [30-Mar-2021 18:59:24 UTC] PHP Warning: No custom theme provider found! in D:\www\brightonspeaks.com\forum\library\Vanilla\Theme\ThemeService.php on line 476

    [30-Mar-2021 18:59:24 UTC] PHP Warning: Theme not found. in D:\www\brightonspeaks.com\forum\library\Vanilla\Theme\ThemeService.php on line 419

    [30-Mar-2021 18:59:24 UTC] PHP Warning: No custom theme provider found! in D:\www\brightonspeaks.com\forum\library\Vanilla\Theme\ThemeService.php on line 476

    [30-Mar-2021 18:59:24 UTC] PHP Fatal error: Uncaught Garden\Web\Exception\NotFoundException: Theme not found. in D:\www\brightonspeaks.com\forum\library\Vanilla\Theme\FsThemeProvider.php:100

    Stack trace:

    #0 D:\www\brightonspeaks.com\forum\library\Vanilla\Theme\FsThemeProvider.php(68): Vanilla\Theme\FsThemeProvider->getThemeAddon('theme-foundatio...')

    #1 D:\www\brightonspeaks.com\forum\library\Vanilla\Theme\ThemeService.php(157): Vanilla\Theme\FsThemeProvider->getTheme('theme-foundatio...', Array)

    #2 D:\www\brightonspeaks.com\forum\library\Vanilla\Theme\ThemeService.php(421): Vanilla\Theme\ThemeService->getTheme('theme-foundatio...')

    #3 D:\www\brightonspeaks.com\forum\library\Vanilla\Theme\ThemeService.php(326): Vanilla\Theme\ThemeService->getCurrentTheme('prioritizeAddon')

    #4 D:\www\brightonspeaks.com\forum\library\Vanilla\Utility\ContainerUtils.php(58): Vanilla\Theme\ThemeService->getCurrentThemeAddon()

    #5 [internal function]: Vanilla\Utility\ContainerUtils::Vanilla\Utility\{closure}(Object(Garden\Container\Container), NULL)

    #6 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Callback.php(32): call_user_func(Object(Closure), Object(Garden\Container\Container), NULL)

    #7 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(723): Garden\Container\Callback->resolve(Object(Garden\Container\Container), NULL)

    #8 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(549): Garden\Container\Container->resolveArgs(Array, Array)

    #9 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(750): Garden\Container\Container->createSharedInstance('Vanilla\\Theme\\T...', Array, Array)

    #10 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(361): Garden\Container\Container->createInstance('Vanilla\\Theme\\T...', Array)

    #11 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(829): Garden\Container\Container->getArgs('Vanilla\\Theme\\T...')

    #12 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Reference.php(64): Garden\Container\Container->get('Vanilla\\Theme\\T...')

    #13 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(723): Garden\Container\Reference->resolve(Object(Garden\Container\Container), Object(Garden\Web\ResourceRoute))

    #14 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(488): Garden\Container\Container->resolveArgs(Array, Array, Object(Garden\Web\ResourceRoute))

    #15 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(747): Garden\Container\Container->Garden\Container\{closure}(Array)

    #16 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(361): Garden\Container\Container->createInstance('@new-search-rou...', Array)

    #17 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Reference.php(60): Garden\Container\Container->getArgs('@new-search-rou...', Array)

    #18 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(723): Garden\Container\Reference->resolve(Object(Garden\Container\Container), Object(Garden\Web\Dispatcher))

    #19 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(569): Garden\Container\Container->resolveArgs(Array, Array, Object(Garden\Web\Dispatcher))

    #20 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(750): Garden\Container\Container->createSharedInstance('Garden\\Web\\Disp...', Array, Array)

    #21 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(361): Garden\Container\Container->createInstance('Garden\\Web\\Disp...', Array)

    #22 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(829): Garden\Container\Container->getArgs('Garden\\Web\\Disp...')

    #23 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\DefaultReference.php(51): Garden\Container\Container->get('Garden\\Web\\Disp...')

    #24 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(723): Garden\Container\DefaultReference->resolve(Object(Garden\Container\Container), NULL)

    #25 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(549): Garden\Container\Container->resolveArgs(Array, Array)

    #26 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(750): Garden\Container\Container->createSharedInstance('Gdn_Dispatcher', Array, Array)

    #27 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(361): Garden\Container\Container->createInstance('Gdn_Dispatcher', Array)

    #28 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(356): Garden\Container\Container->getArgs('Gdn_Dispatcher', Array)

    #29 D:\www\brightonspeaks.com\forum\library\core\class.gdn.php(251): Garden\Container\Container->getArgs('Dispatcher', Array)

    #30 D:\www\brightonspeaks.com\forum\library\core\class.gdn.php(210): Gdn::factory('Dispatcher')

    #31 D:\www\brightonspeaks.com\forum\index.php(25): Gdn::dispatcher()

    #32 {main}

     thrown in D:\www\brightonspeaks.com\forum\library\Vanilla\Theme\FsThemeProvider.php on line 100

    [30-Mar-2021 18:59:32 UTC] PHP Warning: No custom theme provider found! in D:\www\brightonspeaks.com\forum\library\Vanilla\Theme\ThemeService.php on line 476

    [30-Mar-2021 18:59:32 UTC] PHP Warning: Theme not found. in D:\www\brightonspeaks.com\forum\library\Vanilla\Theme\ThemeService.php on line 419

    [30-Mar-2021 18:59:32 UTC] PHP Warning: No custom theme provider found! in D:\www\brightonspeaks.com\forum\library\Vanilla\Theme\ThemeService.php on line 476

    [30-Mar-2021 18:59:32 UTC] PHP Fatal error: Uncaught Garden\Web\Exception\NotFoundException: Theme not found. in D:\www\brightonspeaks.com\forum\library\Vanilla\Theme\FsThemeProvider.php:100

    Stack trace:

    #0 D:\www\brightonspeaks.com\forum\library\Vanilla\Theme\FsThemeProvider.php(68): Vanilla\Theme\FsThemeProvider->getThemeAddon('theme-foundatio...')

    #1 D:\www\brightonspeaks.com\forum\library\Vanilla\Theme\ThemeService.php(157): Vanilla\Theme\FsThemeProvider->getTheme('theme-foundatio...', Array)

    #2 D:\www\brightonspeaks.com\forum\library\Vanilla\Theme\ThemeService.php(421): Vanilla\Theme\ThemeService->getTheme('theme-foundatio...')

    #3 D:\www\brightonspeaks.com\forum\library\Vanilla\Theme\ThemeService.php(326): Vanilla\Theme\ThemeService->getCurrentTheme('prioritizeAddon')

    #4 D:\www\brightonspeaks.com\forum\library\Vanilla\Utility\ContainerUtils.php(58): Vanilla\Theme\ThemeService->getCurrentThemeAddon()

    #5 [internal function]: Vanilla\Utility\ContainerUtils::Vanilla\Utility\{closure}(Object(Garden\Container\Container), NULL)

    #6 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Callback.php(32): call_user_func(Object(Closure), Object(Garden\Container\Container), NULL)

    #7 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(723): Garden\Container\Callback->resolve(Object(Garden\Container\Container), NULL)

    #8 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(549): Garden\Container\Container->resolveArgs(Array, Array)

    #9 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(750): Garden\Container\Container->createSharedInstance('Vanilla\\Theme\\T...', Array, Array)

    #10 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(361): Garden\Container\Container->createInstance('Vanilla\\Theme\\T...', Array)

    #11 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(829): Garden\Container\Container->getArgs('Vanilla\\Theme\\T...')

    #12 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Reference.php(64): Garden\Container\Container->get('Vanilla\\Theme\\T...')

    #13 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(723): Garden\Container\Reference->resolve(Object(Garden\Container\Container), Object(Garden\Web\ResourceRoute))

    #14 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(488): Garden\Container\Container->resolveArgs(Array, Array, Object(Garden\Web\ResourceRoute))

    #15 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(747): Garden\Container\Container->Garden\Container\{closure}(Array)

    #16 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(361): Garden\Container\Container->createInstance('@new-search-rou...', Array)

    #17 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Reference.php(60): Garden\Container\Container->getArgs('@new-search-rou...', Array)

    #18 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(723): Garden\Container\Reference->resolve(Object(Garden\Container\Container), Object(Garden\Web\Dispatcher))

    #19 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(569): Garden\Container\Container->resolveArgs(Array, Array, Object(Garden\Web\Dispatcher))

    #20 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(750): Garden\Container\Container->createSharedInstance('Garden\\Web\\Disp...', Array, Array)

    #21 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(361): Garden\Container\Container->createInstance('Garden\\Web\\Disp...', Array)

    #22 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(829): Garden\Container\Container->getArgs('Garden\\Web\\Disp...')

    #23 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\DefaultReference.php(51): Garden\Container\Container->get('Garden\\Web\\Disp...')

    #24 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(723): Garden\Container\DefaultReference->resolve(Object(Garden\Container\Container), NULL)

    #25 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(549): Garden\Container\Container->resolveArgs(Array, Array)

    #26 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(750): Garden\Container\Container->createSharedInstance('Gdn_Dispatcher', Array, Array)

    #27 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(361): Garden\Container\Container->createInstance('Gdn_Dispatcher', Array)

    #28 D:\www\brightonspeaks.com\forum\vendor\vanilla\garden-container\src\Container.php(356): Garden\Container\Container->getArgs('Gdn_Dispatcher', Array)

    #29 D:\www\brightonspeaks.com\forum\library\core\class.gdn.php(251): Garden\Container\Container->getArgs('Dispatcher', Array)

    #30 D:\www\brightonspeaks.com\forum\library\core\class.gdn.php(210): Gdn::factory('Dispatcher')

    #31 D:\www\brightonspeaks.com\forum\index.php(25): Gdn::dispatcher()

    #32 {main}

     thrown in D:\www\brightonspeaks.com\forum\library\Vanilla\Theme\FsThemeProvider.php on line 100

  • KasparKaspar ✭✭

    @selfaware

    Pls, as it says in the linked FAQ

    "Start a NEW discussion on this site"

    Include version used, did it work before or is it new setup, if it worked - what changed, is the required PrettyURL's used.

  • Ok, despite my username, wasn't aware : )

    where would you like me to begin my new discussion?

    fyi clean install of vanilla-2021.003 and haven't implemented prettyurl's, although I am using the following config.web script, which worked with vanilla 3.x:


    <?xml version="1.0" encoding="UTF-8"?>

    <configuration>

     <system.webServer>

       <rewrite>

         <rules>

                      <clear/>

                                       <rule

    name="Vanilla: https://www.mysite.com/forum"

    patternSyntax="Wildcard">

                                                   <match url="*"/>

                                                               <conditions>

                                                                           <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>

                                                                           <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>

                                                               </conditions>

                                                   <action type="Rewrite" url="index.php\?p={R:1}" appendQueryString="true" />

                                       </rule>

                </rules>

       </rewrite>

                </system.webServer>

    </configuration>

  • R_JR_J Ex-Fanboy Munich Moderator

    If there is no config.php, don't create one. It should be created during the installation process. If you need to enable debug before installation, add $Configuration['Debug'] = TRUE; to your config-default.php

    Pretty Urls are a requirement, but you should be able to install Vanilla without them being enabled.

    If you already face a problem before installation, I would assume one of the following reasons:

    1. software requirements are not met (if Vanilla 3.3 could be installed, I guess that's not the problem)
    2. files uploaded are corrupt

    Ensure that you have fetched the correct package. Wipe all files currently upload (except for that IIS server configuration file). Upload all files from the package again.


    KasparK17
Sign In or Register to comment.