How do I Increase PHP File Upload Size in Windows VPS?

  1. Login to Windows VPS with Administrator user.

  2. Navigate to C:\Program Files (x86)\PHP\v5.X and Locate PHP configuration file(php.ini) and open it with text editor of your choice. Search for following parameter and set your desired value. 

    ini_set('upload_max_size','10M'); // You can set your desired maximum upload size here.
  3. Save the php.ini file. You can verify the maximum upload size by uploading phpinfo page and accessing it like http://domain.com/phpinfo.php.

Related Articles

How to Setup Remote Desktop Service License in Windows Server in 2012 and 2016 OS?

You can connect the Windows server using RDP with 2 users at the same time. We required Remote...

Fix: All EXE Files By Default Open With Notepad or Other Application

Problem:Due to some misconfiguration or change in the setting of “open with” program, Windows...

How do I access my Windows VPS data using FTP and transfer the files between local system and VPS?

Prerequisites: Your Windows VPS must have an FTP server installed. If it is not installed then...

How to install and configure SMTP Server on Windows Server 2016?

SMTP stands for simple mail tranfer protocol. SMTP allows your emails to be sent from one mail...

Do You Have A SmarterMail Demo Account?

SmarterMail provides flexible email server for individuals, small businesses, and...

  • 0 Users Found This Useful

Was this answer helpful?