contao / contao-manager

Contao Manager
GNU Lesser General Public License v3.0
85 stars 33 forks source link

discover phase #618

Closed theking2 closed 3 years ago

theking2 commented 3 years ago

According to the documentation the contao-managere.phar.php sits in a folder called web. The root of the site is pointing to this web folder (see screenshot).

The contents of the vhost.conf also shows this folder relation:

<VirtualHost *:80>
    ServerName contao.kino-roxy.local
    DocumentRoot "d:/projekten/kino-roxy/dev/contao/web"
    <Directory  "d:/projekten/kino-roxy/dev/contao/web/">
        Options +Indexes +Includes +FollowSymLinks +MultiViews
        AllowOverride All
        Require local
    </Directory>
</VirtualHost>

image

aschempp commented 3 years ago

The Contao Manager will (ask to) create a new directory if your web directory is not empty (as described on the left side).

theking2 commented 3 years ago

According to the log this command is the problem: C:\wamp64\bin\apache\apache2.4.41\bin\httpd.exe -f "D:/dev/contao_local/web/contao-manager.phar.php" test

Option -q for httpd.exe does not exist: httpd.exe: illegal option -- q

Its also not documented on Apache

fritzmg commented 3 years ago

That seems unrelated to the Contao Manager and more related to your web server setup.

aschempp commented 3 years ago

How is the command related to the new web directory?

aschempp commented 3 years ago

I'm closing this due to missing feedback. Feel free to reopen if there is more information.

cmette commented 1 year ago

Yes I have the same error here. It seems to occur when the user

  1. downloads the contao-manager.phar under Windows 8/8.1/10 and
  2. moves it into the directory /public and after that
  3. renames it to *.phar.php.

If then (like me here) this file is accessed via the browser (using Apache and laragon httpd.exe) the httpd.exe terminates the process with the error message

[19-Sep-2022 17:40:00 UTC] [2022-09-19 17:40:00] app.ERROR: The command "F:/laragon/www/domain/public/contao-manager.phar.php" failed. Exit Code: 1(General error) Working directory: F:\laragon\www\domain Output: ================ Error Output: ================ httpd.exe: illegal option -- q

The reason is, that Windows considers the file downloaded and renamed in this way as insecure and restricts access.

If access is allowed via the context menu (see screenshot), everything works correctly - as always.

cmanager