• Resolved Bobie wae

    (@bobiewaelah)


    Hello
    I always get problem when trying to import WXR & RSS feed on my wordpress but always get this “The uploaded file exceeds the upload_max_filesize directive in php.ini” then I ask my VPS admin to change the php.ini

    upload_max_filesize = 100M
    max_execution_time = 300
    max_input_time = 60
    memory_limit = 256M

    then I try to import again (up to 10MB each), but the same problem appears “The uploaded file exceeds the upload_max_filesize directive in php.ini”. I choose the smaller file to upload (less than 2MB) the problem still happen

    does anyone know how to fix this problem

    I

Viewing 7 replies - 1 through 7 (of 7 total)
  • I’d make an info.php file with the following:

    <?php
    phpinfo();
    ?>

    Place that into your blog’s directory and then execute it. Then you can see what the post_max_size and upload_max_filesize values really are. The post_max_size needs to be larger than the upload_max_filesize so that forms can complete that are used to upload files.

    Thread Starter Bobie wae

    (@bobiewaelah)

    thank’s MarkRH

    it’s weird
    from php info it’s show
    upload_max_filesize: 2MB
    post_max_size: 8MB

    from php.ini
    upload_max_filesize = 100M
    post_max_size: 110MB

    I don’t know why it’s show different value

    In that file’s output, look at the value for Loaded Configuration File to see where the PHP.INI is actually being loaded from. Your webhost will need to update the values in that file or configure the server to allow you to load your own.

    Thread Starter Bobie wae

    (@bobiewaelah)

    this is the php.ini path “/usr/local/apps/php55/etc/php.ini”

    i have download the php.ini file and check the value,

    upload_max_filesize = 100MB
    post_max_size: 110MB

    you can check the php info here: https://goodmastah.tk/phpinfo.php

    Restart apache for changes to take effect.

    also remove the link to phpinfo file, it isnt safe to put it like that on web.

    Thread Starter Bobie wae

    (@bobiewaelah)

    I don’t install apache but apache2 after I restart the apache2 service it show me the same.

    Thread Starter Bobie wae

    (@bobiewaelah)

    Ok guys it’s solved,
    Nginx requires php-fpm restart , so I used the below command

    root > /etc/init.d/php-fpm55 restart

    and it’s working

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘The uploaded file exceeds the upload_max_filesize directive in php.ini’ is closed to new replies.