Forum Moderators: coopster

Message Too Old, No Replies

WAMP on CD ERROR with w98

gd: unable to initialize module

         

rolfwitt

4:19 pm on Mar 10, 2003 (gmt 0)

10+ Year Member



Hello,
when i run a CD with WAMP (Andreas Friedrich [webmasterworld.com...] ) on it, it works perfekt on Windows XP.
On Windows 98 and W2000 i get an Error bfore Apache and MySql are starting:

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

andreasfriedrich

12:05 am on Mar 11, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld [webmasterworld.com] 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

rolfwitt

8:36 pm on Mar 11, 2003 (gmt 0)

10+ Year Member



Thank you for your response!
I tried what you suggested. Apache does not like a command line in the httpd.conf as you wrote (php_admin_value extension_dir ="%%DRIVE%%\PHP-4.2.3-Win32\extensions" ).
I cleaned up my Computers so i knew definitly there is no other php.ini or Apache or MySql.
I didn`t help, I still got same error.
Then i tried something very simple:
I remebered that once I was looking for a php.ini on my Webserver and there was none. But php was working fine. So i tried changing the content of the php.ini, i just putted a ; (semicolon) on the line where the extension file php_gd.dll is loaded.

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

andreasfriedrich

9:47 pm on Mar 11, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hallo 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