Announcement

Collapse
No announcement yet.

How do I Increase PHP file upload size in Windows VPS?

Collapse

Ads on showthread pages

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How do I Increase PHP file upload size in Windows VPS?

    WordPress Hosting on SSD Servers
    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
Working...
X
Sign up for a News Letter Click here to sign up