Problem Statement: How do I increase PHP file upload size in Windows VPS?
Solution:
Step1: Login to Windows Web Server with Administrator user.
Step2: Click on Start->Computer->C drive->Program Files (x86)\PHP\vX.X
Step3: Now look for the PHP configuration file.
ini_set('upload_max_size','10M'); // You can set your desired maximum upload size here.
ini_set('post_max_size','10M'); // You can set your desired maximum upload size here.
ini_set('max_execution_time','300');
Step4: If you are unable to find the PHP file, create text file 'php.ini' and insert the following lines.
ini_set('upload_max_size','10M');
ini_set('post_max_size','10M');
ini_set('max_execution_time','300');
Step5: Save the file and you can verify the size by accessing the domain.com/phpinfo.php
Solution:
Step1: Login to Windows Web Server with Administrator user.
Step2: Click on Start->Computer->C drive->Program Files (x86)\PHP\vX.X
Step3: Now look for the PHP configuration file.
ini_set('upload_max_size','10M'); // You can set your desired maximum upload size here.
ini_set('post_max_size','10M'); // You can set your desired maximum upload size here.
ini_set('max_execution_time','300');
Step4: If you are unable to find the PHP file, create text file 'php.ini' and insert the following lines.
ini_set('upload_max_size','10M');
ini_set('post_max_size','10M');
ini_set('max_execution_time','300');
Step5: Save the file and you can verify the size by accessing the domain.com/phpinfo.php