Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #191744

    SteveMepsted
    Participant

    Hi there – I have been attempting to upload the x.zip file to WordPress but get a message stating that the max file size is too large?

    Can someone help please? Many thanks Steve

    #192155

    Alexander
    Keymaster

    Hey there,

    It sounds like your host has limited the file size. I would advise contacting them and asking them to increase the limit. You could also install via FTP, but most hosts are willing to increase the upload size which will make things easier.

    #192156

    John Ezra
    Member

    Hi there,

    Thanks for writing in. This error is due to your PHP configuration settings. If you are comfortable changing the settings you can read on below, if not then please ask your host to adjust this for you. Thanks!

    Ideally the best way to do this is to access your php server’s php.ini file via graphical interface or via the command line. However for most hosting setup this is not something readily available for security reasons and to prevent people using their hosting as an online storage. If you have access to these, you must have a more dedicated type of hosting in which you probably already know what you are doing. If not I recommend getting help from your host directly or trying the following options:

    Option 1: Theme Functions File

    Add this to your functions.php file:

    @ini_set( 'upload_max_size' , '64M' );
    @ini_set( 'post_max_size', '64M');
    @ini_set( 'max_execution_time', '300' );

    Option 2: Increase Upload Size Using a PHP.INI file

    A. Create the php.ini File using Notepad (PC) or TextEdit (Mac) – just open up your favorite text editor and save the file with PHP as the file name and “.ini” as the file extension.

    B. Enter the following lines within this file:

    memory_limit = 100M
    upload_max_filesize = 192M
    post_max_size = 100M
    file_uploads = On

    C. Save it and then upload it to your wp-admin folder via ftp.

    Option 3: .htaccess File

    Find or create the .htaccess file similar to option two. You should find it in the root directory of your install.

    With a text editor create a file titled “blank” as in nothing with the file extension “.htaccess” then put the following inside of of it.

    RewriteEngine On
    php_value memory_limit 34M
    php_value post_max_size 33M
    php_value upload_max_filesize 32M
    php_value max_execution_time 600

    That should do it.

    Note: in each of the examples above you must change the values as you see fit, generally try to keep a small upload size if you’re not uploading videos or large files. X theme is just a little over 6MB so you should be fine with a value of 10M.

    Hope this helps!

    #192647

    SteveMepsted
    Participant

    Thanks so much for your reply – I have contacted them and hopefully they will take off the restriction.

    #193048

    John Ezra
    Member

    Thanks for updating the post, they should be able to take care of it. Let us know if ever you need anything else, thanks!