When one logs into the admin of magento 2, one sees the following error

Exception #0 (Exception): Warning: is_dir(): open_basedir restriction in effect. File(/etc/pki/tls/certs) is not within the allowed path(s):

How do you solve this ?

In the file composer.json, modify the following: 

 "config": {
        "use-include-path": false, 
        "disable-tls":true
    },

If you are not using SSL, you need to set disable-tls to true. If you are using SSL, set it to false.