Heya, I got 2 problems after trying som trial and error with google. first of all, unfurtunately I'm not an pro to linux / debian and so on, I know some things, but often just doing guides step by step
I installed OMV 3.0.32 (yeah I know this thread is marked for OMV 2, but I hope, most of my errors are the same?) and nextcloud (latest stable release) with mysql (not mariaDB).
Now my two errors:
I always get the message that the upload limited exeeded 2MB.
Here is my php.ini => /etc/php5/fpm/php.ini
; Maximum allowed size for uploaded files.
; http://php.net/upload-max-filesize
upload_max_filesize = 1024m
upload_max_size = 2048m
; Maximum number of files that can be uploaded via a single request
max_file_uploads = 20
Here is my nginx.conf => /etc/nginx/nginx.conf
http {
##
# Basic Settings
##
client_max_body_size 1024m;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
# server_tokens off;
# server_names_hash_bucket_size 64;
# server_name_in_redirect off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
##
# SSL Settings
##
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
ssl_prefer_server_ciphers on;
##
# Logging Settings
##
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
Alles anzeigen
Both files are just cuted out. If I'm right, the size of 1024m should be enough to upload files bigger than 2 MB and smaller/equal to 1 GB?
Also in WEB Gui Administration Panel the size is set to 1024m
My 2nd problem is that errormessage in administration panel with this message:
php does not seem to be setup properly to query system environment variables. The test with getenv("PATH") only returns an empty response. Please check the installation documentation for php configuration notes and the php configuration of your server, especially when using php-fpm.
I did everything described here => https://docs.nextcloud.com/ser…n.html#php-fpm-tips-label
To be sure, here is my www.conf => /etc/php5/fpm/pool.d/www.conf
; Clear environment in FPM workers
; Prevents arbitrary environment variables from reaching FPM worker processes
; by clearing the environment in workers before env vars specified in this
; pool configuration are added.
; Setting to "no" will make all environment variables available to PHP code
; via getenv(), $_ENV and $_SERVER.
; Default Value: yes
clear_env = no
; Limits the extensions of the main script FPM will allow to parse. This can
; prevent configuration mistakes on the web server side. You should only limit
; FPM to .php extensions to prevent malicious users to use other extensions to
; exectute php code.
; Note: set an empty value to allow all extensions.
; Default Value: .php
;security.limit_extensions = .php .php3 .php4 .php5
; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from
; the current environment.
; Default Value: clean env
env[HOSTNAME] = $HOSTNAME
env[PATH] = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
env[TMP] = /tmp
env[TMPDIR] = /tmp
env[TEMP] = /tmp
Alles anzeigen
and this is what printenv PATH tells me:
root@nas:/etc/php5/fpm/pool.d# printenv PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
Could anyone help me out? Thank you in advance. I guess you mentioned that english isn't my native speech. Sry about that.