Hi,
I was using nextcloud under F26 and just recently upgraded to F27. Everything seems to work out smooth so far, however I am not able to use Nextcloud anymore.
When I try to upload a file, I get the following notification:
Error uploading file "xxx.mkv": Total file size 310.9 MB exceeds upload limit 2 MB
If I remember correctly, this was the default upload size set by PHP. However, I set in F26 already in /etc/php.in the option and restarted apache.
upload_max_filesize = 16G
This was working fine so far. However something seems to be changed in F27 and thus it seems to ignore that option. I tried everything so far, but run out of ideas. What I try to setup it seems to be restricted by something. Apache logs or SELinux does not indicate anything as well, so I think it is related to php configuration. When going to the admin interface of nextcloud the file handling is shown to be 2MB, but greyed out with the following message: Missing permissions to edit from here.
Any idea what this might be/? /Anyone who can confirm that nextcloud is working for him on F27?
/ Best regards, Florian /
On 11/21/2017 02:59 PM, Florian Sievert wrote:
If I remember correctly, this was the default upload size set by PHP. However, I set in F26 already in /etc/php.in the option and restarted apache.
upload_max_filesize = 16G
Any idea what this might be/? /Anyone who can confirm that nextcloud is working for him on F27?
This might be relevant: https://blog.remirepo.net/post/2017/11/17/Fedora-27-changes-in-http-and-php I don't know what changes that might have regarding configuration.
On 11/21/2017 03:27 PM, Samuel Sieb wrote:
On 11/21/2017 02:59 PM, Florian Sievert wrote:
If I remember correctly, this was the default upload size set by PHP. However, I set in F26 already in /etc/php.in the option and restarted apache.
upload_max_filesize = 16G
Any idea what this might be/? /Anyone who can confirm that nextcloud is working for him on F27?
This might be relevant: https://blog.remirepo.net/post/2017/11/17/Fedora-27-changes-in-http-and-php I don't know what changes that might have regarding configuration.
Essentially, F27 now uses Apache in event (multithreaded) mode rather than prefork (single-threaded) mode. PHP itself is multithread safe, but some of the libraries that may be used by it are NOT multithread-safe. Since mod_php is designed for single-thread use, you can't use it with Apache running in either event or worker (also multithreaded) modes.
To get around this, PHP now runs as a separate process (called "php-fpm") and Apache talks to it using a mechanism called FastCGI via either a UNIX-domain socket or TCP/IP using (typically) localhost:9000. Since PHP is a separate process, if you make a change to /etc/php.ini, you must restart php-fpm:
$ sudo systemctl restart php-fpm.service
for it to take effect.
Probably more than you wanted to know, but........ ---------------------------------------------------------------------- - Rick Stevens, Systems Engineer, AllDigital ricks@alldigital.com - - AIM/Skype: therps2 ICQ: 226437340 Yahoo: origrps2 - - - - The trouble with troubleshooting is that trouble sometimes - - shoots back. - ----------------------------------------------------------------------
I ran into this on Fedora 25. https://www.spinics.net/linux/fedora/fedora-users/msg479030.html
I'm not running php-fpm.service.
Bill
On 11/21/2017 7:24 PM, Rick Stevens wrote:
On 11/21/2017 03:27 PM, Samuel Sieb wrote:
On 11/21/2017 02:59 PM, Florian Sievert wrote:
If I remember correctly, this was the default upload size set by PHP. However, I set in F26 already in /etc/php.in the option and restarted apache.
upload_max_filesize = 16G Any idea what this might be/? /Anyone who can confirm that nextcloud is working for him on F27?
This might be relevant: https://blog.remirepo.net/post/2017/11/17/Fedora-27-changes-in-http-and-php I don't know what changes that might have regarding configuration.
Essentially, F27 now uses Apache in event (multithreaded) mode rather than prefork (single-threaded) mode. PHP itself is multithread safe, but some of the libraries that may be used by it are NOT multithread-safe. Since mod_php is designed for single-thread use, you can't use it with Apache running in either event or worker (also multithreaded) modes.
To get around this, PHP now runs as a separate process (called "php-fpm") and Apache talks to it using a mechanism called FastCGI via either a UNIX-domain socket or TCP/IP using (typically) localhost:9000. Since PHP is a separate process, if you make a change to /etc/php.ini, you must restart php-fpm:
$ sudo systemctl restart php-fpm.service
for it to take effect.
Probably more than you wanted to know, but........
- Rick Stevens, Systems Engineer, AllDigital ricks@alldigital.com -
- AIM/Skype: therps2 ICQ: 226437340 Yahoo: origrps2 -
-The trouble with troubleshooting is that trouble sometimes -shoots back. -
users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org
I'm looking at the owncloud and nextcloud packages this week to update them.
Apologies for this but it was an unexpected result of changes to httpd.
The default httpd MPM changed from prefork to event, which disabled mod_php as it's not thread safe.
For the incoming update once I've ironed out update issues (a lot to test) I'll be switching the recommended from mod_php to php-fpm whether you are using nginx or httpd.
This will allow the default MPM on apache to be event for performance and simplify my upgrade tasks by ensuring both nginx and httpd use a common php-fpm config.
This is the config I drop in place for nginx, the same will be used for httpd:
https://src.fedoraproject.org/rpms/nextcloud/blob/master/f/nextcloud-php-fpm...
I'm honestly struggling on time between work and family and Fedora at present ... anyone willing to step up and assist with testing, checking dependencies and so on would be most appreciated.
As a work around for the time being on httpd change /etc/httpd/conf.d/00-mpm.conf to use prefork again if you don't want to manually install and configure php-fpm for nextcloud... that will automatically enable mod_php again and get the correct configuration.
James
On 22 November 2017 at 03:08, Bill Shirley bshirley@memphis.apirx.biz wrote:
I ran into this on Fedora 25. https://www.spinics.net/linux/fedora/fedora-users/msg479030.html
I'm not running php-fpm.service.
Bill
On 11/21/2017 7:24 PM, Rick Stevens wrote:
On 11/21/2017 03:27 PM, Samuel Sieb wrote:
On 11/21/2017 02:59 PM, Florian Sievert wrote:
If I remember correctly, this was the default upload size set by PHP. However, I set in F26 already in /etc/php.in the option and restarted apache.
upload_max_filesize = 16G Any idea what this might be/? /Anyone who can confirm that nextcloud is working for him on F27?
This might be relevant:
https://blog.remirepo.net/post/2017/11/17/Fedora-27-changes-in-http-and-php I don't know what changes that might have regarding configuration.
Essentially, F27 now uses Apache in event (multithreaded) mode rather than prefork (single-threaded) mode. PHP itself is multithread safe, but some of the libraries that may be used by it are NOT multithread-safe. Since mod_php is designed for single-thread use, you can't use it with Apache running in either event or worker (also multithreaded) modes.
To get around this, PHP now runs as a separate process (called "php-fpm") and Apache talks to it using a mechanism called FastCGI via either a UNIX-domain socket or TCP/IP using (typically) localhost:9000. Since PHP is a separate process, if you make a change to /etc/php.ini, you must restart php-fpm:
$ sudo systemctl restart php-fpm.servicefor it to take effect.
Probably more than you wanted to know, but........
- Rick Stevens, Systems Engineer, AllDigital ricks@alldigital.com -
- AIM/Skype: therps2 ICQ: 226437340 Yahoo: origrps2 -
-The trouble with troubleshooting is that trouble sometimes -shoots back. -
users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org
users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org
Hi there,
thanks for all your answers, it was very helpful and actually what is going wrong. I wasn't aware of the fpm change. I switched back to preforking as described in point 6 and everything is working again like expected. Will have over the weekend a closer look at the mpm and try to configure it correctly. Many thanks for the fast help!
Best regards, Florian
On 11/21/2017 02:59 PM, Florian Sievert wrote:
If I remember correctly, this was the default upload size set by PHP. However, I set in F26 already in /etc/php.in the option and restarted apache.
upload_max_filesize = 16G
Any idea what this might be/? /Anyone who can confirm that nextcloud is working for him on F27?
This might be relevant: https://blog.remirepo.net/post/2017/11/17/Fedora-27-changes-in-http-and-php
I don't know what changes that might have regarding configuration. _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org