473,386 Members | 1,741 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How to make php_gd2.dll working

Hello,

I am trying hard to configure php_gd2.dll to work with my apache 2.2 web server and not getting it... I have copied php_gd2.dll in my ext php directory and have uncommented the extension=php_gd2.dll line of my php.ini file and

I have also set my extension_dir to:
extension_dir = "E:\PHP\ext"
I have tried switching the back slashes to forward slashes but no

I have PHP 5.2.5
I have Apache 2.2
I'm using Windows XP Pro SP 2

And still not able to get php_gd2.dll to work! Can someone please help me solve this issue?

The error I'm getting is:
PHP Warning: PHP Startup: gd: Unable to initialize module
Module compiled with module API=20090626, debug=0, thread-safety=1
PHP compiled with module API=20060613, debug=0, thread-safety=1
These options need to match
in Unknown on line 0

I have also read Nert solution post (http://bytes.com/topic/php/answers/585340-how-make-php_gd2-dll-working) and don't want to downgrade my PHP installation because I have 2 Joomla sites and 1 Moodle site running under it.
Feb 3 '10 #1

✓ answered by roandres

Yes man I got it working!!! you were right it was the version of the php_gd2.dll !
I found an excellent website on google which is:
http://snaps.php.net/win32/

Selected the php5.2-win32-latest.zip file uncompressed it copy the php_gd2.dll module from the ext directory into my ext directory uncommented the extension=php_gd2.dll line in my php.ini configuration file and now it shows in my php_info() file and works like a charm!!!

Regards!

3 5588
dgreenhouse
250 Expert 100+
I'd think you'd need would find a gd module that's compiled against the same sources.

But since I've only run Apache on Linux/Unix and IIS on windows, I might be missing something obvious to those who run Apache on Windows.

Seems like you're not the only one having this issue...
http://www.google.com/search?q=php_gd2.dll
Feb 3 '10 #2
Thank you dgreenhouse.

I think you are in the correct solution path! I have tried using gd modules from the latest version of php-5.3.1-Win32-VC6-x86 and from version 5.2.1-nts-win32 and haven't got it working! I will keep searching the internet for a php_gd2.dll module from PHP 5.2.5 version...
Feb 3 '10 #3
Yes man I got it working!!! you were right it was the version of the php_gd2.dll !
I found an excellent website on google which is:
http://snaps.php.net/win32/

Selected the php5.2-win32-latest.zip file uncompressed it copy the php_gd2.dll module from the ext directory into my ext directory uncommented the extension=php_gd2.dll line in my php.ini configuration file and now it shows in my php_info() file and works like a charm!!!

Regards!
Feb 3 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: lawrence | last post by:
2 Questions: 1.) Can anyone think of a way to speed up this function? It is terribly slow. I plan to reduce the number of directories to 3, which I guess will speed it up in the end. 2.) This...
28
by: AK | last post by:
Hi, I recently read an advice here that one should try to use make and version control system even if you're the only one working on the program. Is that a good advice? How many of you do that? ...
1
by: lem | last post by:
under solaris: # make Making all in src Making all in engine make: Fatal error in reader: Makefile, line 453: Badly formed macro assignment Current working directory...
3
by: Tony Dong | last post by:
Hi there I have three comboBoxs I need the first comboBox selected and fill the second comboBox, after second comboBox selected, it will fill the last comboBox, When I use selectedIndex change...
16
by: Miguel Dias Moura | last post by:
Hello, i have 5 panels in an ASP.net / VB page. The panel 1 is visible the other 4 are NOT visible. I also have 5 images: image 1, image 2, ..., image5. When i click one of the images,...
17
by: stubbsie | last post by:
Hi, I have redesigned our official public government website in .net and it has taken me a few months to redo. I have been the sole designer of the website from its humble beginnning a few years...
7
by: Hal Vaughan | last post by:
I have a problem with port forwarding and I have been working on it for over 2 weeks with no luck. I have found C programs that almost work and Java programs that almost work, but nothing that...
19
by: zzw8206262001 | last post by:
Hi,I find a way to make javescript more like c++ or pyhon There is the sample code: function Father(self) //every contructor may have "self" argument { self=self?self:this; ...
9
Nert
by: Nert | last post by:
hello, i had the extension php_gd2.dll, and put it on "c:\php\ext" ( this is my extension_dir ), i also uncommented the php_gd2.dll in my php.ini, i am using PHP 5.1.2. now my problem was, i...
5
by: Pete Marsh | last post by:
Wondering if anyone can recomend some sample code for dynamically loading the GD module. I have tried setting the extension dir in php.ini, and loading the GD module from there when apache is...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.