Results 1 to 6 of 6

Thread: Contao manager works in one directory but not a second

  1. #1
    User
    Join Date
    01-02-18.
    Posts
    31

    Default Contao manager works in one directory but not a second

    I have a dev directory of contao installed. The Conato-manager.php loads fine.
    I have tried doing a fresh install, a copy and paste of the dev directory, but everything I do, I am getting this error:
    PHP Command Line Interface
    The PHP symlink method is unavailable or does not work correctly.
    Failed to create "symbolic" link from "path\to\folder" to "C:\Windows\Temp\7925.tmp".

    I have checked permissions, both folders are identical. I am using IIS. I have the authentication set to Administrator on both.
    I can create symlinks in powershell by running php vendor/bin/contao-console contao:symlinks

    I don't get it, especially because it works in a sibling folder, just not in the second folder.

  2. #2
    Community-Moderator xchs's Avatar
    Join Date
    06-19-09.
    Posts
    1,287

    Default

    I would try to configure the rights for creating symbolic links for your Windows user (e.g. with Polsedit, see https://docs.contao.org/manual/de/an...nde-maßnahmen)
    Contao Community Moderator
    → Support options

  3. #3
    User
    Join Date
    01-02-18.
    Posts
    31

    Default

    Well now I am getting stuck at validating the PHP Binary. It works in one instance of contao, but not a second.
    I'm getting a "Exit Code: 1(General error)"
    Output:
    Error Output:

    Nothing in the error output though.

    Why does it validate in one instance but not in second instance of Contao? Can there only be one instance at a time on a Windows server?
    Last edited by sawebdev; 12/26/2023 at 20:09.

  4. #4
    User
    Join Date
    01-02-18.
    Posts
    31

    Default

    If I create a second site pointing to the directory where contao is working, the first one works, while the second one fails to validate the PHP Binary.
    This makes absolutely no sense to me.
    Is my copy of Windows corrupted?
    I have identical permissions setup. Makes me want to move away from using Contao.

  5. #5
    Community-Moderator xchs's Avatar
    Join Date
    06-19-09.
    Posts
    1,287

    Default

    This certainly has nothing to do with Contao. Can you execute any PHP file (such as phpinfo())?

    Just try another local web server stack such as XAMPP or Laragon.
    Contao Community Moderator
    → Support options

  6. #6
    User
    Join Date
    01-02-18.
    Posts
    31

    Default

    Figured it out... Stupid IIS creates it's own Application Pools for every new site, however, when I remembered to change it to the DefaultAppPool now it works. So some IIS Microsoft annoyance.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •