Trying to increase upload size, but nothing works…

[ad_1]

I’m hosting a WordPress site on my own server. Everything seems to work fine, but when I try to install a new theme, it says “The link you followed has expired”. I’ve had this problem before, and could easily change a file to increase the upload size and the problem was fixed. However, this doesn’t seem to work anymore. The things I’ve tried:

\- Created a php.ini file in the root folder with this code:upload\_max\_filesize = 64Mpost\_max\_size = 64Mmax\_execution\_time = 300

\- Edited the .htaccess file with this code:

php\_value upload\_max\_filesize 64Mphp\_value post\_max\_size 64Mphp\_value max\_execution\_time 300php\_value max\_input\_time 300

\- Edited the functions.php in the wp-includes folder, with this code:

@ini_set( ‘upload_max_size’ , ‘130M’ );
@ini_set( ‘post_max_size’, ‘130M’);
@ini_set( ‘max_execution_time’, ‘300’ );

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer