Question
The uploaded file exceeds the upload_max_filesize directive in php.ini.
Trying to add a theme that I downloaded for Wordpress but when I try to upload it, it states the following:
The uploaded file exceeds the uploadmaxfilesize directive in php.ini.
How do I fix this?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
Can anyone give step by step instruction for solving this problem.
i m using Wordpress on Ubuntu.
and i don’t know how to access the php.ini file on Digital ocean
Here’s how you’d do it on Ubuntu with Nginx & PHP5:
Update this setting values to your liking
Save the file:
Ctrl + O
hit Enter, thenCtrl + X
to quit the file editing.Then perform a restart of the PHP5-FPM service
For the sake of just being sure (it wouldn’t harm no kittens), perform a nginx restart as well:
That should do it. I hope. :-)
I’m a complete noob to almost everything regarding consoles and server management, especially SSH, so I struggled with this one for a while.
After figuring out some basics in ssh, such as using the ls command to list directories, I noticed that the php.ini file on my server is located here, rather than the above mentioned directory:
I stumbled a bit to figure out what the correct service to restart is, but I think this did it: