If your site is hosted on GoDaddy.com and you want to change the PHP config settings then don't try to bypass settings with a .htaccess file. It will give you a 500 error [source]. Instead go to the root directory and you will find ini.php file, change the settings there.Let's say you want to increase upload size in your php.ini, then simply copy-paste the following code at the bottom of the code:
upload_max_filesize = 10M ;Done!
post_max_size = 20M ;
By the way, the php.ini is for configuring PHP 4. To configure PHP 5 you need to upload a php5.ini file [source].
Supplementary:
- Why .htaccess shows 500 error? [Read]
- Beginners guide to .htaccess file with examples [Read]
- .htaccess Apache how-to [Read]
- A simple guide to .htaccess [Read]
- Uploading large/big files in PHP using .htaccess [Read]
0 comments:
Post a Comment