Can I access /dev/urandom with open_basedir in effect?

后端 未结 4 2106
南方客
南方客 2021-01-02 07:52

I want to use phpass-0.3 in Codeigniter, but I get the following error due to open_basedir:

A PHP Error was encountered
Severity

4条回答
  •  自闭症患者
    2021-01-02 08:19

    cd /nginx/chroot/
    touch random
    touch urandom
    mount --bind /dev/random /nginx/chroot/dev/random
    mount --bind /dev/urandom /nginx/chroot/dev/urandom
    

    and my phpmailer has now working in nginx chroot centos 7

    php nginx RAND_BYTES stream_socket_enable_crypto php nginx stream_socket_enable_crypto Uncaught Exception: Cannot open source device php nginx RAND_BYTES stream_socket_enable_crypto stream_socket_enable_crypto(): SSL

提交回复
热议问题