Mobile app version of vmapp.org
Login or Join
Harper822

: How do I change my website's upload limit using .htaccess without getting a 500 Internal Server Error? I just bought a year of web hosting and I paid for the 50GB plan. I want to allow small

@Harper822

Posted in: #Cpanel #Htaccess #Php

I just bought a year of web hosting and I paid for the 50GB plan. I want to allow small attachments up to 260MB each on my website. I used this:

php_value upload_max_filesize
php_value post_max_size
php_value memory_limit


Found here www.cyberciti.biz/faq/linux-unix-apache-increase-php-upload-limit/ to change the settings to the appropriate MB but it immediately caused a 500 Internal Server Error when I went to my website. Obviously all I have to do to make my website work again is delete this file (thank goodness!!) but how can I modify this code to make it change the max upload setting on my website? I tried creating and editing my own php.ini but that didn't work either.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Harper822

1 Comments

Sorted by latest first Latest Oldest Best

 

@Si4351233

Some web hosting providers, especially on shared servers, don't allow for an increased upload file size limit or increased memory limit.

Depending on the way your web hosting provider has configured their servers the way to do this will vary and so the best option here is to get in contact with your hosting provider to ask them how to do this on their servers. If you are allowed to then they will be able to tell you how to do this and if it is not allowed for shared servers then they will be able to provide this information as well in which case your only option would be to either change to a shared hosting provider that does allow increasing the upload file size limit or changing to a VPS service where you have greater control over the server than on a shared hosting provider.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme