Closed theking2 closed 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).
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
That seems unrelated to the Contao Manager and more related to your web server setup.
How is the command related to the new web directory?
I'm closing this due to missing feedback. Feel free to reopen if there is more information.
Yes I have the same error here. It seems to occur when the user
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.
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: