Hi, I have been trying to get MySQL to work on my apache server with PHP on it. My Apache
version is 1.3.29 and my PHP version is 5.0.0RC2. I'm also running Windows XP Professional SP2 32 bit. I tried modifying the php.ini file to load the php_mysql.dll, but I keep getting an error whenever I restart Apache. My Apache directory is C:\Program Files\Apache Group\Apache\, and my PHP directory is C:\Program Files\Apache Group\Apache\PHP\. The directory with the dynamic link libraries (dlls) in it is C:\Program Files\Apache Group\Apache\PHP\ext\. The error pops up three times, and then Apache starts, and I can view my server with IE 7.

I have attached my php.ini from my %SYSTEMROOT% directory as well as a picture of the error.

Please help!:-/

Dani AI

Generated

This thread documents a typical Windows+Apache+PHP integration hiccup and the successful follow-up from . When a PHP extension (like the MySQL client) triggers repeated loader errors but Apache still starts, the root causes are usually binary/runtime mismatches or conflicting DLLs rather than Apache configuration itself. The short checklist below highlights practical diagnostics and preventive steps that are safe to apply on older Windows hosts.

Confirm which php.ini is actually in use (phpinfo()), and verify extension_dir and the expected extension names; mismatch here only delays the obvious fixes. Match the PHP build to how it runs under Apache (thread-safe vs non-thread-safe) and make sure the PHP/Apache binaries share the same CPU architecture (32-bit vs 64-bit). PHP builds rely on a matching Visual C++ runtime—install the redistributable required by the specific PHP build. Finally, look for duplicate or incompatible MySQL client libraries in the system PATH: Windows’ DLL search order can cause an older library to be picked up before the one bundled with PHP or MySQL (Microsoft on DLL search order, PHP on Windows).

For : “WAMP” is simply Windows + Apache + MySQL + PHP; packaged distributions such as WampServer or XAMPP bundle and manage these components and are convenient for development (WampServer, XAMPP). Running development stacks on Windows XP carries security and compatibility risks—Windows XP reached end-of-support in 2014—so consider using a supported host OS, a virtual machine, or a container for modern development (Windows XP end of support).

Additional tips: enable and inspect Apache/PHP error logs and Windows Event Viewer for loader errors, verify filesystem permissions, and keep stacks consistent by using a single packaged distribution or ensuring all components are from compatible releases.

Nevermind, i got it! I had an old libmysql.dll in my C:\windows\system32 directory. I deleted it and it worked perfectly.

Calvin,
If I may ask, of what web management is the combination of WAMP especially with the involvement of WindowsXP? I need some information on this for futuristic purposes. Hope to recieve your response soon. Thanks.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.