I need to upload a PDF file to my wordpress site. When I go to Upload New Media, and try uploading it, it says
FileName.pdf exceeds the maximum upload size for this site.
I tried looking for my php.ini file but could not find it. I ran phpinfo()
by creating a new file and then opening it in my browser and found this.
Configuration File (php.ini) Path C:\Windows Loaded Configuration File C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP5\php.ini
I placed a php.ini files with
upload_max_filesize = 512M
post_max_size = 512M
max_execution_time = 300
in wp-admin, httpdocs and everywhere I had access, nothing worked The max upload file size is just 8 MB. Please help me, My client needs to upload that file.
Note: Please don't tell me to restart server, as I can't, It is a hosted site.
WHM/CPanel users Only
I have been struggling with this for a while now, I found the most simple way to solve this to login to your WHM > PHP Configuration Editor > Change (upload_max_filesize) then hit "SAVE".
This makes a change to your server's php.ini file (the simple way).
This applies to cPanel users only. I'm not sure about which versions of cPanel it will work with, but it works with the version 56.0.33.
Login to cPanel > Select PHP version > Switch To PHP Options > Click the greyed out number next to upload_max_filesize > Change > Save
I believe this makes a change to the server's php.ini file.