I tried to put the $wgUseDatabaseMessages = false; in the LocalSettings.php but it didn't seem to have an effect. Reloading the frontpage still takes about 15 seconds. The best result i've had is 8 seconds. Opening other pages takes about 4 seconds and using the back button to return to the mainpage is quick (less than 1 seconds).
I went to the testserver and it's much quicker. Is squid cache in use at the testserver?
The wiki: http://www.bergenkitesurfingklubb.no/wiki
Rune
LocalSettings.php:
<?php
# This file was automatically generated by the MediaWiki installer. # If you make manual changes, please keep track in case you need to # recreate them later.
$IP = "/home/BergenKi/www/wiki"; ini_set( "include_path", ".:$IP:$IP/includes:$IP/languages" ); include_once( "DefaultSettings.php" );
# If PHP's memory limit is very low, some operations may fail. # ini_set( 'memory_limit', '20M' );
if ( $wgCommandLineMode ) { if ( isset( $_SERVER ) && array_key_exists( 'REQUEST_METHOD', $_SERVER ) ) { die( "This script must be run from the command line\n" ); } } else { ## Compress output if the browser supports it if( !ini_get( 'zlib.output_compression' ) ) ob_start( 'ob_gzhandler' ); }
$wgSitename = "Wiki";
$wgScriptPath = "/wiki"; $wgScript = "$wgScriptPath/index.php"; $wgRedirectScript = "$wgScriptPath/redirect.php";
## If using PHP as a CGI module, use the ugly URLs $wgArticlePath = "$wgScript/$1"; # $wgArticlePath = "$wgScript?title=$1";
$wgStylePath = "$wgScriptPath/stylesheets"; $wgStyleDirectory = "$IP/stylesheets"; $wgLogo = "$wgStylePath/images/wiki.png";
$wgUploadPath = "$wgScriptPath/images"; $wgUploadDirectory = "$IP/images";
$wgEmergencyContact = "styre@BergenKitesurfingklubb.no"; $wgPasswordSender = "styre@BergenKitesurfingklubb.no";
$wgDBserver = "xxxxx.no"; $wgDBname = "xxxxx"; $wgDBuser = "xxxxx"; $wgDBpassword = "xxxxx";
## To allow SQL queries through the wiki's Special:Askaql page, ## uncomment the next lines. THIS IS VERY INSECURE. If you want ## to allow semipublic read-only SQL access for your sysops, ## you should define a MySQL user with limited privileges. ## See MySQL docs: http://www.mysql.com/doc/en/GRANT.html # # $wgAllowSysopQueries = true; # $wgDBsqluser = "sqluser"; # $wgDBsqlpassword = "sqlpass";
$wgDBmysql4 = $wgEnablePersistentLC = true;
## To enable image uploads, make sure the 'images' directory ## is writable, then uncomment this: $wgDisableUploads = false; $wgUseImageResize = true; $wgUseImageMagick = true; $wgImageMagickConvertCommand = "/usr/bin/convert";
## If you have the appropriate support software installed ## you can enable inline LaTeX equations: # $wgUseTeX = true; $wgMathPath = "{$wgUploadPath}/math"; $wgMathDirectory = "{$wgUploadDirectory}/math"; $wgTmpDirectory = "{$wgUploadDirectory}/tmp";
$wgLocalInterwiki = $wgSitename;
$wgLanguageCode = "en"; $wgUseLatin1 = false;
$wgProxyKey = "80e02647ccf74a9c7e0a63e14c48928e9f7647e4147f15ea2751726c26b43dfa";
## Default skin: you can change the default skin. Use the internal symbolic ## names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook': # $wgDefaultSkin = 'monobook';
## For attaching licensing metadata to pages, and displaying an ## appropriate copyright notice / icon. GNU Free Documentation ## License and Creative Commons licenses are supported so far. # $wgEnableCreativeCommonsRdf = true; $wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright $wgRightsUrl = ""; $wgRightsText = ""; $wgRightsIcon = ""; # $wgRightsCode = ""; # Not yet used
$wgUseDatabaseMessages = false;
?>
-----Opprinnelig melding----- Fra: Brion Vibber [mailto:brion@pobox.com] Sendt: 22. juni 2004 18:27 Til: MediaWiki announcements and site admin list Emne: Re: [Mediawiki-l] Speed issues
Rune Tomren wrote:
However, i find the wiki very slow most of the times. sometimes i have
to wait 25 seconds for a page to load. the worst is when entering the wiki, sometimes i have to wait about 20
seconds. I have a static web on the same server and that is very fast indeed. File transfers is quick as well. When using the official wiki beta testserver sometimes the delay is equally bad there.
This might be the recaching of the MediaWiki message namespace, in particular the caching stage which may take a while initially. Try disabling database messages: $wgUseDatabaseMessages = false;
I know this is beta but i'm qurious to know if this is the expected speed or if one can expect an increase in speed when the wiki is out of beta or maybe my server space has too little brain allocated?
Is it *frequently* that slow or once a day?
-- brion vibber (brion @ pobox.com)
-----Opprinnelig melding----- Fra: Brion Vibber [mailto:brion@pobox.com] Sendt: 22. juni 2004 18:27 Til: MediaWiki announcements and site admin list Emne: Re: [Mediawiki-l] Speed issues
Rune Tomren wrote:
However, i find the wiki very slow most of the times. sometimes i have
to wait 25 seconds for a page to load. the worst is when entering the wiki, sometimes i have to wait about 20
seconds. I have a static web on the same server and that is very fast indeed. File transfers is quick as well. When using the official wiki beta testserver sometimes the delay is equally bad there.
This might be the recaching of the MediaWiki message namespace, in particular the caching stage which may take a while initially. Try disabling database messages: $wgUseDatabaseMessages = false;
I know this is beta but i'm qurious to know if this is the expected speed or if one can expect an increase in speed when the wiki is out of beta or maybe my server space has too little brain allocated?
Is it *frequently* that slow or once a day?
-- brion vibber (brion @ pobox.com)
Someone on the list suggested MMCache for PHP a while back. I tried it and it did increase the speed of my MediaWiki installation considerably.
http://turck-mmcache.sourceforge.net/index_old.html
Installation is fairly straight-forward; just compile, enable the extension in /etc/php.ini or /etc/php.d/mmcache.ini, and off you go.
--Matias
Rune Tomren wrote:
I tried to put the $wgUseDatabaseMessages = false; in the LocalSettings.php but it didn't seem to have an effect. Reloading the frontpage still takes about 15 seconds. The best result i've had is 8 seconds. Opening other pages takes about 4 seconds and using the back button to return to the mainpage is quick (less than 1 seconds).
I went to the testserver and it's much quicker. Is squid cache in use at the testserver?
The wiki: http://www.bergenkitesurfingklubb.no/wiki
Rune
LocalSettings.php:
<?php # This file was automatically generated by the MediaWiki installer. # If you make manual changes, please keep track in case you need to # recreate them later. $IP = "/home/BergenKi/www/wiki"; ini_set( "include_path", ".:$IP:$IP/includes:$IP/languages" ); include_once( "DefaultSettings.php" ); # If PHP's memory limit is very low, some operations may fail. # ini_set( 'memory_limit', '20M' ); if ( $wgCommandLineMode ) { if ( isset( $_SERVER ) && array_key_exists( 'REQUEST_METHOD', $_SERVER ) ) { die( "This script must be run from the command line\n" ); } } else { ## Compress output if the browser supports it if( !ini_get( 'zlib.output_compression' ) ) ob_start( 'ob_gzhandler' ); } $wgSitename = "Wiki"; $wgScriptPath = "/wiki"; $wgScript = "$wgScriptPath/index.php"; $wgRedirectScript = "$wgScriptPath/redirect.php"; ## If using PHP as a CGI module, use the ugly URLs $wgArticlePath = "$wgScript/$1"; # $wgArticlePath = "$wgScript?title=$1"; $wgStylePath = "$wgScriptPath/stylesheets"; $wgStyleDirectory = "$IP/stylesheets"; $wgLogo = "$wgStylePath/images/wiki.png"; $wgUploadPath = "$wgScriptPath/images"; $wgUploadDirectory = "$IP/images"; $wgEmergencyContact = "styre@BergenKitesurfingklubb.no"; $wgPasswordSender = "styre@BergenKitesurfingklubb.no"; $wgDBserver = "xxxxx.no"; $wgDBname = "xxxxx"; $wgDBuser = "xxxxx"; $wgDBpassword = "xxxxx"; ## To allow SQL queries through the wiki's Special:Askaql page, ## uncomment the next lines. THIS IS VERY INSECURE. If you want ## to allow semipublic read-only SQL access for your sysops, ## you should define a MySQL user with limited privileges. ## See MySQL docs: http://www.mysql.com/doc/en/GRANT.html # # $wgAllowSysopQueries = true; # $wgDBsqluser = "sqluser"; # $wgDBsqlpassword = "sqlpass"; $wgDBmysql4 = $wgEnablePersistentLC = true; ## To enable image uploads, make sure the 'images' directory ## is writable, then uncomment this: $wgDisableUploads = false; $wgUseImageResize = true; $wgUseImageMagick = true; $wgImageMagickConvertCommand = "/usr/bin/convert"; ## If you have the appropriate support software installed ## you can enable inline LaTeX equations: # $wgUseTeX = true; $wgMathPath = "{$wgUploadPath}/math"; $wgMathDirectory = "{$wgUploadDirectory}/math"; $wgTmpDirectory = "{$wgUploadDirectory}/tmp"; $wgLocalInterwiki = $wgSitename; $wgLanguageCode = "en"; $wgUseLatin1 = false; $wgProxyKey = "80e02647ccf74a9c7e0a63e14c48928e9f7647e4147f15ea2751726c26b43dfa"; ## Default skin: you can change the default skin. Use the internal symbolic ## names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook': # $wgDefaultSkin = 'monobook'; ## For attaching licensing metadata to pages, and displaying an ## appropriate copyright notice / icon. GNU Free Documentation ## License and Creative Commons licenses are supported so far. # $wgEnableCreativeCommonsRdf = true; $wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright $wgRightsUrl = ""; $wgRightsText = ""; $wgRightsIcon = ""; # $wgRightsCode = ""; # Not yet used $wgUseDatabaseMessages = false; ?>
-----Opprinnelig melding----- Fra: Brion Vibber [mailto:brion@pobox.com] Sendt: 22. juni 2004 18:27 Til: MediaWiki announcements and site admin list Emne: Re: [Mediawiki-l] Speed issues
Rune Tomren wrote:
However, i find the wiki very slow most of the times. sometimes i have
to wait 25 seconds for a page to load. the worst is when entering the wiki, sometimes i have to wait about 20
seconds. I have a static web on the same server and that is very fast indeed. File transfers is quick as well. When using the official wiki beta testserver sometimes the delay is equally bad there.
This might be the recaching of the MediaWiki message namespace, in particular the caching stage which may take a while initially. Try disabling database messages: $wgUseDatabaseMessages = false;
I know this is beta but i'm qurious to know if this is the expected speed or if one can expect an increase in speed when the wiki is out of beta or maybe my server space has too little brain allocated?
Is it *frequently* that slow or once a day?
-- brion vibber (brion @ pobox.com)
-----Opprinnelig melding----- Fra: Brion Vibber [mailto:brion@pobox.com] Sendt: 22. juni 2004 18:27 Til: MediaWiki announcements and site admin list Emne: Re: [Mediawiki-l] Speed issues
Rune Tomren wrote:
However, i find the wiki very slow most of the times. sometimes i have
to wait 25 seconds for a page to load. the worst is when entering the wiki, sometimes i have to wait about 20
seconds. I have a static web on the same server and that is very fast indeed. File transfers is quick as well. When using the official wiki beta testserver sometimes the delay is equally bad there.
This might be the recaching of the MediaWiki message namespace, in particular the caching stage which may take a while initially. Try disabling database messages: $wgUseDatabaseMessages = false;
I know this is beta but i'm qurious to know if this is the expected speed or if one can expect an increase in speed when the wiki is out of beta or maybe my server space has too little brain allocated?
Is it *frequently* that slow or once a day?
-- brion vibber (brion @ pobox.com) _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org