Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/245.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Gnokii在Linux命令行中工作,但不在PHP系统命令中工作_Php_Mobile Phones - Fatal编程技术网

Gnokii在Linux命令行中工作,但不在PHP系统命令中工作

Gnokii在Linux命令行中工作,但不在PHP系统命令中工作,php,mobile-phones,Php,Mobile Phones,Gnokii在RHEL5的Linux命令行中工作,但不是通过PHP系统命令。检查什么?最可能发生的情况是(正确地)阻止httpd执行gnokii。httpd作为httpd\u t运行,gnokii被标记为bin\u t,并且没有从一个域转换到下一个域。解决方案包括完全禁用SELinux(不推荐),允许httpd_t自由执行bin_t(也不推荐),给gnokii一个新的文件上下文并为其创建域转换规则 运行man-httpd_-selinux会提供更多信息,但为了创建新的转换规则,您需要在selin

Gnokii在RHEL5的Linux命令行中工作,但不是通过PHP系统命令。检查什么?

最可能发生的情况是(正确地)阻止httpd执行gnokii。httpd作为
httpd\u t
运行,gnokii被标记为
bin\u t
,并且没有从一个域转换到下一个域。解决方案包括完全禁用SELinux(不推荐),允许httpd_t自由执行bin_t(也不推荐),给gnokii一个新的文件上下文并为其创建域转换规则

运行
man-httpd_-selinux
会提供更多信息,但为了创建新的转换规则,您需要在selinux网站上查看链接到的各种资源