linux启动php-cgi,linux已经安装了php,但是怎样配置php-cgi变量?

启动fis的调试服务器(注意添加 --no-rewrite 参数),如果报错 没有php-cgi环境,请 安装 它,并把php-cgi命令加到系统的环境变量中:

fis server start

checking java support : v1.6.0

checking php-cgi support : unsupported php-cgi environment

[NOTIC] launching java server.

starting fis-server ... at port [8080]

浏览时直接输出php代码了。。。

setTemplateDir($root . '/template'); $smarty->setConfigDir($root . '/config'); $smarty->addPluginsDir($root . '/plugin'); $smarty->setLeftDelimiter('{%'); $smarty->setRightDelimiter('%}'); $smarty->assign(include($root . '/data/index.php')); $smarty->display('page/index.tpl'); ?>

但是在终端可以运行php:

==>php

song==>php -v

PHP 5.3.5-1ubuntu7.11 with Suhosin-Patch (cli) (built: Sep 12 2012 18:47:04)

Copyright (c) 1997-2009 The PHP Group

Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

请问我该如何设置php-cgi?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值