天天看點

Call to undefined function ldap_connect() cakephp報錯

cakephp啟動的時候報錯:

Call to undefined function ldap_connect()

php.ini開啟:

extension=php_ldap.dll      

參考:

​​​https://stackoverflow.com/questions/16864306/fatal-error-call-to-undefined-function-ldap-connect​​

cakaphp弄成本地開發,報錯如下:

Warning: include(/opt/WebRoot/xxx/lib/Cake/Core/CakePlugin.php): failed to open stream: No such file or directory in D:\www\xxx\lib\Cake\Core\App.php on line 505

Warning: include(): Failed opening ‘/opt/WebRoot/xxx/lib/Cake/Core/CakePlugin.php’ for inclusion (include_path=‘D:\www\xxx\lib;.;C:\php\pear’) in D:\www\xxx\lib\Cake\Core\App.php on line 505

Fatal error: Uncaught Error: Class ‘CakePlugin’ not found in D:\www\xxx\app\Config\bootstrap.php:63 Stack trace: #0 D:\www\xxx\lib\Cake\Core\Configure.php(81): include() #1 D:\www\xxx\lib\Cake\bootstrap.php(138): Configure::bootstrap(true) #2 D:\www\xxx\app\webroot\index.php(77): include(‘D:\www\xxx\lib\…’) #3 {main} thrown in D:\www\xxx\app\Config\bootstrap.php on line 63