How do I increase the upload size in Wordpress?

by robertalrp   Last Updated August 15, 2016 08:03 AM

My blog runs on the comicPress theme powered by Wordpress, on Altervista hosting service. I purchased the second level domain and therefore I aim customizing everything I need to.

I normally upload images through the menu Comics -> add comic -> upload media and then upload from my pc. I want to change the size of images I upload there, so far I've been trying the following methods:

1)

I copypasted the script below on the functions.php file and uploaded it but it didn't work:

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

2)

then I tryed to configure a ftp server after having installed Filezilla, for I read it is a requirement for accessing the root of my website and exploting a php.ini file (which will be create and saved there) which allows modifying the size for uploading. But while opening FileZilla server I got this error:

     FileZilla Server 0.9.58 beta
    Copyright 2001-2016 by Tim Kosse ([email protected])
    https://filezilla-project.org/
    Connecting to server localhost:14147...
    Connected, waiting for authentication
    Logged on
    You appear to be behind a NAT router. Please configure the passive mode settings and forward a range of ports in your router.
    Warning: FTP over TLS is not enabled, users cannot securely log in.

So what should I do for being able to upload bigger images?



Related Questions



Images are blurry in one category and not the other

Updated April 18, 2015 20:01 PM



How to do not refer or hide to google my div?

Updated October 22, 2018 18:04 PM