{"id":2777,"date":"2012-04-29T23:44:49","date_gmt":"2012-04-30T04:44:49","guid":{"rendered":"http:\/\/icesquare.com\/wordpress\/?p=2777"},"modified":"2012-04-29T23:44:49","modified_gmt":"2012-04-30T04:44:49","slug":"solvedproblem-to-update-openldap-in-freebsd","status":"publish","type":"post","link":"https:\/\/icesquare.com\/wordpress\/solvedproblem-to-update-openldap-in-freebsd\/","title":{"rendered":"[Solved]Problem to Update OpenLDAP in FreeBSD"},"content":{"rendered":"<p><img decoding=\"async\" src=\"\/wordpress\/wp-content\/uploads\/2012\/04\/happy-300x225.png\" class=\"alignleft size-medium wp-image-2780\" width=\"200\"\/><\/p>\n<p style=\"margin-bottom:120px;\">Recently, I found the following error message when updating my FreeBSD system regarding to the OpenLDAP:<\/p>\n<pre>\r\n===>  Installing for openldap-client-2.4.31\r\n===>   Generating temporary packing list\r\n===>  Checking if net\/openldap24-client already installed\r\n===> Creating users and\/or groups.\r\nUsing existing group `ldap'.\r\nCreating user `ldap' with uid `389'.\r\npw: user 'ldap' already exists\r\n*** Error code 74\r\n\r\nStop in \/usr\/ports\/net\/openldap24-client.\r\n*** Error code 1\r\n\r\nStop in \/usr\/ports\/net\/openldap24-client.\r\n<\/pre>\n<p>And I don&#8217;t use LDAP in particular, however it affects other applications that use LDAP, e.g., PHP<\/p>\n<pre>\r\nphp -v\r\nPHP Warning:  PHP Startup: Unable to load dynamic library '\/usr\/local\/lib\/php\/20090626\/ldap.so' - Shared object \"libldap-2.4.so.8\" not found, required by \"ldap.so\" in Unknown on line 0\r\nPHP 5.3.10 with Suhosin-Patch (cli) (built: Feb 14 2012 16:59:15)\r\nCopyright (c) 1997-2012 The PHP Group\r\nZend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies\r\n    with eAccelerator v0.9.6.1, Copyright (c) 2004-2010 eAccelerator, by eAccelerator\r\n<\/pre>\n<p>It is very simple to solve this problem. All you need is to remove the user &#8216;ldap&#8217;, and install the port again. First, let&#8217;s remove the user &#8216;ldap&#8217; first:<\/p>\n<pre>\r\nsudo vipw\r\n<\/pre>\n<p>You will see this line:<\/p>\n<pre>\r\nldap:*:389:389::0:0:OpenLDAP Server:\/nonexistent:\/usr\/sbin\/nologin\r\n<\/pre>\n<p>Remove the line by pressing &#8216;dd&#8217;, hit &#8216;ESC&#8217; button, and then press &#8216;:wq&#8217; to save the file and quit the editor.<\/p>\n<p>After that, let&#8217;s clean the port and run the update again:<\/p>\n<pre>\r\ncd \/usr\/ports\/net\/openldap24-client\r\nsudo make clean\r\nsudo make install clean\r\n<\/pre>\n<p>That&#8217;s it. Your LDAP will be happy and your applications (such as PHP) will not complain.<\/p>\n<p><br \/>\n&#8211;Derrick<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently, I found the following error message when updating my FreeBSD system regarding to the OpenLDAP: ===> Installing for openldap-client-2.4.31 ===> Generating temporary packing list ===> Checking if net\/openldap24-client already <a class=\"more-link\" href=\"https:\/\/icesquare.com\/wordpress\/solvedproblem-to-update-openldap-in-freebsd\/\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[94,7,144,6,69],"tags":[171,152],"class_list":["post-2777","post","type-post","status-publish","format-standard","hentry","category-computer-problems-computer-help-pc-support","category-freebsd","category-sever-problem","category-technology","category-troubleshooting-technology","tag-freebsd","tag-ldap"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p1sqzr-IN","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":3295,"url":"https:\/\/icesquare.com\/wordpress\/freebsdproblem-to-update-curl-7-31-0\/","url_meta":{"origin":2777,"position":0},"title":"[FreeBSD]Problem to Update cURL-7.31.0","author":"Derrick","date":"August 6, 2013","format":false,"excerpt":"When I tried to update the cURL to cURL 7.31.0 today for my FreeBSD, it stopped and gave the following error messages: configure: using CFLAGS: -O2 -pipe -DLDAP_DEPRECATED -fno-strict-aliasing configure: CFLAGS error: CFLAGS may only be used to specify C compiler flags, not macro definitions. Use CPPFLAGS for: -DLDAP_DEPRECATED configure:\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2812,"url":"https:\/\/icesquare.com\/wordpress\/freebsdhow-to-run-pecl-tokyo-tyrant-in-php-5-4\/","url_meta":{"origin":2777,"position":1},"title":"[FreeBSD]How to run PECL Tokyo Tyrant in PHP 5.4","author":"Derrick","date":"May 19, 2012","format":false,"excerpt":"After upgrading to PHP 5.4.3 (which is the first version of PHP 5.4 available in the FreeBSD port), I found that the pecl-tokyo_tyrant could not be compiled. Here is the error messages: cd \/usr\/ports\/databases\/pecl-tokyo_tyrant sudo make ===> pecl-tokyo_tyrant-0.6.0 cannot install: doesn't work with PHP version : 5 (Doesn't support PHP\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":603,"url":"https:\/\/icesquare.com\/wordpress\/weird-php-error-after-freebsd-port-upgrade\/","url_meta":{"origin":2777,"position":2},"title":"Weird PHP Error after FreeBSD port upgrade (PHP Warning:  PHP Startup: Unable to load dynamic library)","author":"Derrick","date":"April 6, 2010","format":false,"excerpt":"Today I upgraded the port on my FreeBSD box using portmaster tools: portmaster -Dai After that, I found that the PHP gave the following weird error: php -v PHP Warning: PHP Startup: Unable to load dynamic library '\/usr\/local\/lib\/php\/20060613\/memcached.so' - \/usr\/local\/lib\/php\/20060613\/memcached.so: Undefined symbol \" php_session_create_id\" in Unknown on line 0 PHP\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3925,"url":"https:\/\/icesquare.com\/wordpress\/freebsdupgrade-php-5-5-to-5-6\/","url_meta":{"origin":2777,"position":3},"title":"[FreeBSD]Upgrade PHP 5.5 to 5.6","author":"Derrick","date":"February 20, 2015","format":false,"excerpt":"It is not easy to upgrade PHP 5.5 to 5.6 in FreeBSD. Without proper preparation, the upgrade process may drive you nut. Before you decide to get your hands wet, here are what I recommend you to do: Back up your files Test your website in a PHP 5.6 environment\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2502,"url":"https:\/\/icesquare.com\/wordpress\/freebsdproblem-to-update-php-port\/","url_meta":{"origin":2777,"position":4},"title":"[FreeBSD]Problem to update PHP port","author":"Derrick","date":"January 12, 2012","format":false,"excerpt":"A new version of PHP (5.3.9) was available in FreeBSD today. Since it contained a lot of security fixes and enhancements, I decided to give it a try. After testing the new PHP in couple test servers, I think it is ready to upgrade the PHP on the production server.\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3514,"url":"https:\/\/icesquare.com\/wordpress\/freebsdphp-does-not-work-after-upgrading-apache-to-2-2-27\/","url_meta":{"origin":2777,"position":5},"title":"[FreeBSD]PHP does not work after upgrading Apache to 2.2.27","author":"Derrick","date":"April 11, 2014","format":false,"excerpt":"I upgraded the Apache to 2.2.27 on my FreeBSD box via portmaster. The upgrade went very smooth. After the upgrade, I found that Apache no longer rendered the PHP page correctly. In the other words, it displayed the source code of the PHP files instead of executing the code. Before\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/2777","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/comments?post=2777"}],"version-history":[{"count":8,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/2777\/revisions"}],"predecessor-version":[{"id":2786,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/2777\/revisions\/2786"}],"wp:attachment":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/media?parent=2777"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/categories?post=2777"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/tags?post=2777"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}