Issue with uploading Wordpress Theme
After installing WordPress, I want to upload a theme to it, and it keeps telling me "Link has expired".
What do I need to do?
After looking into similar issues, it seems like increasing the maximum file upload size in WordPress can potentially clear up this issue. Depending on your configuration, you'll likely need to edit either your php.ini file or your .htaccess file.
To locate your php.ini file, try running the following command:
$ php -i | grep "php.ini"
Once you've found it, try adding the following contents to the php.ini file (or updating the values of these fields if they already exist) with your preferred text editor:
upload_max_filesize = 64M post_max_size = 64M max_execution_time = 300
To locate your .htaccess file (if there is one), try running this command when you're in your WordPress site's root directory:
$ find ./ -name ".htaccess"
For this file, you can use a text editor to add (or update) the following fields and their respective values:
php_value upload_max_filesize 64M php_value post_max_size 64M php_value max_execution_time 300 php_value max_input_time 300
After making these changes and saving them in your text editor, you can confirm that they were successfully applied by clicking Media and then Add New in your WordPress dashboard.