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

  • 0

1. Log in to Windows VPS with the Administrator user.

2. Navigate to C:\Program Files (x86)\PHP\v5.X and locate the PHP configuration file (php.ini) and open it with the text editor of your choice. 

3. Search for the following parameter and set your desired value. 

ini_set('upload_max_size','10M'); // You can set your desired maximum upload size here.

4. Save the php.ini file.
You can verify the maximum upload size by uploading the phpinfo page and accessing it like http://domain.com/phpinfo.php.



Was this answer helpful?

« Back

chat