Home - Help & Support - Contact Us
    

Increasing User File Upload Limits Using Php.ini

NOTE: The location of your php.ini file can vary, depending on your operating system/control panel combination. If you are using Fedora Core 4 with Plesk control panel, for example, this file is in the following location: /etc/php.ini

If you are using a different operating system and/or control panel, you can find the location of your php.ini file by running the following from your command line:

php -i | grep php.ini

There are two variables within your php.ini file that are responsible for managing user file uploads.

  • post_max_size This variable determines the maximum amount of data that PHP will accept in a single form submission using the POST method. Its default value is 8 MB, as shown below:
    post_max_size = 8M
  • upload_max_filesize This variable limits the size of an invidivual file uploaded to your site. Its default value is 2 MB, as shown below:
    upload_max_filesize = 2M

An increase in the value of these variables expands user file upload limits.

NOTE: After making changes to php.ini, you must perform an httpd restart for them to take effect. This is accomplished by running the following from your command line:

/sbin/service httpd restart
Rated:NR/0 Votes
177 Views
More Articles From Configuring
More Articles From Configuring
Print Article
Print
Share |
Comments, Questions & Reviews

Comments is currently disabled for this article!
Related Articles and Readings
Increasing User File Upload Limits Using php.ini
NOTE: The location of your php.ini file can vary, depending on your operating system/control panel combination. If you are using ...
Can I turn off PHP
By default, Plesk sets PHP to "safemode" during installation. To take PHP out of "safemode," you need to remote connect ...
Which php libraries are installed by default on my Dedicated Server?
The specific php libraries installed on your Dedicated Server depend on the operating system your server is using. Here are ...
Can I turn off PHP safemode on my Windows virtual dedicated server?
By default, Plesk sets PHP to "safemode" during installation. To take PHP out of "safemode," you need to connect to ...
Which php libraries are installed by default on my Virtual Dedicated Server?
The specific php libraries installed on your Virtual Dedicated Server depend on which operating system your server is using. Here ...
The information provided in this article is for general information and/or the comments is the sole responsibility of their respective authors and does not necessarily reflect the opinion of zeronese.net does not endorse any article and/or comments published by our web users unless otherwise noted.