Windows install MongoDB extension appears PHP warning:php startup:in Unknown on line 0

Source: Internet
Author: User
Tags install mongodb

System Windows7

Integrated environment XAMPP 1.8.3

Php-mongo.dll http://pecl.php.net/package/mongo/1.6.0RC2/windows Select the corresponding version download

Put Php-mongo.dll into the PHP ext folder to modify the php.ini.

But there was a problem with the PHP warning:php startup:in Unknown on line 0 when installing MongoDB extensions

Version no problem PHP version is 5.5.11 and Php-mongo.dll version is the same

There's no problem with Extension_dir in php.ini.

And in Cmd, php-m found that the extension has been

Later found that PHP support for MongoDB to rely on 3 dynamic link libraries: Libeay32.dll, Libsasl.dll and Ssleay32.dll, but Libsasl.dll can not find (this part of Baidu search)

Workaround:
Copy php from Libsasl.dll to apache/bin path to restart Apache

Problem solving

Windows install MongoDB extension appears PHP warning:php startup:in Unknown on line 0

Related Article

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.