Why doesn't the progress bar runs smooth while updating?

2011-10-04 11:33:49Tags: progress-bar,updating
The green progress bar during update does not show gradual progress but stands still for a long time and then jumps to a much higher complete percentage at once.


Check the output_buffering setting in your PHP.ini file. With PHP 5 , we've noticed that if this is set to a value or to "On", it overrules the the PHP output buffering functions used in Logaholic update.php.

You can turn off standard ouput_buffering in the PHP.ini file like this (php scripts will still be able to use buffering functions when needed)

output_buffering = Off

or you can simply comment out the line. Don't forget to restart Apache after this change.

If you can't change php.ini or want to limit the settings to logaholic, you can create a file called .htaccess and place that file in the logaholic folder. Put this line in the .htaccess file (if you already have an .htaccess file, just add this line):

php_value output_buffering Off

Windows 2008 - IIS7.

Windows server 2008 with IIS7 handles Php differently and requires some different configuration alterations.

Please note that we assume that PhP is in recommended (Fast) CGI mode, not ISAPI, more info... Ensure your account has administrative rights! To enable a smooth progress bar; locate a file called "applicationHost.config" on your Windows server, by default you may find this file in "C:/Windows/System32/inetsrv/config/applicationHost". Use a text editor like Notepad to open the file. Locate in the file a line:

<add name="PHP_via_FastCGI" path="*.php" verb="*" modules="FastCgiModule" scriptProcessor="C:Program Files (x86)PHPphp-cgi.exe" resourceType="Either"  />

add to the line: responseBufferLimit="0", the line ultimately looks like below.

<add name="PHP_via_FastCGI" path="*.php" verb="*" modules="FastCgiModule" scriptProcessor="C:Program Files (x86)PHPphp-cgi.exe" resourceType="Either" responseBufferLimit="0" />


Save and close the file after you edited it, restart "World Wide Web Publishing Service" and you are all set. 

Please note that these settings only really effects the progress bar display, nothing critical - It just so much nicer to look at :-)

The information on this page relates to older Logaholic versions (prior to Logaholic 6) and may be outdated.