-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change php upload limit + explain it in the readme #120
Comments
@yalh76 do you think a simple If that the case, I'll do the PR :) |
I think it would be easier to reintegrate https://github.com/YunoHost/example_ynh/blob/master/conf/php-fpm.conf that i removed during php 7.1 to 7.3 upgrade |
Do we need that whole file ? |
yes, to have a customized php-fpm. |
So we can't include only a few lines of it, we need the whole file ? (and to maintain it aligned with the standard one, including the case when we change php version) |
I don't know how to use a php.ini... And usually there are few changes php-fpm.conf between php version |
From my understanding, adding a php.ini file one /var/www/pixelfed containing just the one or few lines needed does the job. It did in my case at least. |
well in that case, feel free to do a PR for that ;) |
I think maybe someone from the @YunoHost-Apps/apps-group might know these things better than me: what would be your advise in that case ? php-fpm conf or "just" the php.ini file ? |
Line 14 in c9f256a
|
The same thing is happening to me, where I find the file in which I can modify the size? |
That's the Nginx part, you might need to adjust php file too, probably located in
(adjust the value to ones that fits your needs ;) Then reload php |
I found two "pixelfed.conf" files in my system, but no one is "pixelfed.ini" If I add the lines of code that you told me in one of these two files or in both, when restarting the service, it does not restart. |
That's the one :) (I knew it wasn't
What's the error ? |
If I add the three code lines you told me, and I reload php, I get a 502 (Bad Gateway)
when I check service |
My bad, the syntax was wrong (I edited my previous post). Here is the correct one:
|
I just did it and it doesn't give me an error but it hasn't solved the main problem either, I still cannot upload photos of more than 2MB, I have to put those three lines in both files? |
No, that for php, the other file is for Nginx (the web server). What's the |
50M Edit: I just tried to upload an image, and it won't let me upload anything larger than 500KB, previously it let me up to 2MB |
WTF is happening… If you comment out those lines in php pixelfed.conf file (and reload php service) does it come back to the previous state ? edit: I wonder, but I have no idea if that's true, if the memory limit is not too low… you could try to test it with huge values for each field, like 500M |
I erased the lines and, yes, it does
I put 500M in each field, both in the php and in the nginx and it works Whenever I change the configuration from the web interface and give "save", I get this "Something went wrong |
I don't know… |
Hi, that was the issue for me as well. I wasn't able to upload pics with more then 2M, while pixelfeld says it should be 25M. Would it be a good idea to have that line as standard for the installation process? As yunohost should be for people with not as much knowledge (like myself) it would be great to achieve changing the setting inside pixelfed should be enough. So maybe having set this value to 100M for example would be a good choice, even when people will post large pics the pixelfed value could be changed. |
@yalh76 do you think that with the new tools Yunohost includes to setup a kind of "php performance profile" (memory limit, CPU usage…) we could change that upload size value without using a custom php.conf file ? |
I'm currently updating YH to Debian 11 and Pixelfed to 0.11.4 and take the waiting time to write this. I also have this same problem, even after reading the entire issue and even though @sthaydn already gives a quite good explanation, I'm not 100% sure what I need to do to solve the problem.
Is that it, is that correct @lapineige ? |
I don't remember 😅
Php7.4 right now, for your information. If you have PHP 8.0 installed by another app, it's not the one you should configure for Pixelfed. |
Helpful voices on the Fediverse pointed me here as I had the same issue with a clean install of PixelFed on Yunohost 11. Not being especially familiar with the software involved I was not able to work out what to do from this thread, but I did edit /etc/php/7.4/fpm/php.ini and change upload_max_filesize to 20M and it now works. I suspect I will not be the only marginally capable Yunohost user with this problem... |
We now changed the default upload limit to be 50MB for your information. Thanks @yalh76 ! You could try the testing branch and see if it fixes it 🙂 |
@lapineige : (edit: i tried to reopen this issue, but don't see how .... :/ ) in https://github.com/YunoHost-Apps/pixelfed_ynh#change-max-upload-limit
this is wrong and should be:
|
the upgrade removes the change i made :/ perhaps we could have an include for local changes ? |
I don't get what should have been untouched ? |
All of this should be handled with a YunoHost config panel, so that the setting is save across upgrades. |
Yes we have to configure a config panel for that 😅 |
after that you need to restart redis-server postgresql nginx and php8.0 in yunohost and all should work |
See : #118 (comment)
PHP default upload limit is too low¹ for Pixelfed default value. Also users could change Pixelfed value without any visible effect, because of PHP limit.
¹ it seems to be 2MB by default, which is limited for images and well too low for videos…
What needs to be done:
The text was updated successfully, but these errors were encountered: