Pour être plus précis, j'ai changé ma php_value memory_limit accidentellement à 20GB pendant que je changeais les tailles de téléchargement et de poste maximum. Je l'ai changé à ce qu'il était 512 Mo mais ma page me donne toujours une erreur HTTP 500.J'ai fait une légère erreur dans mon .htaccess et maintenant je ne peux plus accéder à ma page
Quelqu'un a-t-il des idées de ce que je manque?
Ceci est mon .htaccess
<IfModule mod_headers.c>
<IfModule mod_setenvif.c>
<IfModule mod_fcgid.c>
SetEnvIfNoCase ^Authorization$ "(.+)" XAUTHORIZATION=$1
RequestHeader set XAuthorization %{XAUTHORIZATION}e env=XAUTHORIZATION
</IfModule>
<IfModule mod_proxy_fcgi.c>
SetEnvIfNoCase Authorization "(.+)" HTTP_AUTHORIZATION=$1
</IfModule>
</IfModule>
<IfModule mod_env.c>
# Add security and privacy related headers
Header set X-Content-Type-Options "nosniff"
Header set X-XSS-Protection "1; mode=block"
Header set X-Robots-Tag "none"
Header set X-Frame-Options "SAMEORIGIN"
Header set X-Download-Options "noopen"
Header set X-Permitted-Cross-Domain-Policies "none"
SetEnv modHeadersAvailable true
</IfModule>
# Add cache control for CSS and JS files
<FilesMatch "\.(css|js)$">
Header set Cache-Control "max-age=7200, public"
</FilesMatch>
</IfModule>
<IfModule mod_php5.c>
php_value upload_max_filesize 5G
php_value post_max_size 5G
php_value memory_limit 512MB
php_value mbstring.func_overload 0
php_value always_populate_raw_post_data -1
php_value default_charset 'UTF-8'
php_value output_buffering 0
<IfModule mod_env.c>
SetEnv htaccessWorking true
</IfModule>
</IfModule>
<IfModule mod_php7.c>
php_value upload_max_filesize 5G
php_value post_max_size 5G
php_value memory_limit 512MB
php_value mbstring.func_overload 0
php_value default_charset 'UTF-8'
php_value output_buffering 0
<IfModule mod_env.c>
SetEnv htaccessWorking true
</IfModule>
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteRule ^\.well-known/host-meta /public.php?service=host-meta [QSA,L]
RewriteRule ^\.well-known/host-meta\.json /public.php?service=host-meta-json [QSA,L]
RewriteRule ^\.well-known/carddav /remote.php/dav/ [R=301,L]
RewriteRule ^\.well-known/caldav /remote.php/dav/ [R=301,L]
RewriteRule ^remote/(.*) remote.php [QSA,L]
RewriteRule ^(?:build|tests|config|lib|3rdparty|templates)/.* - [R=404,L]
RewriteCond %{REQUEST_URI} !^/.well-known/acme-challenge/.*
Ceci est mon erreur journal
[Sun Sep 10 16:37:08.095999 2017] [proxy_fcgi:error] [pid 634:tid 1974465584] [client 212.238.239.196:56997] AH01071: Got error 'PHP message: PHP Fatal error: Allowed memory size of 2097152 bytes exhausted (tried to allocate 65536 bytes) in /var/www/nextcloud/lib/composer/composer/ClassLoader.php on line 412\n'
[Sun Sep 10 16:38:14.788907 2017] [mpm_event:notice] [pid 632:tid 1995735040] AH00491: caught SIGTERM, shutting down
[Sun Sep 10 16:38:15.055829 2017] [ssl:warn] [pid 1218:tid 1995862016] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Sun Sep 10 16:38:15.153908 2017] [ssl:warn] [pid 1219:tid 1995862016] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Sun Sep 10 16:38:15.159375 2017] [mpm_event:notice] [pid 1219:tid 1995862016] AH00489: Apache/2.4.25 (Raspbian) OpenSSL/1.0.2l configured -- resuming normal operations
[Sun Sep 10 16:38:15.159570 2017] [core:notice] [pid 1219:tid 1995862016] AH00094: Command line: '/usr/sbin/apache2'
[Sun Sep 10 16:38:16.044752 2017] [proxy_fcgi:error] [pid 1223:tid 1974465584] [client 212.238.239.196:57043] AH01071: Got error 'PHP message: PHP Fatal error: **Allowed memory size of 2097152 bytes exhausted (tried to allocate 65536 bytes)** in /var/www/nextcloud/lib/composer/composer/ClassLoader.php on line 412\n'
Toute aide serait appréciée au maximum
Je pense que cette erreur s'est produite lorsque le TS a tenté de définir 'memory_limit' à 20G. 2097152bytes est de 2 Go et pas les 512 Mo qu'il a maintenant définis dans le fichier htaccess. – LEDfan
@LEDfan 2097152 octets sont exactement 2 mégaoctets. Cela dit cependant, vous avez raison - si ce n'est pas une omission de copier coller alors la balise de fermeture manquante causerait un problème. – Bananaapple