{"id":155,"date":"2023-02-18T21:11:07","date_gmt":"2023-02-18T13:11:07","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=155"},"modified":"2023-02-18T21:15:59","modified_gmt":"2023-02-18T13:15:59","slug":"php-compile-install-ldap-extension-module","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/02\/18\/php-compile-install-ldap-extension-module\/","title":{"rendered":"PHP\u7f16\u8bd1\u5b89\u88c5ldap\u6269\u5c55\u6a21\u5757"},"content":{"rendered":"<p>\u53ef\u4ee5\u901a\u8fc7phpize\u7f16\u8bd1\u5b89\u88c5php\u6269\u5c55\u6a21\u5757<\/p>\n<pre><code class=\"language-bash\"># yum install openldap openldap-devel\n# cd php-7.2.20\/ext\/ldap\/\n# \/usr\/local\/php\/bin\/phpize\n# .\/configure --with-ldap --with-php-config=\/usr\/local\/php\/bin\/php-config\n# make &amp;&amp; make install<\/code><\/pre>\n<p><!-- more --><\/p>\n<p>\u5c06\u7f16\u8bd1\u540e\u751f\u6210\u7684so\u6587\u4ef6\u590d\u5236\u5230php.ini\u914d\u7f6e\u6587\u4ef6\u6307\u5b9a\u7684extension_dir\u4e2d<\/p>\n<pre><code class=\"language-bash\"># cp php-7.2.20\/ext\/ldap\/modules\/ldap.so \/usr\/lib64\/php\/modules\/<\/code><\/pre>\n<p>\u4fee\u6539php\u914d\u7f6e<\/p>\n<pre><code class=\"language-bash\"># vim \/usr\/local\/php\/etc\/php.ini\n\nextension_dir = &quot;\/usr\/lib64\/php\/modules\/&quot;\nextension = ldap.so<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u53ef\u4ee5\u901a\u8fc7phpize\u7f16\u8bd1\u5b89\u88c5php\u6269\u5c55\u6a21\u5757 # yum install openldap openldap-d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[69],"tags":[70],"class_list":["post-155","post","type-post","status-publish","format-standard","hentry","category-php-basic","tag-ldap"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/155","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=155"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/155\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=155"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=155"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=155"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}