Hi all,

I am running wamp on my pc using localhost and building locally a Wordpress site.

However, when I try to upload any themes or plugins via zip files I get The uploaded file exceeds the upload_max_filesize directive in php.ini

So I edited the php.ini file in wamp/bin/php to upload_max_filesize = 200M and it has had no effect - I always get this error.

I know that I can install the theme files locally into the 'correct' folders but dont know WP to figure where to put other plugins and widgets and really would like to use the inbuilt loader.

Anyone help me please....

thanks

george

    Have you also checked the post_max_size in php.ini? What about a hidden input field called MAX_FILE_SIZE is this also set high enough? Verify these settings please.

      thanks for the quick reply.

      I forgot to mention that I had also set post_max_size to 200M

      incidentally I didn't know whether it should be set to 200 200M or 200MB and I think I have tried all three...

      I'm not sure where this hidden input field called MAX_FILE_SIZE is - is this in php.ini … I cannot find it using notepad - how do you unhide it???

      thanks

      george

        Have you looked at a [man]phpinfo/man readout to verify whether or not your changes to php.ini are actually having any effect? Also, did you restart your webserver every time you modified php.ini?

        EDIT:

        Derokorian;10999968 wrote:

        What about a hidden input field called MAX_FILE_SIZE is this also set high enough?

        It has nothing to do with the error the OP is receiving at the moment, so... what about it? :p

          I guessed that is what you meant....

          Its a good call, pity I don't know Wordpress that well, I'm going to have to inspect each of their admin php files see if I can spot which one contains the upload details

          george

            You might want to see my reply above before you waste your time looking for any 'MAX_FILE_SIZE' hidden input:

            bradgrafelman;10999975 wrote:

            It has nothing to do with the error the OP is receiving at the moment

              max_file_uploads are set to to 20 and 20 … what does this mean ?? the max number of files???

              post max size is 8M … ahhh upload max size is 2M .... ugh???? why has it ignored my php.ini setting???

              and yes... always restarted apache....

              gotta go walk the dog .... can you tell me why php.ini is not being used??? or exactly what settings should be ie 200M or 200MB.... and where php.ini is used from ie is there one in systems32 folder???

              thanks

              george

                zubo;10999981 wrote:

                max_file_uploads are set to to 20 and 20 … what does this mean ?? the max number of files???

                See the manual.

                zubo;10999981 wrote:

                why has it ignored my php.ini setting???

                PHP doesn't "ignore" things. Thus, a better question might be "Why isn't PHP parsing my php.ini file?"

                zubo;10999981 wrote:

                can you tell me why php.ini is not being used???

                Where is the php.ini file that you're editing located on your system?

                How was PHP integrated into Apache? If it was done so as a module (e.g. not CGI/FastCGI), then there is likely a 'PHPIniDir' directive in Apache's httpd.conf file (or a .conf file included from httpd.conf) that tells PHP where to look for a php.ini file (and if there isn't, then you might want to add one).

                zubo;10999981 wrote:

                exactly what settings should be ie 200M or 200MB

                See the manual.

                zubo;10999981 wrote:

                where php.ini is used from

                PHP will tell you which php.ini file(s) it found and parsed (if any) on the [man]phpinfo/man printout. Look for 'Loaded Configuration File' and/or 'additional .ini files parsed'.

                zubo;10999981 wrote:

                is there one in systems32 folder???

                Considering that we don't have access to your computer, this isn't a question we can answer. (However, I will say that there definitely should not be any PHP-related file in any of your Windows system directories!)

                  bradgrafelman;10999983 wrote:

                  See the manual.

                  PHP doesn't "ignore" things. Thus, a better question might be "Why isn't PHP parsing my php.ini file?"

                  Where is the php.ini file that you're editing located on your system?

                  How was PHP integrated into Apache? If it was done so as a module (e.g. not CGI/FastCGI), then there is likely a 'PHPIniDir' directive in Apache's httpd.conf file (or a .conf file included from httpd.conf) that tells PHP where to look for a php.ini file (and if there isn't, then you might want to add one).

                  See the manual.

                  PHP will tell you which php.ini file(s) it found and parsed (if any) on the [man]phpinfo/man printout. Look for 'Loaded Configuration File' and/or 'additional .ini files parsed'.

                  Considering that we don't have access to your computer, this isn't a question we can answer. (However, I will say that there definitely should not be any PHP-related file in any of your Windows system directories!)

                  thank you SOOOOOO MUCH … I mean that sincerely. It is always a pleasure to be taken down long learning paths and that has helped me hugely.....

                  its sometimes frustrated when you are presented with so much information - you cannot see the wood for the trees but the answer was there all along. wamp on a windows box is installed with dirs. for apache www and php
                  the php dirs. have the php.ini file in them but wamp uses the php.ini file under the bin dir under apache...… ahhhhhh how unexpected...…

                  All now works....

                  thanks SO MUCH

                  george

                    zubo;11000012 wrote:

                    ahhhhhh how unexpected...…

                    ... which is precisely why both I and the developers of PHP itself (at least, the ones who wrote the PHP manual) always recommend getting PHP from php.net (and Apache from apache.org, and MySQL from mysql.com, and... etc.) and not using those pre-built packages (WAMP, LAMP, XAMPP, etc. ad nauseum). 😉

                    EDIT: Also, don't forget to mark this thread resolved (if it is) using the link on the Thread Tools menu above.

                      Write a Reply...