Solved

How to make PHP recognize GD2 and PSpell?

Posted on 2009-03-31
2
615 Views
Last Modified: 2013-12-13
Hi All,

Sorry if this has already been answered, but I couldn't find a solution anywhere.

My problem is that I am trying to load the GD2 library on Windows Server 2003 using IIS 7 and PHP 5.2.8. Here is what I have tried already (rebooting after everything, of course):

-downloaded php_gd2.dll file and placed in extensions folder
-in php.ini, uncommented "extension = php_gd2.dll"

That didn't work. When I check the phpinfo, it doesn't recognize GD exists at all (no section labeled "gd" like there usually is). The loaded php.ini file is C:\Program Files\PHP\php.ini, which is the one I am modifying.

I also tried to install the GD2 extension via the Windows Control Panel by modifying the PHP installation. That also didn't work.

I then tried to copy the dll file to the Windows\System32 folder. No go.

I have tried all of these steps for the PSpell support as well, but nothing shows up in the phpinfo.

Does anyone have something else to try? I appreciate any help!
0
Comment
Question by:twizziweb
2 Comments
 
LVL 22

Accepted Solution

by:
cj_1969 earned 500 total points
ID: 24038956
From what I am reading it looks like you might have a path issue.
Read this page ... http://us2.php.net/manual/en/install.windows.extensions.php

PHP5 by default searches for extension is the root of the php directory, not the extensions subdirectory within that.  It appears that you can modify this behaviour in the php.ini file.

There are also steps on the page I reference for installing numerous add-ons to php and any additional dlls that are needed by those packages.
0
 

Author Comment

by:twizziweb
ID: 24038996
Thanks for your reply. I already reinstalled PHP manually and got it to work. You won't catch me ever trying to use the msi installer for PHP again!
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question