Home > Backend Development > PHP Tutorial > Problems that occur when installing extensions such as wamp, xampp, phpStudy, etc.

Problems that occur when installing extensions such as wamp, xampp, phpStudy, etc.

WBOY
Release: 2016-07-30 13:30:55
Original
1179 people have browsed it

Sometimes the installation is completed in wonder7. Generally, you need to download the php_mongo.dll corresponding to the same version as php. Link: http://pecl.php.net/package/mongo/1.6.0RC2/windows

(1) php_mongo.dll is placed in the ext folder.

(2) Modify the extensi ' in php.ini with an absolute path

(3) Add or remove the extension=mongo.dll in php.ini

(4) Restart APACHE and visit pathinfo.php, See if mongo can be loaded successfully.

Problem: When accessing pathinfo.php, I did not find that mongo can be loaded, but apache starts normally, and php startup in unknown on line 0 pops up. At this time, you can check the apache logs or the php logs. There will be this warning PHP Warning: PHP Startup: in Unknown on line 0

I searched for a long time on Baidu and Google, but I couldn’t find the specific one. The ending is so scary!

You can cmd, enter the DOS environment, enter the php installation directory, and then use php -m to check whether the extension is already available. With the extension, do the following things.

Later, after searching and analyzing the data, I found that php’s support for the mongo library depends on 3 Dynamic link libraries: libeay32.dll, libsasl.dll and ssleay32.dll. These three libraries are generally in the php directory. So generally there should be these three dynamic libraries in the bin directory of apache to work. Sometimes one or two of them are missing in the bin directory of apache in the integrated environment. You can go in and look for them yourself, or copy all three.

After copying it, restart Apache and you can load mongo without warning

Copyright statement: This article is an original article by the blogger and may not be reproduced without the permission of the blogger.

The above introduces the problems that occur when installing extensions such as wamp, xampp, phpStudy, etc., including relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template