How to increase max_size in php.ini file in windows shared hosting server

 

Php.ini is an important file in the server that stores the default values which PHP obeys while it runs. It includes the parameters like maximum upload size, execution time other relative stuff. When you need to change these values as per your requirement then you will have to configure it in the PHP.ini. When you are using a Windows shared hosting how it can be achieved is as shown in the steps below.

 

what is php.ini?

 

The php.ini file is the configuration file for running the PHP based files. Every server will be having a default php.ini file to run the PHP. 

 

Since Php.ini is one of the important configuration files in PHP it is the file which is been looked for first. So any functionality changes will be read from it. Over here some the important setting are implemented in this file those are upload directory, display errors, log errors, max upload size, max time for execution etc. And all these functions will enable easy administration in the way you administer the Apache web server. So today if you are using UNIX then the default path for the configuration file should be located in /usr/local/lib/php/

 

If you are not able to find your php.ini file then you can easily create one by yourself. All you need to do is just simply get a template with the standard configuration and then you can apply the needed changes in it.

 

what is the use  php.ini?

 

Every server has php.ini file which have default values to run the PHP, It is used to increase the variables like Max_upload size, Pos_max_size, Max_execution_time, etc. 

 

The main purpose of using php.ini is that in the php.ini file it contains all of the current PHP configuration settings like the execution time, memory limit, etc. Hence there is a php.ini file where the server will fall back onto if you do not have one in your public_html folder. And creating a php.ini file will override any soft limit settings which is placed by the server.

 

Today if you want to do some have custom configurations then you can also write your own php.ini file. For this copy of php.ini template file, you need to make necessary changes in its values directives according to your need and then rename it to php.ini and then copy it to your desired location in the root of your web directory or in any particular folder. But don't worry our hosting solution will allow you to run this file. And the PHP runtime will take values only for setting which are specified in php.ini file if you are using your own, for rest of settings it will take defaults of PHP runtime. So if you are writing your own php.ini then keep in mind to overwrite every settings which are specified in web server’s php.ini file because this can not be used as an extension of web server’s php.ini file.

 

How to increase max_size in php.ini:

 

Step 1: You need to create php file in the name of phpinfo.php and upload the below code in the file and save.

So you can access the file as domainname/phpinfo.php, you will get the below output.



This will be the default path to change the values of default php.ini file

C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP54\php.ini

Some of the Hosting providers will be disabled the above path, So you can use the plesk panel to increase the values.

To increase the values of the variables you have an option in the plesk panel as well.

 

Steps: To increase through plesk panel

Website and domains>>php Setting>> edit the values>>save it.




2.Click on php settings.





After changing the values you can save it.