How to install Net_LDAP3 on Ubuntu 16.04

if [[ -d "$HOME/tmp/git/php-net_ldap" ]]; then
  cd "$HOME/tmp/git/php-net_ldap"
  git pull
else
  mkdir -p "$HOME/tmp/git"
  cd "$HOME/tmp/git"
  git clone "https://git.kolab.org/diffusion/PNL/php-net_ldap.git"
  cd "$HOME/tmp/git/php-net_ldap"
fi
cd "$HOME/tmp/git/php-net_ldap/lib/Net"
sudo mkdir -p "/usr/share/php/Net"
sudo cp LDAP3.php "/usr/share/php/Net"
sudo cp -r LDAP3 "/usr/share/php/Net"
sudo cp -r . "/usr/share/php/Net"

1 comment

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.