{"id":1658,"date":"2023-03-25T22:03:17","date_gmt":"2023-03-25T14:03:17","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=1658"},"modified":"2023-04-23T21:54:57","modified_gmt":"2023-04-23T13:54:57","slug":"centos-7-source-code-deployment-phpldapadmin","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/03\/25\/centos-7-source-code-deployment-phpldapadmin\/","title":{"rendered":"CentOS 7\u4e0b\u6e90\u7801\u90e8\u7f72phpLDAPadmin"},"content":{"rendered":"<p>\u5b98\u7f51\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"http:\/\/phpldapadmin.sourceforge.net\">http:\/\/phpldapadmin.sourceforge.net<\/a><\/p>\n<h2>\u6e90\u7801<\/h2>\n<p>\u6ce8\uff1a\u5b98\u65b9\u6700\u65b0\u6e90\u7801\u4e0d\u517c\u5bb9PHP 7\uff0c\u6539\u9020\u6210\u672c\u8f83\u5927\uff0c\u63a8\u8350\u4e0b\u8f7d\u7b2c\u4e09\u65b9\u4ee3\u7801<\/p>\n<p><!-- more --><\/p>\n<ul>\n<li><a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/github.com\/leenooks\/phpLDAPadmin\">https:\/\/github.com\/leenooks\/phpLDAPadmin<\/a>  \/\/\u7ecf\u6d4b\u8bd5\u5728 PHP 7.2\u4e0a\u62a5\u9519<\/li>\n<li><a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/github.com\/breisig\/phpLDAPadmin\">https:\/\/github.com\/breisig\/phpLDAPadmin<\/a>  \/\/\u7ecf\u6d4b\u8bd5\u5728 PHP 7.2 \u53ca 7.3 \u4e0a\u6b63\u5e38\u8fd0\u884c<\/li>\n<\/ul>\n<h2>\u914d\u7f6e<\/h2>\n<pre><code class=\"language-bash\"># cp config\/config.php.example config\/config.php<\/code><\/pre>\n<p>\u82e5search\u62a5\u9519\uff1a<\/p>\n<pre><code>E_WARNING: &quot;continue&quot; targeting switch is equivalent to &quot;break&quot;. Did you mean to use &quot;continue 2&quot;?<\/code><\/pre>\n<pre><code class=\"language-bash\"># vim lib\/QueryRender.php<\/code><\/pre>\n<p>\u627e\u5230\uff1a<\/p>\n<pre><code class=\"language-php\">if (! $results) {\n    echo _(&#039;Search returned no results&#039;);\n\n    continue;\n}<\/code><\/pre>\n<p>\u6539\u4e3a\uff1a<\/p>\n<pre><code class=\"language-php\">if (! $results) {\n    echo _(&#039;Search returned no results&#039;);\n\n    break;\n}<\/code><\/pre>\n<h2>Nginx\u914d\u7f6e<\/h2>\n<pre><code>server {\n    listen      80;\n    server_name  ldap.yezhou.cc;\n    index index.html index.htm index.php;\n    root \/data\/www\/phpldapadmin;\n    server_name_in_redirect off;\n\n    # \u914d\u7f6eip\u9650\u5236\u7b56\u7565\n    include blockip.conf;\n\n    location ~ .+\\.php($|\/)\n    {\n        #fastcgi_pass  unix:\/tmp\/php-cgi.sock;\n        fastcgi_pass  127.0.0.1:9000;\n        fastcgi_index index.php;\n        include       fastcgi.conf;\n\n        fastcgi_split_path_info  ^(.+\\.php)(\/.*)$;\n        fastcgi_param  PATH_INFO $fastcgi_path_info;\n    }\n\n    #\u4f2a\u9759\u6001\u53ca\u65e5\u5fd7\n    #include \/data\/server\/nginx\/conf\/rewrite\/index.conf;\n    error_log \/data\/www\/logs\/phpldapadmin-error.log;\n    access_log \/data\/www\/logs\/phpldapadmin-access.log;\n}\n<\/code><\/pre>\n<h2>\u767b\u5f55<\/h2>\n<p>\u5728\u6d4f\u89c8\u5668\u8f93\u5165OpenLDAP\u670d\u52a1\u7aef\u7684\u57df\u540d\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/ldap.yezhou.cc\">https:\/\/ldap.yezhou.cc<\/a><\/p>\n<p>\u767b\u9646\uff1a\u7528\u6237<code>cn=admin,dc=sys,dc=com<\/code>\uff0c\u5bc6\u7801\uff1a<code>123456<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b98\u7f51\uff1ahttp:\/\/phpldapadmin.sourceforge.net \u6e90\u7801 \u6ce8\uff1a\u5b98\u65b9\u6700\u65b0\u6e90\u7801\u4e0d\u517c\u5bb9PH [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[414],"class_list":["post-1658","post","type-post","status-publish","format-standard","hentry","category-devops-base","tag-openldap"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1658","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=1658"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1658\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1658"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1658"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1658"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}