

Now we can check the PHP working by putting a PHP info page namely info.php with contents () under the /usr/nginx/html/www and modify our default virtual host (/etc/nginx/sites-available/default) with our hostname. You can not use PHP in CGI either! It will be necessary to use FastCGI and configure it so that it starts the process PHP. Unlike Apache, Nginx does not offer mod_php. Our next step is to install Nginx and PHP. ModifyTimestamp: 20161227015557Z How to install Nginx and PHP UserPassword:: e1NTSEF9TXBudUpGK3JhWVd1WXBIMFJHZ2ZkTGpGQ2oxem5xQ2o= yum install openldap openldap-servers CentOS 7 sudo apt install slapd ldap-utils Ubuntu 16.04/18. ModifiersName: cn=admin,dc=ldap01,dc=linoxide,dc=comĭn: cn=admin,dc=ldap01,dc=linoxide,dc=com First start by installing OpenLDAP, an open source implementation of LDAP and some traditional LDAP management utilities using the following commands. Do you want to remove the database when slapd is purged? Yes/No : YesĪfter the installation, you can confirm the slap settings by running the command "slapcat". You can refer /usr/share/doc/slapd/ for more details. Organization name : You can give the preferred name.Omit OpenLDAP configuration Yes/No : No.OlcTLSCertificateKeyFile: /etc/pki/tls/certs/tekneedldapkey.pemġ4.These are the few stages during the reconfigure phase.

OlcTLSCertificateFile: /etc/pki/tls/certs/tekneedldap.pem ~]# vi /etc/openldap/slapd.d/cn\=config/olcDatabase=jIcf5iibFyYGd3/n3qdHpB4ambD9C4f2 ~]# cp -r /etc/openldap/slapd.d/cn\=config /tmp Backup the configuration files before editing. Organizational Unit Name (eg, section) :ITĬommon Name (eg, your name or your server's hostname) :SPPRDĮmail Address Note the certificate path because we are going to add it to LDAP configuration file State or Province Name (full name) :Lagos If you enter '.', the field will be left blank.Įnter your details to generate the certificate Country Name (2 letter code) :NG There are quite a few fields but you can leave some blankįor some fields there will be a default value, What you are about to enter is what is called a Distinguished Name or a DN.

You are about to be asked to enter information that will be incorporated Writing new private key to '/etc/pki/tls/certs/tekneedldapkey.pem' Create a self signed certificate for LDAP ~]# openssl req -new -x509 -nodes -out /etc/pki/tls/certs/tekneedldap.pem -keyout /etc/pki/tls/certs/tekneedldapkey.pem -days 365
