Changing upload_max_filesize(php) for a domain under a Shared Environment

upload_max_filesize is one of the important directive on php.ini file. In this directive we can mention the maximum upload file size for a website. Normally there is only one php configuration file for all domains under a shared environment there fore any changes made on that will effect all domains under that server.
We can mannually set some options for a particular user by editting the .htaccess file under the public(public_html) folder.We can simply edit the .htaccess file from file manager or from back-end. The htaccess file entries are listed below,

php_value post_max_size 3M
php_value upload_max_filesize 3M

Thats it… 🙂

Post navigation

Arunlal A

Senior System Developer at Zeta. Linux lover. Traveller. Let's connect! Whether you're a seasoned DevOps pro or just starting your journey, I'm always eager to engage with like-minded individuals. Follow my blog for regular updates, connect on social media, and let's embark on this DevOps adventure together! Happy coding and deploying!

Leave a Reply

Your email address will not be published. Required fields are marked *