Tôi đã xem xét nhiều câu hỏi trước đó, nhưng tôi vẫn không thể khắc phục được vấn đề này. Tôi đã cài đặt Php phiên bản 5.4.9 và Apache 2.4.12 trong Windows - 64bit. Khi tôi bắt đầu dịch vụ, tôi gặp lỗi sau:
Đường dẫn nơi PHP là: D: \ app \ phpD:\app\php Đường dẫn mở rộng của tôi trong php.ini là: extension_dir = d: \ app \ php \ extextension_dir = D:\app\php\ext Đường dẫn trong đó Tôi đã đề cập đến các câu hỏi được đăng trong liên kết dưới đây: Liên kết 1 Liên kết 2 Liên kết 3 Tuy nhiên, dường như không có gì để làm việc. Đánh giá cao bất kỳ sự giúp đỡ.
Hỏi ngày 11 tháng 4 năm 2016 lúc 12:07Apr 11, 2016 at 12:07
2 Sau khi bật tiện ích mở rộng = php_ldap.dll trong php.ini Bạn phải thêm DLL sau vào System32 trong Windows Sao chép libsasl.dll vào thư mục system32 Các bước: Php.ini enable; Extension = php_ldap.dll -> extension = php_ldap.dll Sao chép libsasl.dll từ thư mục PHP và dán nó vào System32 Windows-> System32-> dán libsasl.dll Trong trường hợp nó không hoạt động và cũng thêm libeay32.dll và ssleay32.dll.libeay32.dll and ssleay32.dll.
JSON C11 10,6K7 Huy hiệu vàng76 Huy hiệu bạc64 Huy hiệu đồng7 gold badges76 silver badges64 bronze badges Đã trả lời ngày 4 tháng 10 năm 2017 lúc 8:50Oct 4, 2017 at 8:50
Hãy thử sao chép Đã trả lời ngày 11 tháng 4 năm 2016 lúc 12:31Apr 11, 2016 at 12:31
0 Với Win10, Apache 2.4.41x64 và Php 7.3.8x64, sau đây đã hoạt động cho tôi: ghi đè lên các DLL này trong thư mục Apache/bin với các tệp từ thư mục PHP
Cũng đã thêm libsasl.dll không cần thay đổi bất kỳ nội dung thư mục hệ thống nào. Tất nhiên các cài đặt php.ini bên phải là rất quan trọng (kích hoạt mở rộng, đặt đường dẫn mở rộng). Sau đó khởi động lại Apache. Đã trả lời ngày 13 tháng 8 năm 2019 lúc 12:35Aug 13, 2019 at 12:35
Đối với Windows 10, hãy sao chép một tệp từ 'xampp \ php \ libsasl.dll' và dán nó vào 'xampp \ apache \ bin' sau khi khởi động lại máy chủ Apache này một lần. Đã trả lời ngày 13 tháng 11 năm 2019 lúc 10:33Nov 13, 2019 at 10:33
zakmail007zakmail007zakmail007 1651 Huy hiệu vàng1 Huy hiệu bạc4 Huy hiệu đồng1 gold badge1 silver badge4 bronze badges
Không có[2010-09-09 21:55 UTC] emiller at gomedico dot com Description: ------------ System Config: Windows Server 2003 (32-bit) Apache 2.2.16 PHP 5.2.14 Error Message in Apache Log: PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\5.2\\ext\\php_ldap.dll' - The operating system cannot run %1.\r\n in Unknown on line 0 Facts / Things I've Tried - Apache LDAP module is showing in PHPINFO to indicate that it is loading correctly and issue resides on PHP side. - php_ldap extension uncommented. - C:\Program Files\PHP\5.2 and C:\Program Files\PHP\5.2\ext have both been added to the PATH variable - extension_dir set to C:\Program Files\PHP\5.2\ext - dll location has been verified manually (by two sets of eyes) - Apache has been rebooted - Server has been rebooted - Downloaded PHP 5.2.14 (VC6 Thread-Safe for Win) from php.net, replaced DLL with DLL from ZIP and rebooted. - Replaced entire install of PHP with ZIP listed above, rebooted. - Placed DLLs in System32 folder (out of desperation) Test script: --------------- n/a Expected result: ---------------- PHP LDAP module to load correctly and show in PHPInfo Actual result: -------------- Error Message in Apache Log: PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\5.2\\ext\\php_ldap.dll' - The operating system cannot run %1.\r\n in Unknown on line 0 & nbsp; [2010-09-09 21:55 UTC] Emiller tại Gomedico Dot ComThêm một bản vá Kéo yêu cầuThêm yêu cầu kéo Lịch sửAllCommentsChangeSgit/SVN Commitsrelated Báo cáoCommentsChangesGit/SVN commitsRelated reports & nbsp; [2010-09-09 22:24 UTC][2010-09-09 22:24 UTC] Works just fine (since years in 5.2), please try in CLI (php.exe -d ... ) to see the exact error. & nbsp; [2010-09-09 22:33 UTC] Emiller tại Gomedico Dot Com[2010-09-09 22:33 UTC] emiller at gomedico dot com php.exe -d extension=php_ldap.dll returns PHP Warning: Module 'ldap' already loaded in Unknown on line 0 & nbsp; [2010-09-09 23:01 UTC][2010-09-09 23:01 UTC] That means the module has been loaded already (aka it works). See: php -m to see the list of loaded modules. and php -i | find "php.ini" to see the php.ini used, the one where php_ldap.dll is defined. Please ask more questions/support on the PHP Windows or PHP setup mailing lists, see the 'list' link in the php.net site. & nbsp; [2010-09-09 23:14 UTC] Emiller tại Gomedico Dot Com[2010-09-09 23:14 UTC] emiller at gomedico dot com Thats the conflict Im having, it may show as loaded but within PHPInfo it is not showing as loaded. & nbsp; [2010-09-09 23:15 UTC][2010-09-09 23:15 UTC] apache loading different php.ini, some PATHs are wrong, many ways to break an install. But there is no bug, sorry. |