当我尝试/usr/bin/curl
从PHP中使用程序时,出现错误
警告:file_exists():open_basedir限制有效。文件(/ usr / bin / curl)不在允许的路径内:/var/www/check.inc中的(/ usr / share / php /:/ tmp /:/ usr / share / pear /)。 138行上的php
如何使用PHP 5.4在debian wheezy上启用此功能?
它通过将卷曲路径添加到ini.include-path来工作:
我在此站点的apache配置中添加了以下行:
php_admin_value open_basedir "/usr/share/php/:/tmp/:/usr/share/pear/:/usr/bin/curl"
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句