• GoDaddy Community
  • Managed WordPress Hosting
  • Managed WordPress Hosting

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 
    Go to solution

    i am getting 502 Bad Gateway error

    i am getting 502 Bad Gateway error. does anyone know the solution?

     

    i read this article : 

    https://premium.wpmudev.org/blog/increase-memory-limit/?omtr=b&utm_expid=3606929-101.yRvM9BqCTnWwtfc...

     

    i added this code to site :

     

    php.ini

    upload_max_filesize = 1000M
    post_max_size = 2000M
    memory_limit = 3000M
    file_uploads = On
    max_execution_time = 180

    .htaccess

    php_value upload_max_filesize 1000M
    php_value post_max_size 2000M
    php_value memory_limit 3000M
    php_value max_execution_time 180
    php_value max_input_time 180

    wp-config.php

    define('WP_MEMORY_LIMIT', '3000M');

     

    2 REPLIES 2
    Super User II

    Re: i am getting 502 Bad Gateway error

    Hi burakco

    Thank you for being apart of the Godaddy Community.

     

    This particular 502 issue is a generic server response letting you know we couldn't process the request.  As someone mentioned above, this is a temporary issue. This is due to the resources on your particular account being at maximum capacity at the time of the request. 

     

    This is sometimes related to plugins/themes that are running at capacity or above, or inconsistently.  If you seem to experience this often, make sure to give support a call so that we can review your cases individually.

     

    Follow the steps to fix the 502 bad gateway error:

    1. Refresh the Page
    2. Clear Browser Cache
    3. Try a Different Browser
    4. Check Plugins
    5. Check CDNs

     

    Zulfiqar Anees | GoDaddy PRO | Founder/CEO at TechMag, ZulWeb, Enter To Study
    Product Team
    Product Team
    Solution

    Re: i am getting 502 Bad Gateway error

     

     

    Hi @burakco 

     

    Instead of using .htaccess or .php.ini, you'll want to use a .user.ini instead to modify any PHP configs.

     

    Thanks,

    Gabe

     

    Gabriel A. Mays
    Head of WordPress, GoDaddy