且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

运行php脚本以在浏览器上通过Shell执行hadoop命令

更新时间:2022-11-18 16:42:40

查看您的Apache日志文件(error.log/access.log).用于Apache的php.ini与用于php-cli的php.ini不同.也许您有一个open_basedir限制,并且无法在此目录之外运行可执行文件.

Take a look into your apache log files (error.log / access.log). The php.ini used for apache is not the same than the php.ini used with php-cli. Maybe you have an open_basedir restriction and you cannot run executable outside this directory.

http://phpsec.org/projects/phpsecinfo/tests/open_basedir.html

您还可以通过使用内部带有phpinfo函数的test.php文件并浏览来验证这些信息:

You can also verify these informations by making a test.php file with phpinfo function inside and browse it:

<? phpinfo() ; ?>