Comments

  1. Priya

    SOLUTION
    PHP has several configuration options to limit resources consumed by scripts. By default, PHP is set to allow uploads of files with a size of 2MB or less.

    Try increasing the following values in php.ini, for example:

    memory_limit = 32M
    upload_max_filesize = 24M
    post_max_size = 32M
    There are multiple ways to edit php.ini on your DV server. This KnowledgeBase article outlines how to do so:

    How can I edit the php.ini file?
    After making these changes, you may need to restart Apache. You can do so through Plesk or via SSH with the following command:

    /etc/init.d/httpd restart
    ADDITIONAL INFORMATION
    If the upload_max_filesize is larger than post_max_size, you must increase post_max_size so that it is bigger than upload_max_size.

    If the value of post_max_size is larger than memory_limit, you must increase memory_limit so that it is larger than post_max_size.

Leave a Reply

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