Hi everyone, sorry, newbie question, i think.
I have PHP 5.0 installed, acording to http://se.php.net/gd, GD is bundled into the PHP install. When i'm running the Mediawiki install, though, under Checking invironments it says "Couldn't find GD library or ImageMagick; image thumbnailing disabled." Is there a certain version of GD required, or maybe i havn't gotten PHP installed properly (?)
Thanks.
On 18/01/07, Jon Anunson janunson@design-plus.com wrote:
I have PHP 5.0 installed, acording to http://se.php.net/gd, GD is bundled into the PHP install. When i'm running the Mediawiki install, though, under Checking invironments it says "Couldn't find GD library or ImageMagick; image thumbnailing disabled." Is there a certain version of GD required, or maybe i havn't gotten PHP installed properly (?)
What platform?
GD is bundled with the Windows binaries, although it needs to be enabled in the PHP configuration, and Unix or Linux distributions may require it to be compiled in or added as an extension. For instance, under FreeBSD, you either compile it in or install /usr/ports/graphics/php5-gd.
Rob Church
Hello Rob, Oh ya - i should have included the important info - Windows Server 2003 PHP 5.1.6-Win32 MySQL-5.0.27-win32 MediaWiki 1.9.0
I used the windows binaries; no compiling 4 me if i can help it! I probably need to enable it through PHP... i'll go try and figure that out. Thanks. I'm an amature programmer with a .NET/ASP/MSQL background, so the PHP/MySQL has a bit of a learning curve for me.. getting used to it, though.
Assuming i find the way to enable it in PHP and it's ready to go, i already have the wiki configured, can i just change a setting to enable thumbnails? I'm hoping i can find a place to do that instead of having to re-run the install page...
Thanks!
On 18/01/07, Jon Anunson janunson@design-plus.com wrote:
I have PHP 5.0 installed, acording to http://se.php.net/gd, GD is bundled into the PHP install. When i'm running the Mediawiki install, though, under Checking invironments it says "Couldn't find GD library or ImageMagick; image thumbnailing disabled." Is there a certain version of GD required, or maybe i havn't gotten PHP installed properly (?)
What platform?
GD is bundled with the Windows binaries, although it needs to be enabled in the PHP configuration, and Unix or Linux distributions may require it to be compiled in or added as an extension. For instance, under FreeBSD, you either compile it in or install /usr/ports/graphics/php5-gd.
Rob Church
On 19/01/07, Jon Anunson janunson@design-plus.com wrote:
Assuming i find the way to enable it in PHP and it's ready to go, i already have the wiki configured, can i just change a setting to enable thumbnails? I'm hoping i can find a place to do that instead of having to re-run the install page...
Set $wgUseImageResize to true.
It might be better to locate and install ImageMagick, then set the path to that in LocalSettings.php; it produces better conversions.
Rob Church
Hello Rob,
Thanks for your help. I figured out that GD Library is included in the zip install, but not the executable install of PHP. i downloaded the zip, copied php_gd2.dll into my PHP/Ext directory, edited my PHP.ini to include that dll, and it is now working. I'll have to check out ImageMagick - i'm unfamiliar w/ it, but if it's better, i'll give it a try.
Found the localsettings.php file and made that change. I'm now trying to test to see if my upload works, but i'm running into a different problem. Please forgive, maybe this should be a new thread... but to test i try to edit a page. (not even add image, just edit the text) and i get the following error - "Sorry! We could not process your edit due to a loss of session data. Please try again. If it still doesn't work, try logging out and logging back in."
It's an intermittent problem, during the writing of this post, i succeeded in editing a page, and uploading an image, but got session-related errors many times.
I'm wondering if there's a session.timeout setting in the wiki I need to fix, or if maybe my PHP is having problems with sessions (?).
I'd appreciate any advice! thanks. ~jon
On 19/01/07, Jon Anunson janunson@design-plus.com wrote:
Assuming i find the way to enable it in PHP and it's ready to go, i already have the wiki configured, can i just change a setting to enable thumbnails? I'm hoping i can find a place to do that instead of having to re-run the install page...
Set $wgUseImageResize to true.
It might be better to locate and install ImageMagick, then set the path to that in LocalSettings.php; it produces better conversions.
Rob Church
On 19/01/07, Jon Anunson janunson@design-plus.com wrote:
"Sorry! We could not process your edit due to a loss of session data. Please try again. If it still doesn't work, try logging out and logging back in."
It's an intermittent problem, during the writing of this post, i succeeded in editing a page, and uploading an image, but got session-related errors many times.
http://lists.wikimedia.org/mailman/htdig/mediawiki-l/2006-July/013790.html
Rob Church
Hello Rob,
Thanks so much for your attention. That was indeed the case. Once i fixed windows permissions on the session storage folder, things started working.
On 19/01/07, Jon Anunson janunson@design-plus.com wrote:
"Sorry! We could not process your edit due to a loss of session data. Please try again. If it still doesn't work, try logging out and logging back in."
It's an intermittent problem, during the writing of this post, i succeeded in editing a page, and uploading an image, but got session-related errors many times.
http://lists.wikimedia.org/mailman/htdig/mediawiki-l/2006-July/013790. html
Rob Church
wikitech-l@lists.wikimedia.org