CentOS set static IP address

To set a static IP address in CentOS edit the file
/etc/sysconfig/network-scripts/ifcfg-$networkcard
Where $networkcard is the name of the interface that you want to setup.
The default is dhcp so you have to change like this, for example:
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=static
IPADDR=192.168.8.3
NETMASK=255.255.255.0
GATEWAY=192.168.8.9
DNS1=192.168.8.203
DNS2=192.168.8.213
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
NAME=eth0
UUID=aabb3fe2-4eea-4096-9dbb-a674e196a821
DEVICE=enp1s0
ONBOOT=yes

Webmin LDAP error

To resolve this error in the LDAP Users and Groups session:
Can't locate Net/LDAP.pm in @INC (you may need to install the Net::LDAP module) (@INC contains: /usr/local/lib/webmin /usr/local/lib/perl5/site_perl/mach/5.26 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.26/mach /usr/local/lib/perl5/5.26 /usr/local/lib/webmin/ . ..) at (eval 147) line 1.
BEGIN failed--compilation aborted at (eval 147) line 1.

Install ldap perl module:
pkg install p5-perl-ldap