CodemanBD

wp config.php important 11 lines codes for all wordpress sites

wp config.php important 11 lines codes for all wordpress sites
  1. wp-config.php (https://codex.wordpress.org/Editing_wp-config.php)

copy paste this 11 line at the bottom of wp-config.php >> (wp-settings.php er jora line er upore boshao) [] .

(or mone rakhte – 95 no line e boshabo)

GO: /cPanel> File Manager > public_html > your site folder(optional) > wp-config.php > edit:
define(‘WP_HTTP_BLOCK_EXTERNAL’, false);
define(‘FS_METHOD’, ‘direct’);
define(‘DISABLE_WP_CRON’, true);
define(‘WP_MEMORY_LIMIT’, ‘256M’);
define( ‘WP_CACHE’, true );
define(‘WP_ALLOW_REPAIR’, true);
require_once(ABSPATH . ‘wp-settings.php’);
add_filter( ‘auto_update_plugin’, ‘__return_false’ );
add_filter( ‘auto_update_theme’, ‘__return_false’ );
define( ‘WP_AUTO_UPDATE_CORE’, ‘major’ );
define(‘WP_DEBUG’, false);

if still upload file size issue > GO: /cPanel> File Manager > public_html > your site folder > settings (top-right)> show hidden files > edit .htaccess > add >>
php_value upload_max_filesize 256M

  1. cPanel PHP Version & Options changing
    login cpanel > go “Select PHP Version” | FOR YOUR CPANEL ONLY

Current PHP version: 7.3 (just 1 version before – from latest one!) – set as current
Switch To PHP Options >>
যেগুলোতে সংখ্যা আছে সেগুলো – click kore vitore dhuke – > 5000 likhe – apply diba
যেগুলোতে dropdown select/মেগাবাইট(M) আছে সেগুলো ম্যাক্সিমাম টা দিবা -> apply dao

Leave a Comment

Your email address will not be published. Required fields are marked *