Increase Upload File Size & Execution Time Limit in Wordpress | Tutorialism

Pubblicato il: 17 giugno 2018
sul canale di: Tutorialism
585
7

Increase Upload File Size & Execution Time Limit in Wordpress
Ways you can fix it:

1. Updating Your php.ini file
2. Editing Your .htaccess file
3. Editing your wp-config.php File Updating your php.ini file

Follow these steps to edit the php.ini file
1. Log in to your web hosting account and go to cPanel
2. Click on FILES - File Manager

3. Select “Document Root for:” from the Directory Selection and click on Go. (Make sure the checkbox for Show Hidden Files is checked)
4. Go to your wp-admin folder
5. Find a file called php.ini or php5.ini. (If you don’t see any php.ini, create a file titled php.ini)
6. Open the php.ini file. Find these lines in the php.ini file and replace it following numbers

upload_max_filesize = 64M
post_max_size = 64M
memory_limit = 400M
file_uploads = On
max_execution_time = 180

1. Save the changes you made to the php.ini file
2. Now refresh your website and try uploading the file again.

Note: If you are using WordPress on a local machine using XAMPP, Wamp or MAMP, you will find the php.ini in following locations.
XAMPP
Windows: C:/xampp/php/php.ini
macOS: /private/etc/php.ini
Linux: /etc/php.ini Editing Your .htaccess file

If the above editing PHP.ini file doesn’t work for you, then you can edit your .htaccess file to fix this issue.
Follow these steps to edit your .htaccess file
1.
1. Log in to your web hosting account and go to cPanel
2. Click on FILES --- File Manager

3. Select “Document Root for:” from the Directory Selection and click on Go. (Make sure the checkbox for Show Hidden Files is checked)
4. find the .httaccess file.
5. Open the .htaccess file and or edit the following code at the bottom.

php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value memory_limit 400M
php_value max_execution_time 180
php_value max_input_time 180

1. Save the changes you made to the .htaccess file
Note: if you can’t find the .htaccess file in your root directory, create a file and name it .htaccess Editing your wp-config.php File

If neither of these solutions works for you, you can try editing the wp-config.php file located at your websites root folder.
1.
1. Log in to your web hosting account and go to cPanel
2. Click on FILES -- File Manager

3. Select “Document Root for:” from the Directory Selection and click on Go. (Make sure the checkbox for Show Hidden Files is checked)
4. Add the following to the very bottom of wp-config.php
define('WP_MEMORY_LIMIT', '256M');


In questa pagina del sito puoi guardare il video online Increase Upload File Size & Execution Time Limit in Wordpress | Tutorialism della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Tutorialism 17 giugno 2018, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 585 volte e gli è piaciuto 7 spettatori. Buona visione!