我有2台LAMP服务器和ubuntu 10.04 ......两者都成功安装了php5。
在server1上我# type php在终端运行命令,响应是:
“php是/ usr / bin / php”
但是在server2中我运行相同的命令,我得到了这个:
-bash:type:php:not found
这两个服务器都安装了php5:
sudo aptitude install libapache2-mod-php5 php5 php5-common php5-curl php5-dev php5-gd php5-imagick php5-mcrypt php5-memcache php5-mhash php5-mysql php5-pspell php5-snmp php5-sqlite php5-xmlrpc php5-xsl
为什么server2显示“未找到”而server1如果正常?
请帮忙!谢谢
                  如果PHP也安装在
                
                  
                    —
                    drew010 
                    
                  
                
              /usr/binserver2上,请尝试echo $PATH从命令提示符处查看是否/usr/bin由于某种原因不在您的路径中。
                
                  嘿,这是输出:/ usr / local / sbin:/ usr / local / bin:/ usr / sbin:/ usr / bin:/ sbin:/ bin:/ usr / games ...看起来像'/ usr / bin'在那里
                
                
                  
                    —
                    Rees 
                    
                  
                
              
                  什么
                
                  
                    —
                    wallyk 
                    
                  
                
              type type输出?应该说type is a shell builtin。
                
                  嘿wallyk,是输出是:“类型是一个内置的壳”
                
                
                  
                    —
                    里斯
                    
                  
                
              
php在$PATH第二台服务器上?