kangle ssh里运行php指定php.ini的方法,用命令行运行某个php程序,GET监控脚本
kangle ssh里运行php指定php.ini的方法,用命令行运行某个php程序,GET监控脚本例如这样运行
"/vhs/kangle/ext/tpl_php721/bin/php" -c "/vhs/kangle/ext/tpl_php721/php-templete.ini" -f "test.php"
例如指向php5640,该文件赋予PHP.ini有open_basedir 权限,可高权限执行跨站命令
获取php-node-5640.ini
wget http://github.itzmx.com/1265578519/kangle/master/easypanel/php-node-5640.ini -O /vhs/kangle/ext/tpl_php52/etc/php-node-5640.ini
运行命令
"/vhs/kangle/ext/tpl_php5640/bin/php" -c "/vhs/kangle/ext/tpl_php52/etc/php-node-5640.ini"-f "test.php" 传递参数1 传递参数2
页:
[1]