Windows Server 2008 R2: upload limit - windows-server-2008

i'm running php on my win 2008 r2 server and i'm experiencing problems when uploading files bigger than 1MB. i've already checked the limits in my php.ini - and restarted the server but it didn't help.
these are my values:
post_max_size 128M
upload_max_filesize 128M
any ideas which could still be wrong?
thanks

I had the same issue a while ago, only applies if you use IIS7+ thou (haven't tested with previous versions):
Open IIS manager
Select the website for which bigger uploads should be available
Double click the request filtering icon, you should see a screen with some tabs
Right click in a tab and select edit feature settings
Adjust the Maximum allowed content length (bytes) field
That did the trick for me

Related

how to access php.ini in MAMP

I am trying to increase the file upload size for phpMyAdmin so I can import a SQL database.
In order to do so I need to edit php.ini. However, I can't find it on my computer. I am using MAMP on a Win 10 machine. Can someone show me how to do it?
You will probably find php.ini in
C:\MAMP\conf\
On my mac, running MAMP I have a few locations that would be the likely php.ini,
so I edited the memory_limit to different values in the 2 suspected files,
to test which one effected the actual MAMP PHP INFO page details.
By doing that I was able to determine that this was the correct php.ini:
/Applications/MAMP/bin/php/php7.2.10/conf/php.ini
Assuming MAMP uses same directory structure on PC, then it would just be the php(number) that would differ depending on what PHP is set in your MAMP Preferences.
MAMP keep its php.ini in the following location.
/Aplications/MAMP/conf/bin/php/**{current php version}**/conf/php.ini
Ex: /Aplications/MAMP/conf/bin/php/php7.2.8/conf/php.ini

Script timeout passed, if you want to finish import, please resubmit same file and import will resume

I have an sql file which I want to upload in my database in live server using Cpanel. The size of it is 8.36 mb. But the server showing me this error.
NB: I found several answers which shows me to configure php.ini file located in localhost. But in this case, I'm working with live server, and in the Cpanel I've no access in root files.
Please contact your hosting provider and ask them to increase max execution time and upload limit, You can not increase it with your cPanel access.

Big WP_Query on MAMP

I'm running an install of WP (3.5.2) on MAMP. Some queries are outputting stuff the way they should (post count, last 5 posts etc) but one isn't. This is a query going through about 550 custom posts and displaying information. I've got 'posts_per_page' => '-1' in the arguments array and I noticed when I change the value to 100 I do get output. The loop of the query goes through all the custom post types and for each post it gets about 10 meta values. On my live website this is all working as expected.
I'm not very skilled in server setups and MAMP so I was wondering if this has anything to do with MAMP (or MySQL) being limited to a certain amount of database requests or something?
Webserver: Apache/2.2.23 (Unix) mod_ssl/2.2.23 OpenSSL/0.9.8x DAV/2 PHP/5.4.10
It was a memory problem like Ennui suggested. I did two things to resolve my issue:
1:Changed max_allowed_packet to 1024M in MySQL (see here)
Added --max_allowed_packet=1024M to /Applications/MAMP/bin/startMysql.sh and restarted MAMP
2: Changed memory_limit in php.ini (my method below or see here)
Open /Applications/bin/php/php5.4.10/conf/php.ini, look for memory_limit and change it (for me it was 32M, changed it to 1024M) and restart MAMP. If your using another version of php, look in your php version folder instead of php5.4.10.
I don't know if memory_limit was the problem or if it was a combination of PHP and MySQL since only changing max_allowed_packet didn't resolve my issue, but the two steps above work!

WAMP limit log files size

Is there any functionality in wamp to limit the access and error log to 20 MB? i.e. it should be truncated after 20 MB.
usually (on linux) the log are managed by another system (for example a log rotate), it's not apache which manage them itself - if you understand french someone did logrotate.bat and shared it on the wampserver forum - thus you can use a log rotate system of windows too
Hope this could help

How to overcome max upload size limit in Wordpress 3.1 running on Windows 2003 IIS6

i am trying to increase the max upload size in wordpress 3.1 multisite-installation running on windows 2003 iis6, but all methods i try (from editing php.ini, putting it in wp-admin as well as in the root, editing the htaccess, editing the metabase.xml, restarting the server) give nothing, i still get the same error saying that the file exceeds the allowed 2MB....that's frustrating... any workaround and please, step by step...thanks!
i have my pretty urls thanks to isapi, but this - this frustrates me since i can't upload any audio mp3 file, where is the problem?
PHP has these two settings that govern uploading files:
* upload_max_filesize
* post_max_size
Have you modified both of those? Additionally, IIS has an AspMaxRequestEntityAllowed metabase property that defaults to 2MB. You can modify it with the IIS manager application.