Reasons why php_cmd.dll extension cannot be used under php5.2 and Solutions

Source: Internet
Author: User

I used php_mongo.dll vc6 ts in php5.2.13.

Added extension = php_assist.dll to PhP. ini.

After Apache is restarted, new Mongo is still unavailable. Why?

Then I tried Google, and some of them could be used in 5.3 With php_cmd.dll of 5.2. I tried it, but it still didn't work.

Therefore, Apache/logs/error. log can only be viewed.

The error message is as follows:

Error 1

PHP warning: PhP startup: Unable to load dynamic library 'd: \ Wamp \ php5.2.17 \ php_cmd.dll '-\ xd5 \ xd2 \ XB2 \ xbb \ xb5 \ xbd \ xd6 \ xb8 \ xB6 \ xA8 \ xb5 \ xc4 \ xc4 \ xa3 \ xbf \ xe9 \ xA1 \ xa3 \ r \ n in unknown on line 0

Obviously, the path of extension_dir is missing/EXT during configuration.

Restart Apache after modification

Error 2

PHP warning: PhP startup: Mongo: Unable to initialize module \ nmodule compiled with module API = 20090626, DEBUG = 0, thread-Safety = 1 \ NPHP compiled with module API = 20060613, DEBUG = 0, thread-Safety = 1 \ nthese options need to match \ n in unknown on line 0

This is because 5.3 php_cmd.dll was used at the time. I forgot to replace it with 5.2 vc6ts.

With version 5.2, restart Apache to run everything freely.

Bytes ------------------------------------------------------------------------------------------------------------------

For PHP extension problems, it is intuitive to see logs/error. log. Write this blog post and take this as an example.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.