The problem comes when I try to set up client’s WordPress environment. In short, my client wish to create a podcast blog but WordPress somehow could not accept file beyond certain size – saying ‘This file is too big. Your server upload max filezie is xyz M‘.
The hosting that my client is using Bluehost shared hosting. A decent hosting with c-panel interface and various other stuff – most importantly, Bluehost allows modifying php.ini file which will be useful in solving above mentioned problem
My workaround involves creating default php.ini file and modify it accordingly.
- From CPANEL, go to Bluehost PHP Configuration (or any CPANEL PHP configuration.)
- Click INSTALL DEFAULT PHP.INI – This will copy the master php.ini to your public_html directory named “php.ini.default”. We can then edit the file with any custom directives your scripts require.
- Select ‘PHP5 (single php.ini)’ option
- Use anything within your means, rename PHP.INI.DEFAULT created at PUBLIC_HTML directory into PHP.INI
- Use whatever means necessary to change these following lines into:
- post_max_size = 100M
- file_uploads = On
- upload_max_filesize = 100M
- max_execution_time = 300
- The above configuration will enable me/my client to increase the maximum upload size to 100MB.
- Save! And you are done
I have tried solution offered by http://simplercomputing.net/2009/02/13/fix-php-max-upload-size-wordpress/ but could not work.
In any case, since I could have find solution that serve me well.