1. Operating system (非必须!先看完说明再设置)
**When having an
open_basedir
configured within your php.ini file, make sure to include /dev/urandom.
如果你的配置文件里的这项是注释掉的就忽略这一步!!
Give PHP read access to /dev/urandom
:
$ sudo vim /etc/php/7.0/apache2/php.ini
Change line begin with ;open_basedir
to:
open_basedir = /dev/urandom
Then:
$ sudo service apache2 restart