Forum Moderators: coopster
gd: unable to initialize module
Module compiled with debug=0, threat safety=1 module API=20020429
PHP compiled with debug=0, threat safety=1 module API=20010901
These options need to match
What can i do to avoid this problem?
Thank you for help!
Rolf
Iīd suggest reading Marcia`s WebmasterWorld Welcome and Guide to the Basics [webmasterworld.com] post which contains a lot of useful information.
The error you get is usually the result of mixing modules of several versions of PHP [php.net].
If thatīs not the case then you may have another PHP [php.net] version installed on your Win98 and Win2K system. If thatīs the case and the PHPRC environment variable is not set to the path of %%LOGS%% then PHP [php.net] will not read the right PHP [php.net].ini and will try to use the wrong modules. And even if PHPRC is set to the proper path this will add only another location that PHP [php.net] will look for its PHP [php.net].ini file. If there is one in your Windows directory then that file will be used.
If you use Apache [httpd.apache.org] PHP [php.net] will also look for PHP [php.net].ini in the Apache [httpd.apache.org] directory. But that directory is on CD so you cannot make any changes to it. PHP [php.net] would not be configurable.
You can configure PHP [php.net] using Apache [httpd.apache.org] directives in httpd.conf as well. Try adding the following line to the httpd.conf file.
php_admin_value extension_dir ="%%DRIVE%%\PHP [php.net]-4.2.3-Win32\extensions"
This will make sure that PHP [php.net] uses the extensions on CD. Thus it will not conflict with any other PHP [php.net] versions installed on your computer.
Please let me know whether that works for you since others might have the same problems.
HTH Andreas
It seems that this extension is buggy.
Best would be to use a newer php may be even the new Apache realease.
With Windows 2000 there are still problems. The Server ist not starting.
Will there be a AMP on CD with a linux?
greetings from bavaria
Rolf
>>Apache [httpd.apache.org] does not like a command line in the
>>httpd.conf as you wrote
Thatīs because I just pasted the code from PHP [php.net].ini and did not remove the equal sign. The directive should read
php_admin_value extension_dir "%%DRIVE%%\PHP [php.net]-4.2.3-Win32\extensions"
You might want to try again using this line instead of the one I posted previously.
>>i just putted a ; (semicolon) on the line
That will work but then PHP [php.net] wonīt load the GD extension.
>>Best would be to use a newer PHP [php.net] may be even
>>the new Apache [httpd.apache.org] release
I might do just that during the next couple of days.
>>Will there be a AMP on CD with a Linux [kernel.org]?
Eventually there will be one :-). I seem to recall that in Knoppix there is a hook for adding user defined content. That way you do not have to remaster the CD.
Grüße aus Berlin
Andreas