apache2 - I've made a slight mistake in my .htaccess and now i cannot access my page anymore -
to more specific, changed php_value memory_limit accidently 20gb while changing maximum upload , post sizes. changed 512mb page still giving me http error 500.
anyone got ideas i'm missing?
this .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 , 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 css , 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/.*
this error log
[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 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 not include id matches 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 not include id matches 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 allocate 65536 bytes)** in /var/www/nextcloud/lib/composer/composer/classloader.php on line 412\n'
any appreciated max
your htaccess file invalid. starting directive <ifmodule mod_rewrite.c>
never closing using </ifmodule>
.
i advice download default htaccess file shipped nextcloud , try again. download zip file here: https://nextcloud.com/install/#instructions-server , replace htacess file.
Comments
Post a Comment