Hello all. Please don’t avoid this as this is a common issue with thousands of solutions online. I have tried those but it still isn’t working.
So I have been trying to upload a plugin but getting this ‘The link you followed has expired’. After looking for solutions I added these 3 lines of code at the end of my theme’s ‘functions.php’ file:
​
@ini_set( ‘upload_max_size’ , ‘120M’ );
@ini_set( ‘post_max_size’, ‘120M’);
@ini_set( ‘max_execution_time’, ‘300’ );
but that didn’t fix it as I can still see ‘Maximum Upload File Size: 2mb’ in ‘Media > Add New’ page.About my server, it’s a VPS and I’m using Nginx as reverse proxy. I had issues while uploading a theme but I added this:
client_max_body_size 20M;
in ‘nginx.conf’ file. Then added these:
set_time_limit(300);
@ini_set( ‘max_input_vars’ , 3000 );
define(‘WP_MEMORY_LIMIT’, ‘256M’);
define(‘FS_METHOD’,’direct’);
in ‘wp-config.php’ file.
There was also a permission issue in ‘wp-content’ directory which I think I successfully solved and this is the read-write permissions for the files and directories:
​
The reason I’m telling what I did is to know if I have done something wrong and the current config in the server side. So please let me know if something is wrong.
So please tell me how to fix the plugin issue. This is the first time I’m trying to deploy WP website in a VPS. So kind of a noob here.
[ad_2]