The fabulous NextGen Gallery was maxing (timing) out when uploading zip files. My server said it could only handle 2 MB uploads, so I went searching.
Most help said to make changes to the .htaccess file, but I did that and I think my host has something set up (suexec or something) that doesn’t allow such code in there, so it said to create a php.ini file with the following code:
- post_max_size = 50M
- upload_max_filesize = 40M
- max_execution_time = 900
- memory_limit = 30M
Did that and put it in the root directory with no luck. Someone else said to put it in the directory where the script was, so I put it in the NextGen Gallery folder. Nope. Put it in ALL of the NG folders. Nope. Finally, seeing the WP plugin in action, I put the php.ini file in the /wp-admin/ folder and voila!
Also, when making the php.ini file, I used the code above, not the one with “php” in the directives. Those were for the .htaccess file.