![]() ![]() Restart the servers for the changes to take effect. Check the configuration details before restarting the services: sudo apachectl configtest Syntax OKĥ. Press the ESCAPE button and then enter the command :wq! to save the file.Ĥ. Set the LimitRequestBody parameter to a new value in bytes, as shown in the following example: LimitRequestBody 65536 Open /opt/bitnami/apache2/conf/nf in a text editor such as the vi editor: # sudo vi /opt/bitnami/apache2/conf/nf However, if the parameter is specified and the value is less than the desired upload size, increase the parameter by doing the following: If the parameter isn't specified, then there is no size restriction in the Apache web server configuration limits. Verify that the LimitRequestBody parameter is specified in the Apache configuration files using the following command: # grep "LimitRequestBody" /opt/bitnami/apache2/conf/nf After modifying the values, save the file by pressing the ESCAPE button. Maximum allowed size for uploaded files.Ģ. # sudo vi /opt/bitnami/php/etc/php.ini Maximum size of POST data that PHP will accept. ![]() Use a text editor, such as the vi editor to access the /opt/bitnami/php/etc/php.ini file. Open the /opt/bitnami/php/etc/php.ini file to increase upload_max_filesize and post_max_size. To modify the maximum upload size, do the following:ġ. Similar to managing the PHP max input time in WordPress to increase the PHP timeout limit, while there are numerous ways to increase the PHP Max Input Vars in WordPress, it depends on your hosting provider. Upload_max_filesize = 40M # grep -i "post_max_size" /opt/bitnami/php/etc/php.ini To verify the maximum upload limit on your Lightsail instance, run the following commands: # grep -i "upload_max_filesize" /opt/bitnami/php/etc/php.ini It's a best practice that you set the post_max_size to be greater than or equal to upload_max_filesize.īy default, WordPress limits uploads to 40 MB for both post_max_size and upload_max_filesize. Post_max_size, on the other hand, is the limit of the entire body of the request. ![]() Upload_max_filesize is the maximum size of an uploaded file. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |