increase execution time file size memory limit in php.ini

  • Abraham Padilla

    Very informative blog, I want to know…I have my WP site on a godaddy server, and im trying to create a clone of my site – but the plugin im using is taking long to create the package – this process gets killed by my server. I was told to add php_value max_execution_time 0 to htaccess file.

    for one I dont know where to place this code, however when I did I get
    Internal Server Error. please any help will be appreciated.

    • Internal Server Error is happened when you put these script in the htaccess file. You need to put this script in the wordpress config.php file in the root directory.
      define(‘WP_MEMORY_LIMIT’, ’64M’);

      Don’t change the file permission of config.php file.

      -If you can see php.ini file put this script top of that file and save it.
      max_execution_time = 259200 // in seconds

      -If you can see it, you can access it when you are clicked file manager icon, then open a popup window and mark/click “Show hidden files” check box.Then you can see it.

      -If not see access file via http://FTP.Then you can see it.

      -If not success, go to your plugin folder and open it’s index.php file and put these scripts top of the file and save it.
      If you can tell the plugin name I can tell exactly what file you need to put this script.

      ini_set(‘max_execution_time’, 300); //300 seconds = 5 minutes

      Change this 300 seconds for large time(like 5 hours in seconds)

      Simply you can backup your file using cpanel. File backup and database backup.

      If you want to more instructions you can put comments here.

      Thank you !

      • Gidoliny

        jw-player-plugin-for-wordpress works only 5 min; Help, Me Please

        • Can you send the url?

          • Gidoliny

            Sumith, Can You help me?

          • Sampath

            Send the site url.I’ll check

  • Adyrockstar

    Thanks, increasing WP max execution time worked for me by inserting the given code in wp-config.php file. Thanks for the rescue.