How do I edit Castopod php file in nano

What app is this about, and its version: 1.13.5~ynh1
What YunoHost version are you running: 12.1.23
What type of hardware are you using: Old laptop or computer

Describe your issue

Hello, I have an issue that I can’t upload an mp3 more than 50mb. I understand that this can be done modifying the php config with nano. However, I don’t know how I access this. I did try sudo nano /etc/php/8.2.29/apache2/php.ini but this took me to a blank config so I’m assuming I’m in the wrong place.

I also tried find / iname php.ini and result said No such file or directory.

UPDATE - I found the nano file at /etc/php/8.3.fpm/php.ini and have changed upload_max_filesize to 500M, doubled memory_limit to 16 and increased post_max_size have restarted the service (and rebooted the server) but the issue persists.

Appreciate this is a very n00b request but command line I find quite confusing.

Any help very much appreciated!

Thanks

Share relevant logs or error messages

See above

1 Like

Have a look at /etc/php/8.2/fpm/pool.d/castopod.conf and check if changing the relevant values does the trick.

Don’t forget to restart the php8.2-fpm service once your changes are saved.
sudo systemctl restart php8.2-fpm

(the app uses php8.2, not 8.3, from what you can see in the package repo)

1 Like

THANK YOU!!!

Wow I’ve spent so much time trying to figure this out, very much appreciated :slight_smile:

One other question, I’ve increased upload_max in the main php. config files, this isn’t likely to cause me any issues is it, I can change them back easy enough but if it’s not a potential issue I’ll just leave it.

Thanks again :slight_smile:

You’re welcome :grinning_face_with_smiling_eyes:

As for the main configuration files, I’d revert to the initial values. But you probably didn’t break anything by changing them.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.