• Resolved bradbpw

    (@bradbpw)


    I am attempting to upload a few PDF files that are over 1mb (1.25mb and 6.3mb) and I get the “HTTP Error” warning. I have been able to upload several files that are less than 1mb.

    My max upload size is set to 250mb in my php settings

    Any idea how to fix this?

Viewing 2 replies - 31 through 32 (of 32 total)
  • Thread Starter bradbpw

    (@bradbpw)

    Yes, I have restarted nginx and apache each time and rebooted the server a few times.

    I think all this screwing around has now caused another issue for me. I started a new thread on it, but I’m sure it’s related. I thought I reverted everything back, but I guess not. This is becoming frustrating

    https://www.ads-software.com/support/topic/cant-customize-login-logo-using-multiple-plug-ins?replies=2#post-5222729

    Thread Starter bradbpw

    (@bradbpw)

    I got it fixed!!

    While trying to fix my other problem I came across a small typo in my php.ini file. I had upload_max_filesize = 250 mb. It needed to be 250M. That coupled with the other suggestions fixed my issues!!

    THANK YOU SO MUCH GUYS!!!!

    To sum it up, here is what needs to be done.

    Add this to /etc/nginx/sites-enabled/default

    server {
    listen 81; ## listen for ipv4; this line is default and implied
    #listen [::]:80 default ipv6only=on; ## listen for ipv6

    root /usr/share/nginx/www;
    index index.html index.htm;

    # Make site accessible from https://localhost/
    server_name localhost;
    client_max_body_size 100M;

    Add this to /wordpress/wp-config.php

    // ** MySQL settings – You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define(‘DB_NAME’, ‘wordpress’);

    /** MySQL database username */
    define(‘DB_USER’, ‘root’);

    /** MySQL database password */
    define(‘DB_PASSWORD’, ‘jb*1978*’);

    /** MySQL hostname */
    define(‘DB_HOST’, ‘localhost’);

    /** Database Charset to use in creating database tables. */
    define(‘DB_CHARSET’, ‘utf8’);

    /** The Database Collate type. Don’t change this if in doubt. */
    define(‘DB_COLLATE’, ”);

    /** Increase limit for uploads. */
    define(‘WP_MEMORY_LIMIT’, ‘100M’);

    Upload max size at /etc/php5/cgi/php.ini has always been this

    ; Maximum allowed size for uploaded files.
    ; https://php.net/upload-max-filesize
    upload_max_filesize = 100M

Viewing 2 replies - 31 through 32 (of 32 total)
  • The topic ‘Can't upload files over 1mb – HTTP Error’ is closed to new replies.