Bonjour,

Je suisen train de mettre en production une première version de mon site symfony 5 et j'ai une erreur 500. J'aibien mis un fichier .htaccess dans /public. Je suis sur l'hébergeur 1&1.
Pour mon fichier .htaccess j'ai pris celui-ci : [https://github.com/symfony/symfony-standard/blob/3.3/web/.htaccess]()

Merci de votre aide

4 réponses


Bonjour,

le contenu du fichier de log serait plus parlant.

Je ne sais pas si c'est ça le fichier logs:

Mar 17 23:49:27 10.71.56.0 u100202797 [10.71.56.0|rm|0|0|0|0|0|2f77616c6f7564652f7075626c69632f2e6874616363657373|]
Mar 18 01:17:09 10.71.57.0 u100202797 Connection from 10.71.57.0 port 36740 on 82.165.87.106 port 22
Mar 18 01:17:09 10.71.57.0 u100202797 Accepted password for u100202797 from 10.71.57.0 port 36740 ssh2
Mar 18 01:17:09 10.71.57.0 u100202797 Starting session: subsystem 'sftp' for u100202797 from 10.71.57.0 port 36740
Mar 18 01:17:09 10.71.57.0 u100202797 session opened for local user u100202797 from [10.71.57.0]
Mar 18 01:24:21 10.71.57.0 u100202797 Connection closed by 10.71.57.0
Mar 18 01:24:21 10.71.57.0 u100202797 session closed for local user u100202797 from [10.71.57.0]
Mar 18 01:34:58 10.71.56.0 u100202797 session closed for local user u100202797 from [10.71.56.0]
Mar 18 01:35:41 10.71.56.0 u100202797 session closed for local user u100202797 from [10.71.56.0]
Mar 18 02:01:50 10.71.57.0 tmp100202797-4147 session closed for local user tmp100202797-4147 from [10.71.57.0]
Mar 18 19:16:40 10.71.56.0 u100202797 Connection from 10.71.56.0 port 48240 on 82.165.87.106 port 22
Mar 18 19:16:47 10.71.56.0 u100202797 Accepted password for u100202797 from 10.71.56.0 port 48240 ssh2
Mar 18 19:16:47 10.71.56.0 u100202797 Starting session: subsystem 'sftp' for u100202797 from 10.71.56.0 port 48240
Mar 18 19:16:47 10.71.56.0 u100202797 session opened for local user u100202797 from [10.71.56.0]
Mar 18 19:17:21 10.71.56.0 u100202797 open "/waloude/.htaccess" flags WRITE,CREATE,TRUNCATE mode 0666
Mar 18 19:17:21 10.71.56.0 u100202797 close "/waloude/.htaccess" bytes read 0 written 189
Mar 18 19:17:21 10.71.56.0 u100202797 [10.71.56.0|put|0|189|0|0|0|2f77616c6f7564652f2e6874616363657373|]
Mar 18 19:17:21 10.71.56.0 u100202797 set "/waloude/.htaccess" modtime 20200318-19:15:07
Mar 18 19:17:21 10.71.56.0 u100202797 [10.71.56.0|utimes|0|0|1584555307|0|0|2f77616c6f7564652f2e6874616363657373|]
Mar 18 19:17:34 10.71.56.0 u100202797 open "/waloude/public/.htaccess" flags WRITE,CREATE,TRUNCATE mode 0666
Mar 18 19:17:34 10.71.56.0 u100202797 close "/waloude/public/.htaccess" bytes read 0 written 91
Mar 18 19:17:34 10.71.56.0 u100202797 [10.71.56.0|put|0|91|0|0|0|2f77616c6f7564652f7075626c69632f2e6874616363657373|]
Mar 18 19:17:34 10.71.56.0 u100202797 set "/waloude/public/.htaccess" modtime 20200318-19:16:03
Mar 18 19:17:34 10.71.56.0 u100202797 [10.71.56.0|utimes|0|0|1584555363|0|0|2f77616c6f7564652f7075626c69632f2e6874616363657373|]
Mar 18 19:21:05 10.71.56.0 u100202797 Connection from 10.71.56.0 port 28276 on 82.165.87.106 port 22
Mar 18 19:21:24 10.71.56.0 u100202797 Accepted password for u100202797 from 10.71.56.0 port 28276 ssh2
Mar 18 19:45:46 10.71.56.0 u100202797 open "/waloude/public/.htaccess" flags WRITE,CREATE,TRUNCATE mode 0666
Mar 18 19:45:46 10.71.56.0 u100202797 close "/waloude/public/.htaccess" bytes read 0 written 3385
Mar 18 19:45:46 10.71.56.0 u100202797 [10.71.56.0|put|0|3385|0|0|0|2f77616c6f7564652f7075626c69632f2e6874616363657373|]
Mar 18 19:45:46 10.71.56.0 u100202797 set "/waloude/public/.htaccess" modtime 20200318-19:45:22
Mar 18 19:45:46 10.71.56.0 u100202797 [10.71.56.0|utimes|0|0|1584557122|0|0|2f77616c6f7564652f7075626c69632f2e6874616363657373|]
Mar 18 19:46:15 10.71.56.0 u100202797 open "/waloude/.htaccess" flags READ mode 0666
Mar 18 19:46:16 10.71.56.0 u100202797 close "/waloude/.htaccess" bytes read 189 written 0
Mar 18 19:46:16 10.71.56.0 u100202797 [10.71.56.0|get|1|189|0|0|0|2f77616c6f7564652f2e6874616363657373|]
Mar 18 19:46:22 10.71.56.0 u100202797 remove name "/waloude/.htaccess"
Mar 18 19:46:22 10.71.56.0 u100202797 [10.71.56.0|rm|0|0|0|0|0|2f77616c6f7564652f2e6874616363657373|]
Mar 18 21:00:53 10.71.56.0 u100202797 open "/logs/sftp.log" flags READ mode 0666

dossier symfony, var/logs/prod.log

Ok voici ce que j'ai dans les dernières lignes:

[2020-03-17T23:16:12.073899+01:00] security.DEBUG: Checking support on guard authenticator. {"firewall_key":"main","authenticator":"App\\Security\\LoginFormAuthenticator"} []
[2020-03-17T23:16:12.074031+01:00] security.DEBUG: Guard authenticator does not support the request. {"firewall_key":"main","authenticator":"App\\Security\\LoginFormAuthenticator"} []
[2020-03-17T23:16:12.375704+01:00] security.INFO: Populated the TokenStorage with an anonymous Token. [] []
[2020-03-18T00:23:05.456699+01:00] console.ERROR: Error thrown while running command "assets:install web". Message: "The target directory "web" does not exist." {"exception":"[object] (Symfony\\Component\\Console\\Exception\\InvalidArgumentException(code: 0): The target directory \"web\" does not exist. at C:\\xampp\\htdocs\\waloude\\vendor\\symfony\\framework-bundle\\Command\\AssetsInstallCommand.php:108)","command":"assets:install web","message":"The target directory \"web\" does not exist."} []
[2020-03-18T00:23:05.484563+01:00] console.DEBUG: Command "assets:install web" exited with code "1" {"command":"assets:install web","code":1} []

Je ne vois pas là où il y a le dossier web