• 1. this is a wordpress installation from Microsoft Web Installer, running IIS server
    2. Microsoft found and bundled this wordpress and installed it and got it to the famous 5 minute install page.
    3. Trying to upload my theme (no company name, just some theme) that was 5MB? fail! upload size exceeds the size in php.ini.

    there IS NO!!! php.ini file.

    I create one and put it in the root and several folders. save, stop, reset, run, same thing.

    4. get the widget file size uploader expander or whatever its called. run it? textbox to set the max file size? 64MB? no effect still failed.

    5. solution 1: just put the zip file directly into the themes folder. problem solved.

    NOW????

    6. Need to import the existing website, so run import, it shows upload size limit: 2M

    ok where is this 2M coming from? how can this be changed?

    OR, ALTERnATE solution, can the other website in MAMP/Apache be copied into this IIS based installation?

Viewing 12 replies - 1 through 12 (of 12 total)
  • Moderator t-p

    (@t-p)

    Thread Starter rogersb

    (@rogersb)

    no, I have tried all of these, the hosting software is Microsoft IIS, local machine installed by WebMatrix and Web installer.

    there was no php.ini file. Ive made 4 copies and peppered them around hoping to be used; the idea of a so far hidden php.ini file? I have looked but not yet found, it is not in the wordpress folder with all of the files

    I knowing nothing about Microsoft IIS other than the fact it is different than Apache…
    https://www.google.com/search?q=microsoft+iis+php+wordpress

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    Fixing your problems requires asking your hosting service for the correct answer. Ask them. The limit is not one WordPress imposes, it’s built in to the hosting system. They can tell you how to adjust it.

    There’s nothing different about Microsoft IIS, nor Apache in this setting or even NGINX. PHP setup is pretty much always the same and what you can or cannot do without on an user level depends on webserver admins. By default there is indeed no php.ini file in wordpress. Hence the error you get refers the global php.ini that’s probably in the c:\program files\php\ either c:\PHP … webserver admin issue indeed.

    With regards to the other website and bypassing the import bug without messing too much with settings and a diversity of freemium wordpress plugins? I prefer using FTP + https://www.google.com/search?q=bigdump

    Thread Starter rogersb

    (@rogersb)

    Well I am the hosting service, localhost on my pc. Searching the files for the variable even 2m it’s not found. But maybe some other file I haven’t found in another place

    Thread Starter rogersb

    (@rogersb)

    Ok thanks.. Will look there tomorrow. Is there an export limit too? Main site export had a zillion errors but did export much of it

    And do you think my WordPress folder from MAMP can transfer easily??

    In MAMP the MySQL has a password like root but in this Microsoft install it had me make keys to encode the password, didn’t do that before

    And admin pwd is different. I put two weeks into that folder and want to merge it if possible

    Besides the MySQL command line tool, don’t know a visual way to modify Params

    Thread Starter rogersb

    (@rogersb)

    I use it for visual studio 2015 development and hosting. More familiar than with Apache, yes the links you have date to 2007? I’m worried that IIS will drop support for WordPress

    Just need to know if it will be supported in five years

    There is no export size limit. There is however a limit for how long a php script can run (max_execution time); the dreadful timeout issue. Increase it to 300 instead of the default 60 usually does the trick for most small to medium based sites and most definitely is going to solve uploading large XML / SQL files although you can bypass that with ‘bigdump’. Old, but works great / better when you are familiar with phpmyadmin. If not that, than this https://www.ads-software.com/plugins/wp-migrate-db/ or https://www.ads-software.com/plugins/all-in-one-wp-migration/ is useful.

    With regards to tracing the php.ini file (where search seems to fail). This seems like an useful resource: https://www.iis.net/learn/application-frameworks/install-and-configure-php-applications-on-iis/using-fastcgi-to-host-php-applications-on-iis

    WP is nothing less and nothing more than a bunch of PHP files with (in most cases) MySQL. As long IIS supports that, there is no reason why it would not support WordPress for the next decades. See: https://www.ads-software.com/about/requirements/

    MAMP / LAMP / XAMPP is all the same (stack, different OS). In IIS? Everything is different; as you pointed out already. However once you have MySQL and PHP setup it’s quite easy? Not sure; never tried IIS myself. Also the only environment where I’ve seen WordPress run on IIS, is enterprise. Not because it’s better or more stable, but because it ran next to other things they needed that were running .NET / .ASP (and favor IIS). Hence it’s worth pursuing when you are Visual Studio developer.

    Thread Starter rogersb

    (@rogersb)

    Rhyker2U thank you, I found the php.ini file after hours of searching, so its location is C:\Program Files (x86)\IIS Express\PHP\v5.5

    I changed the max upload variable to 95Mb, it was set at 2Mb

    Now in the Importer? that increased the allowed size from 2Mb to 8Mb, hooray! making progress, and I can import now. But maybe its a logarithmic variable setting, not absolute? so multiply by 6 to double its value?

    But I have my imported files.

    Would be nice to bring in the basic web design, will work on your suggestions for that

    Thread Starter rogersb

    (@rogersb)

    !Important

    open Administrator Dos window (right click on cmd.exe, run as administrator)

    go to c:

    cd c:\

    type in this command:
    where php.ini

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    I changed the max upload variable to 95Mb, it was set at 2Mb

    Now in the Importer? that increased the allowed size from 2Mb to 8Mb, hooray!

    The two variables you want to look for in the php.ini file are post_max_size and upload_max_filesize. Both of them affect the maximum upload size.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Import fails: Size limit 2M, how to change this? or upload xml directly’ is closed to new replies.