PHP is one the most widely used server-side scripting languages on the web. Many blogging content management systems (CMS), such as WordPress, rely on it to serve dynamic web sites to web users. Every web server has a PHP settings file, usually called php.ini, and that file contains numerous settings that may have an effect on your blog.
Generally speaking, most bloggers do not upload very large files. In some cases, however, it may be necessary, particularly if the blogger is distributing software or needs to upload high-quality photography images. When you login to WordPress, for example, the media upload portion of the dashboard will tell you what your current upload limit is. For example, it may say “Maximum upload file size: 64MB”. To change this setting, you will need to edit your php.ini file.
If you are running a dedicated server or VPS and want your PHP changes to affect the entire server, you can edit the global php.ini. Depending on your operating system, it might be located at /etc/php.ini. If, however, you are using shared hosting, you may still be able to edit a local php.ini file. It could be located in a directory such as /home/username/etc/php.ini. You should ask your web host for the exact location.
Editing the File
Using the editor available to you, edit the php.ini and find the following lines:
upload_max_filesize = **M
post_max_size = **M
Change the default limit listed to the amount (in megabytes) that you want to use. For example, if you think you will need at least 128 MB, enter the following:
upload_max_filesize = 128M
post_max_size = 128M
There are many other PHP settings that may effect your WordPress or other blogging software’s performance. Check the software’s documentation for more information.